summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-01-15 18:00:36 -0500
committerThomas Thurman <tthurman@gnome.org>2011-01-15 18:00:36 -0500
commit1754bd2e45e6b7d3273caea14dc1553178011d74 (patch)
treec8ae938270ebe021e64b114a0458b458e826d843
parent04d5891337bb09f64e51d4be5f5c48b2ea60c547 (diff)
downloadmetacity-1754bd2e45e6b7d3273caea14dc1553178011d74.tar.gz
Remove use of GtkObject. Closes #630681.bug630681
GtkObject will be gone in GNOME 3, so we'd better be ready.
-rw-r--r--src/ui/frames.c10
-rw-r--r--src/ui/metaaccellabel.c9
-rw-r--r--src/ui/themewidget.c2
3 files changed, 8 insertions, 13 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index d8fe3cdc..c196413e 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -43,7 +43,7 @@
static void meta_frames_class_init (MetaFramesClass *klass);
static void meta_frames_init (MetaFrames *frames);
-static void meta_frames_destroy (GtkObject *object);
+static void meta_frames_destroy (GtkWidget *object);
static void meta_frames_finalize (GObject *object);
static void meta_frames_style_set (GtkWidget *widget,
GtkStyle *prev_style);
@@ -137,17 +137,15 @@ static void
meta_frames_class_init (MetaFramesClass *class)
{
GObjectClass *gobject_class;
- GtkObjectClass *object_class;
GtkWidgetClass *widget_class;
gobject_class = G_OBJECT_CLASS (class);
- object_class = (GtkObjectClass*) class;
widget_class = (GtkWidgetClass*) class;
parent_class = g_type_class_peek_parent (class);
gobject_class->finalize = meta_frames_finalize;
- object_class->destroy = meta_frames_destroy;
+ widget_class->destroy = meta_frames_destroy;
widget_class->style_set = meta_frames_style_set;
@@ -232,7 +230,7 @@ listify_func (gpointer key, gpointer value, gpointer data)
}
static void
-meta_frames_destroy (GtkObject *object)
+meta_frames_destroy (GtkWidget *object)
{
GSList *winlist;
GSList *tmp;
@@ -256,7 +254,7 @@ meta_frames_destroy (GtkObject *object)
}
g_slist_free (winlist);
- GTK_OBJECT_CLASS (parent_class)->destroy (object);
+ GTK_WIDGET_CLASS (parent_class)->destroy (object);
}
static void
diff --git a/src/ui/metaaccellabel.c b/src/ui/metaaccellabel.c
index f4f06ac1..6b2cb00a 100644
--- a/src/ui/metaaccellabel.c
+++ b/src/ui/metaaccellabel.c
@@ -39,7 +39,7 @@
static void meta_accel_label_class_init (MetaAccelLabelClass *klass);
static void meta_accel_label_init (MetaAccelLabel *accel_label);
-static void meta_accel_label_destroy (GtkObject *object);
+static void meta_accel_label_destroy (GtkWidget *object);
static void meta_accel_label_finalize (GObject *object);
static void meta_accel_label_size_request (GtkWidget *widget,
GtkRequisition *requisition);
@@ -82,14 +82,13 @@ static void
meta_accel_label_class_init (MetaAccelLabelClass *class)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (class);
- GtkObjectClass *object_class = GTK_OBJECT_CLASS (class);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
parent_class = g_type_class_peek_parent (class);
gobject_class->finalize = meta_accel_label_finalize;
- object_class->destroy = meta_accel_label_destroy;
+ widget_class->destroy = meta_accel_label_destroy;
widget_class->size_request = meta_accel_label_size_request;
widget_class->expose_event = meta_accel_label_expose_event;
@@ -186,7 +185,7 @@ meta_accel_label_new_with_mnemonic (const gchar *string)
}
static void
-meta_accel_label_destroy (GtkObject *object)
+meta_accel_label_destroy (GtkWidget *object)
{
MetaAccelLabel *accel_label = META_ACCEL_LABEL (object);
@@ -197,7 +196,7 @@ meta_accel_label_destroy (GtkObject *object)
accel_label->accel_mods = 0;
accel_label->accel_key = 0;
- GTK_OBJECT_CLASS (parent_class)->destroy (object);
+ GTK_WIDGET_CLASS (parent_class)->destroy (object);
}
static void
diff --git a/src/ui/themewidget.c b/src/ui/themewidget.c
index 7ee9db08..c70d2a87 100644
--- a/src/ui/themewidget.c
+++ b/src/ui/themewidget.c
@@ -64,10 +64,8 @@ static void
meta_area_class_init (MetaAreaClass *class)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (class);
- GtkObjectClass *object_class;
GtkWidgetClass *widget_class;
- object_class = (GtkObjectClass*) class;
widget_class = (GtkWidgetClass*) class;
parent_class = g_type_class_peek (gtk_misc_get_type ());