Mike, -----Original Message----->From: Mike Massonnet <mmassonnet@xxxxxxxxx>>Sent: Mar 11, 2009 8:52 PM>To: gtk-list@xxxxxxxxx>Cc: Igor Korot <ikorot@xxxxxxxxxxxxx>>Subject: Re: GtkComboBox question>>Le Wed, 11 Mar 2009 19:32:29 -0400 (EDT),>Igor Korot <ikorot@xxxxxxxxxxxxx> a écrit :>> So basically what I'm looking for is this code:>> >> g_signal_connect( combo->popup-shown, "notify::popup-shown",>> G_CALLBACK(...),combo);>> >> right?>>Nope, the definition is (Object, "sig-name", callback, user_data), and>combo->popup-shown is completely wrong. You want to pass the combobox. Yes. Learned it the hard way. I wish the place I'm staying for the weekhad a web access... ;-) >>> ">> Gets properties of an object. >> >> In general, a copy is made of the property contents and the caller is>> responsible for freeing the memory in the appropriate manner for the>> type, for instance by calling g_free() or g_object_unref(). >> ">> >> What scares me is the words "In general". So if this property is>> boolean, then according to the example that follows, I don't have to>> free the memory. But then will I have a memory leak?>>No, because you declare the boolean as a local variable. Strings are>a good example of memory you need to free. Ok, that clarifies it. >>Mike All in all I'm happy to report that this solution works. This is whatyou need in order to get the dropdown/closeup signals/events. A big thank you to Mike and everybody else. _______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list