summaryrefslogtreecommitdiff
path: root/gtk/gtkinvisible.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-09-18 19:55:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-09-26 22:18:18 -0400
commiteac1959d2c843dfc55353ffc89c16b74cb26e9bc (patch)
tree214f431642a466bcf016a317a3d39e8a95772ca9 /gtk/gtkinvisible.c
parent3b8184cfee90f8f4e13ae64919a6a08921f78b8a (diff)
downloadgtk+-eac1959d2c843dfc55353ffc89c16b74cb26e9bc.tar.gz
Move destroy signal to GtkWidget
Also make GtkWidget derive from GInitiallyUnowned
Diffstat (limited to 'gtk/gtkinvisible.c')
-rw-r--r--gtk/gtkinvisible.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c
index b8a5e67b3b..e08f62da24 100644
--- a/gtk/gtkinvisible.c
+++ b/gtk/gtkinvisible.c
@@ -42,7 +42,7 @@ enum {
LAST_ARG
};
-static void gtk_invisible_destroy (GtkObject *object);
+static void gtk_invisible_destroy (GtkWidget *widget);
static void gtk_invisible_realize (GtkWidget *widget);
static void gtk_invisible_style_set (GtkWidget *widget,
GtkStyle *previous_style);
@@ -68,19 +68,17 @@ static void
gtk_invisible_class_init (GtkInvisibleClass *class)
{
GObjectClass *gobject_class;
- GtkObjectClass *object_class;
GtkWidgetClass *widget_class;
widget_class = (GtkWidgetClass*) class;
- object_class = (GtkObjectClass*) class;
gobject_class = (GObjectClass*) class;
widget_class->realize = gtk_invisible_realize;
widget_class->style_set = gtk_invisible_style_set;
widget_class->show = gtk_invisible_show;
widget_class->size_allocate = gtk_invisible_size_allocate;
+ widget_class->destroy = gtk_invisible_destroy;
- object_class->destroy = gtk_invisible_destroy;
gobject_class->set_property = gtk_invisible_set_property;
gobject_class->get_property = gtk_invisible_get_property;
gobject_class->constructor = gtk_invisible_constructor;
@@ -116,9 +114,9 @@ gtk_invisible_init (GtkInvisible *invisible)
}
static void
-gtk_invisible_destroy (GtkObject *object)
+gtk_invisible_destroy (GtkWidget *widget)
{
- GtkInvisible *invisible = GTK_INVISIBLE (object);
+ GtkInvisible *invisible = GTK_INVISIBLE (widget);
GtkInvisiblePrivate *priv = invisible->priv;
if (priv->has_user_ref_count)
@@ -127,7 +125,7 @@ gtk_invisible_destroy (GtkObject *object)
g_object_unref (invisible);
}
- GTK_OBJECT_CLASS (gtk_invisible_parent_class)->destroy (object);
+ GTK_WIDGET_CLASS (gtk_invisible_parent_class)->destroy (widget);
}
/**