diff options
author | Tim Janik <timj@gtk.org> | 2001-07-02 05:03:21 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2001-07-02 05:03:21 +0000 |
commit | 93db42e7a6989b418089e86d17a7b1c61c56d9cb (patch) | |
tree | 0f873064f374cac8d3d381e7e2fa4f50c2aaa319 /gtk/gtkobject.c | |
parent | de985fb58e80be74a181fee5e6f2d85d390c9140 (diff) | |
download | gtk+-93db42e7a6989b418089e86d17a7b1c61c56d9cb.tar.gz |
s/signal_newc/signal_new/
Mon Jul 2 06:35:10 2001 Tim Janik <timj@gtk.org>
* gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
* gtk/gtkobject.c (gtk_object_destroy): invoke
g_object_run_dispose().
* gtk/gtkwindow.c:
* gtk/gtkwidget.c:
* gtk/gtkobject.c:
* gtk/gtklist.c: s/shutdown/dispose/ for the GObject
method.
Diffstat (limited to 'gtk/gtkobject.c')
-rw-r--r-- | gtk/gtkobject.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c index 272eef2f89..a0f60a1810 100644 --- a/gtk/gtkobject.c +++ b/gtk/gtkobject.c @@ -55,7 +55,7 @@ static void gtk_object_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); -static void gtk_object_shutdown (GObject *object); +static void gtk_object_dispose (GObject *object); static void gtk_object_real_destroy (GtkObject *object); static void gtk_object_finalize (GObject *object); static void gtk_object_notify_weaks (GtkObject *object); @@ -317,7 +317,7 @@ gtk_object_class_init (GtkObjectClass *class) gobject_class->set_property = gtk_object_set_property; gobject_class->get_property = gtk_object_get_property; - gobject_class->shutdown = gtk_object_shutdown; + gobject_class->dispose = gtk_object_dispose; gobject_class->finalize = gtk_object_finalize; class->destroy = gtk_object_real_destroy; @@ -358,14 +358,12 @@ gtk_object_destroy (GtkObject *object) /* need to hold a reference count around all class method * invocations. */ - gtk_object_ref (object); - G_OBJECT_GET_CLASS (object)->shutdown (G_OBJECT (object)); - gtk_object_unref (object); + g_object_run_dispose (G_OBJECT (object)); } } static void -gtk_object_shutdown (GObject *gobject) +gtk_object_dispose (GObject *gobject) { GtkObject *object = GTK_OBJECT (gobject); @@ -381,7 +379,7 @@ gtk_object_shutdown (GObject *gobject) GTK_OBJECT_UNSET_FLAGS (object, GTK_DESTROYED); } - G_OBJECT_CLASS (parent_class)->shutdown (gobject); + G_OBJECT_CLASS (parent_class)->dispose (gobject); } static void |