differentiating selection-request-events

2008-03-14 Thread Xavier Toth
Simply clicking on the 'Edit' menu of a gnome-terminal causes a selection-request-event, why? If you then select 'Paste' another selection-request-event occurs. I really only want to know when a 'Paste' has been requested but I don't know how to differentiate between the event generated by the Edit

Add a button to the about dialog

2008-03-14 Thread Daniel Leidert
Hi, I would like to add some information to the About dialog of an application. The About-dialog is created using gtk_show_about_dialog(). Now what I did is adding the following lines after calling gtk_show_about_dialog(): [..] dialog = g_object_get_data (G_OBJECT (GTK_WINDOW (main_window)), "g

Re: Problem with references

2008-03-14 Thread Brian J. Tarricone
On Fri, 14 Mar 2008 09:41:22 +0100 Gabriele Greco wrote: > After some headache with my gtk C++ classes I've found with a small > test program this fact about the gobject references: Sorry, not sure what you're trying to do. Are you trying to do something with gtkmm? Or are you creating your ow

Problem with references

2008-03-14 Thread Gabriele Greco
After some headache with my gtk C++ classes I've found with a small test program this fact about the gobject references: Window Creation: 1 Sink: 2 End: 1 Label Creation: 1 Sink: 1 End: 0 It seems that window derived widgets are created with a not floating reference, so they should be handled di