Re: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

2015-03-12 Thread Emmanuel Thomas-Maurin
I think you should use instead: #define NEW_GTK_DESTROY(WIDGET) if (GTK_IS_WIDGET(WIDGET)) \ ... On 03/12/2015 04:20 PM, Rui Pedro Caldeira wrote: 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

Re: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

2015-03-12 Thread Colomban Wendling
Le 12/03/2015 16:20, Rui Pedro Caldeira a écrit : 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. Why? Widgets are automatically destroyed

IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

2015-03-12 Thread Rui Pedro Caldeira
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) {