Re: Destroying a GtkNotebook
- From: "Cyril Dupuit" <cyrildupuit hotmail com>
- To: "Eduardo M KALINOWSKI" <ekalin gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Destroying a GtkNotebook
- Date: Thu, 10 Jan 2008 23:01:22 +0100
Thank you for your help,
It works fine !
Cyril
----- Original Message -----
From: "Eduardo M KALINOWSKI" <ekalin gmail com>
To: "Cyril Dupuit" <cyrildupuit hotmail com>
Cc: <gtk-app-devel-list gnome org>
Sent: Thursday, January 10, 2008 10:03 PM
Subject: Re: Destroying a GtkNotebook
Cyril Dupuit wrote:
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 ?
The proper way to destroy widgets is with gtk_widget_destroy(). That
should work.
--
I must have slipped a disk -- my pack hurts!
Eduardo M KALINOWSKI
ekalin gmail com
http://move.to/hpkb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]