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

Simulate button press events

2009-12-24 Thread Matteo Landi
Hi all, as the subject says, I'm trying to synthesize mouse clicks over the focused window (which is now owned by my application). Looking around it seems that gtk offers only a way to move the cursor (gdk_display_warp_pointer) but there is anything related to button press. For the moment I'm using

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 "sink"ed the first time you add it somewhere, when you remove it the first time; its destroyed becaus

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 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". You mean

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
>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 wrote: > The following function is called to display a vbox, which is read from a > glade file, in a scrollview. > > If the  vbox or

Re: gtkhtml fonts

2009-12-24 Thread Matthew Talbert
On Fri, Dec 18, 2009 at 10:08 PM, Matthew Talbert 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 setting styles on t

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

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 th