Re: GtkCombo box not really being destroyed?



I specifically created a GtkCombo with a signal for "destroy_event", ie:

            gtk_signal_connect(
                GTK_OBJECT(combo), 
                "destroy_event",
                GTK_SIGNAL_FUNC(GUIComboDestroyCB),   
                (gpointer)cb_data
            );

However function GUIComboDestroyCB() is never called when
gtk_destroy_widget() is done on the combo box.  I tried attaching the
signal to combo->entry as well but that didn't work either.

Other widgets that have the destroy_event signal work properly, except for
the GtkCombo is there a reason why or did I use the wrong procedure?



Use "destroy" not "destroy_event", "destroy_event" is useless.

Havoc

What's the prototype for the callback function for the "destroy" signal?

I couldn't find it in any of the header files. Would it be
void DestroyCB(GtkWidget *widget, gpointer data); ?


--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]