IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed



Hello guys, I once again seek your guidance.

I have a series of GtkWidget* that then take the form of GtkButton,
GtkComboBoxText,...

And when I close a window, I first want to destroy the widgets. So I use
the following macro:

#define NEW_GTK_DESTROY(WIDGET)           if(WIDGET!=NULL)
{                        \

gtk_widget_destroy(GTK_WIDGET(WIDGET));}



But I always get this "Gtk-CRITICAL **: IA__gtk_widget_destroy: assertion
'GTK_IS_WIDGET (widget)' failed" warning. How can I fix this?

Thanks, Rui


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