Commit a7bdb891 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

reverted a small part of my last commit. It doesn't seem to be a good idea

2003-11-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdock.c: reverted a small part of my last commit.
	It doesn't seem to be a good idea to unref the context in dispose().
	Do it in destroy() just like we used to do.
parent 689c754e
2003-11-20 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdock.c: reverted a small part of my last commit.
It doesn't seem to be a good idea to unref the context in dispose().
Do it in destroy() just like we used to do.
2003-11-20 Sven Neumann <sven@gimp.org>
 
* app/gui/info-dialog.c (info_dialog_new_extended)
......@@ -75,7 +75,6 @@ static void gimp_dock_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_dock_dispose (GObject *object);
static void gimp_dock_destroy (GtkObject *object);
......@@ -178,7 +177,6 @@ gimp_dock_class_init (GimpDockClass *klass)
object_class->constructor = gimp_dock_constructor;
object_class->set_property = gimp_dock_set_property;
object_class->get_property = gimp_dock_get_property;
object_class->dispose = gimp_dock_dispose;
gtk_object_class->destroy = gimp_dock_destroy;
......@@ -294,27 +292,19 @@ gimp_dock_constructor (GType type,
}
static void
gimp_dock_dispose (GObject *object)
gimp_dock_destroy (GtkObject *object)
{
GimpDock *dock = GIMP_DOCK (object);
while (dock->dockbooks)
gimp_dock_remove_book (dock, GIMP_DOCKBOOK (dock->dockbooks->data));
if (dock->context)
{
g_object_unref (dock->context);
dock->context = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (object);
}
static void
gimp_dock_destroy (GtkObject *object)
{
GimpDock *dock = GIMP_DOCK (object);
while (dock->dockbooks)
gimp_dock_remove_book (dock, GIMP_DOCKBOOK (dock->dockbooks->data));
GTK_OBJECT_CLASS (parent_class)->destroy (object);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment