Re: How to tell the difference between a minimize and a switch desktop?

2008-10-27 Thread Freddie Unpenstein
From: "Rorschach" , 28/10/2008: > I discovered exactly the same odd behavior like you did: > http://rorschachstagebuch.wordpress.com/. ! > changed_mask always gets the value GDK_WINDOW_STATE_ICONIFIED when switching > the desktop. > I also asked here but nobody answered me... Did really noon

Re: memory leak when destroying widgets

2008-10-27 Thread Jacques Le Normand
turns out there were two problems: I forgot to free the GList* uim caused a memory leak fixing these two problems fixed the memory leak cheers --Jacques On Mon, Oct 27, 2008 at 4:50 PM, Dave Foster <[EMAIL PROTECTED]> wrote: > Hi, > > On Mon, Oct 27, 2008 at 4:22 PM, Jacques Le Normand <[EMAIL

Re: memory leak when destroying widgets

2008-10-27 Thread Dave Foster
Hi, On Mon, Oct 27, 2008 at 4:22 PM, Jacques Le Normand <[EMAIL PROTECTED]>wrote: > >gtk_container_remove(GTK_CONTAINER(vbox),child); > Most likely I am wrong on this, but you solely do a container remove, and not a delete/free etc on something that was created with entry_new(). I'm fairly

Re: How to tell the difference between a minimize and a switch desktop?

2008-10-27 Thread Iain *
2008/10/27 Rorschach <[EMAIL PROTECTED]>: > Hi Jim, > I discovered exactly the same odd behavior like you did: > http://rorschachstagebuch.wordpress.com/2008/09/16/gdk-minimiert-und-auf-einem-anderen-desktop-erzeugen-das-selbe-windowstate-event/ > ! > > changed_mask always gets the value GDK_WIND

memory leak when destroying widgets

2008-10-27 Thread Jacques Le Normand
Hello list I have this short program that's leaking memory (according to top). Could someone tell me what I'm doing wrong? The program simply creates, packs and shows 100 gtk_entries and then destroys them at 400 ms intervals I appreciate any help you can give P.-S. I didn't know which list to send

Re: How to tell the difference between a minimize and a switch desktop?

2008-10-27 Thread Rorschach
Hi Jim, I discovered exactly the same odd behavior like you did: http://rorschachstagebuch.wordpress.com/2008/09/16/gdk-minimiert-und-auf-einem-anderen-desktop-erzeugen-das-selbe-windowstate-event/ ! changed_mask always gets the value GDK_WINDOW_STATE_ICONIFIED when switching the desktop. I als

How to tell the difference between a minimize and a switch desktop?

2008-10-27 Thread Jim George
Hi All, I'm trying to write a program that will minimize to a tray icon. I do this by writing a handler for the "window-state-event", and checking the "changed mask" and "new window state" for the GDK_WINDOW_STATE_ICONIFIED flag. It all works well, and I also add a handler for the "activate" callba

setting size of GtkNotebook scroll-arrow

2008-10-27 Thread Rainer Klier
hi list, does anybody know a way to set the size of the scroll-arrows of GtkNotebooks that appear, if there are too many tabs to show in given place? i know there are the style-properties: arrow-spacing scroll-arrow-hlength scroll-arrow-vlength but these are all Read-only!! how do i set the siz