[gimp] libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
- Date: Fri, 15 Oct 2010 00:34:52 +0000 (UTC)
commit 84274e22307967036e024fe9537aac1ea418a437
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 15 02:34:29 2010 +0200
libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
libgimpwidgets/gimppickbutton.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgimpwidgets/gimppickbutton.c b/libgimpwidgets/gimppickbutton.c
index 0d07440..4e6e3b3 100644
--- a/libgimpwidgets/gimppickbutton.c
+++ b/libgimpwidgets/gimppickbutton.c
@@ -53,7 +53,7 @@ enum
};
-static void gimp_pick_button_destroy (GtkObject *object);
+static void gimp_pick_button_dispose (GObject *object);
static void gimp_pick_button_clicked (GtkButton *button);
@@ -86,7 +86,7 @@ static guint pick_button_signals[LAST_SIGNAL] = { 0 };
static void
gimp_pick_button_class_init (GimpPickButtonClass* klass)
{
- GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkButtonClass *button_class = GTK_BUTTON_CLASS (klass);
/**
@@ -106,7 +106,7 @@ gimp_pick_button_class_init (GimpPickButtonClass* klass)
G_TYPE_NONE, 1,
G_TYPE_POINTER);
- object_class->destroy = gimp_pick_button_destroy;
+ object_class->dispose = gimp_pick_button_dispose;
button_class->clicked = gimp_pick_button_clicked;
@@ -130,7 +130,7 @@ gimp_pick_button_init (GimpPickButton *button)
}
static void
-gimp_pick_button_destroy (GtkObject *object)
+gimp_pick_button_dispose (GObject *object)
{
GimpPickButton *button = GIMP_PICK_BUTTON (object);
@@ -146,7 +146,7 @@ gimp_pick_button_destroy (GtkObject *object)
button->grab_widget = NULL;
}
- GTK_OBJECT_CLASS (parent_class)->destroy (object);
+ G_OBJECT_CLASS (parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]