Unexplained Gtk Warning

I'm using the gtk_signal_handlers_destroy() function to remove a signal from
a toggle button.  However, when I remove the signal I get the following warning:
Gtk-WARNING **: gtk_signal_disconnect_by_data(): could not find handler containing data (0x8159E00)

Could someone tell me how to avoid the warning?  Here is some example code:

    /* First, I need to get rid of the toggle signal */
    gtk_signal_handlers_destroy(GTK_OBJECT (tbut));

    /* Now I want to toggle the button without the callback executing */
    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(tbut), TRUE);  

    /* Now let's turn the signal back on */
    gtk_signal_connect (GTK_OBJECT (tbut), "clicked",
			GTK_SIGNAL_FUNC (obj_on_cache_clicked),


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