Destroying a GtkNotebook



Hello,

I am delopping an application on Windows XP that uses a GtkNotebook but I don't know how can I destroy it without destoying the application.

At the initialization of my application, I create the menu, the toolbar and when I open a file, a GtkNotebook is created to draw some information.

But, when this file is closed, I need to close this Notebook too (because the drag and drop doesn't work with a notebook).

To do that, I am using "g_object_unref()" function but I have some warnings :

GLib-GObject-WARNING **: instance of invalid non-instantiatable type `<invalid>' GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed GLib-GObject-WARNING **: instance of invalid non-instantiatable type `<invalid>' GLib-GObject-CRITICAL **: g_signal_handlers_destroy: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed GLib-GObject-WARNING **: instance of invalid non-instantiatable type `<invalid>' GLib-GObject-CRITICAL **: g_signal_handlers_destroy: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

I think that is not the better way to destroy the notebook and to free all the associated memory.

Have you any solution that can help me ?

Thank you in advance,

Cyril



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