can GtkWindow be a child of another GtkWindow?

2007-12-13 Thread Binary Chen
Hi, I have a GtkWindow with type GTK_WINDOW_POPUP, I want it to be a child of a GtkWindow, the effect will be the pop up window can only move within the scope of the parent window. And if I invoke the position function for the popup window, the coordinat parameters is relative to the parent window

Re: Gtk on Embedded Device Query

2007-12-13 Thread Saroj Kumar
> Hi, > > I ported X11 and Gtk with X11 support on Embedded board(arm-linux). > The problem I am facing now is setting the fontconfig. Because I have > fontconfig and freetype libraries for X11 and I compiled Gtk with those > libraries. > > The following error is produced when I tried to run gtkdem

Re: Memory debugging -- which tool?

2007-12-13 Thread Michael Lamothe
Valgrind for most of it. However, be warned, if you have a multi-threaded application and you're trying to debug a multi-threading issue, Valgrind is not going to work for you. Valgrind does some hocus-pocus to simulate multi-threading, but you will not get the same conditions as when your applica

Re: C vs C++ for GTK

2007-12-13 Thread Murray Cumming
On Thu, 2007-12-13 at 22:06 +0100, Dan H wrote: > On Thu, 13 Dec 2007 11:40:41 -0700 > Michael L Torrie <[EMAIL PROTECTED]> wrote: > > > Dan H wrote: > > > > Isn't "smart pointers" just a reference counting scheme? > > > > Yup. Poor-man's garbage collection. Turns out to be just the > > ticke

Re: C vs C++ for GTK

2007-12-13 Thread Dan H
On Thu, 13 Dec 2007 11:40:41 -0700 Michael L Torrie <[EMAIL PROTECTED]> wrote: > Dan H wrote: > > Isn't "smart pointers" just a reference counting scheme? > > Yup. Poor-man's garbage collection. Turns out to be just the > ticket, though, for GUI programming. Because of that, I'd put > product

Re: C vs C++ for GTK

2007-12-13 Thread Michael L Torrie
Dan H wrote: > On Wed, 12 Dec 2007 09:26:25 -0700 > Michael L Torrie <[EMAIL PROTECTED]> wrote: > >> GTKmm is based on some very nice C++ abstractions around pointers, >> providing many of the same benefits as any managed language with >> pure C++. They are called smart pointers and for GUI devel

Setting a background image for GtkCellRenderer.

2007-12-13 Thread Srikanth Nallamothu
Hi, Am facing problem setting a background image to a GtkCellRenderer, trying to set the background image for GtkCellRenderer, using the rc file, my intention is to set a background image(a transparent one) to a cell which is selected, This is the part of the rc file i am using. style "sample-cel

Monitoring keyboard by an application in System Tray

2007-12-13 Thread Sundaram
Hi all, I want to know the procedure to monitor the keyboard for a particular key combination, by an application that sits on the System Tray. Can it be done thru' registering for signalling /callback? How is this possible in a GTK+ application? Thanks! Best Regards, Sundar

Re: Memory debugging -- which tool?

2007-12-13 Thread jcupitt
On Dec 13, 2007 9:25 AM, Dan H <[EMAIL PROTECTED]> wrote: > I'm trying to use valgrind to track down this issue; however, this slows down > my app to the point where it takes close to a minute for the GUI to start up, > and then another minute to get to the crash. I've used ccmalloc with good >

Memory debugging -- which tool?

2007-12-13 Thread Dan H
Hello, I've written some C code which at some point seems to be trampling over memory that belongs to GTK-related stuff, which causes erratic crashed at some unrelated point much later. This is of course not a GTK issue, just a well-known phenomenon in general. I'm trying to use valgrind to tr

Re: C vs C++ for GTK

2007-12-13 Thread Dan H
On Wed, 12 Dec 2007 09:26:25 -0700 Michael L Torrie <[EMAIL PROTECTED]> wrote: > GTKmm is based on some very nice C++ abstractions around pointers, > providing many of the same benefits as any managed language with > pure C++. They are called smart pointers and for GUI development, > they work ve