Parent window of an EggTrayIcon

2009-12-24 Thread Fabrice DELENTE
Hello. I'm using sawfish 1.6.0 as my window manager and lxpanel as my system tray. I have gvolwheel (volume control) in my systray. However, when I click on its icon, the mixer steup window appears in the middle of my desktop, instead of right above the icon. I'd like to modify the source so

Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Andrew Wood
The following function is called to display a vbox, which is read from a glade file, in a scrollview. If the vbox or 'page' hasnt been displayed before then generalpageinitialised will be false. There are other 'pages' in the app which are vboxes read from a glade file in the same way. The

Re: gtkhtml fonts

2009-12-24 Thread Matthew Talbert
On Fri, Dec 18, 2009 at 10:08 PM, Matthew Talbert ransom1...@gmail.com wrote: It used to be possible to change the font that gtkhtml used (for the entire document) by calling gtk_widget_modify_font on the widget. It seems in recent versions that this no longer works. I've played around with

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Tristan Van Berkom
From the assertions it *looks* like glade_xml_get_widget() is returning NULL for mainvbox. Cheers, -Tristan On Thu, Dec 24, 2009 at 11:29 AM, Andrew Wood ajw...@theiet.org wrote: The following function is called to display a vbox, which is read from a glade file, in a scrollview. If

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Andrew Wood
But that bit of code only runs the first time and the first time it works. On 24 Dec 2009, at 19:09, Tristan Van Berkom wrote: From the assertions it *looks* like glade_xml_get_widget() is returning NULL for mainvbox. Cheers, -Tristan On Thu, Dec 24, 2009 at 11:29 AM, Andrew Wood

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Tristan Van Berkom
On Thu, Dec 24, 2009 at 6:40 PM, Andrew Wood ajw...@theiet.org wrote: But that bit of code only runs the first time and the first time it works. On 24 Dec 2009, at 19:09, Tristan Van Berkom wrote: From the assertions it *looks* like glade_xml_get_widget() is returning NULL for mainvbox.

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Tristan Van Berkom
Ahh you mean it shows up and everything the first time, I see. I think you are missing a reference to the generalpage widget. Its initially built as a floating, and then the floating reference is sinked the first time you add it somewhere, when you remove it the first time; its destroyed because

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Andrew Wood
Thanks Tristan. I think I follow what you're saying... The call to gtk_container_remove is decrementing the ref count so generalpage becomes NULL? Is there a way to up the count immediately prior to calling gtk_container_remove Tristan Van Berkom wrote: Ahh you mean it shows up and