summaryrefslogtreecommitdiff
path: root/gtk/gtkstatusbar.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-06-27 20:02:52 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-07-09 09:30:02 +0100
commit0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch)
tree16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtkstatusbar.c
parent365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff)
downloadgtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r--gtk/gtkstatusbar.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index f5398b9cce..643fbe06b0 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -116,7 +116,7 @@ static void gtk_statusbar_hierarchy_changed (GtkWidget *widget,
static guint statusbar_signals[SIGNAL_LAST] = { 0 };
-G_DEFINE_TYPE (GtkStatusbar, gtk_statusbar, GTK_TYPE_BOX);
+G_DEFINE_TYPE_WITH_PRIVATE (GtkStatusbar, gtk_statusbar, GTK_TYPE_BOX)
static void
gtk_statusbar_class_init (GtkStatusbarClass *class)
@@ -184,8 +184,6 @@ gtk_statusbar_class_init (GtkStatusbarClass *class)
gtk_widget_class_bind_child (widget_class, GtkStatusbarPrivate, frame);
gtk_widget_class_bind_child (widget_class, GtkStatusbarPrivate, label);
- g_type_class_add_private (class, sizeof (GtkStatusbarPrivate));
-
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_STATUSBAR_ACCESSIBLE);
}
@@ -195,9 +193,7 @@ gtk_statusbar_init (GtkStatusbar *statusbar)
GtkStatusbarPrivate *priv;
GtkShadowType shadow_type;
- statusbar->priv = G_TYPE_INSTANCE_GET_PRIVATE (statusbar,
- GTK_TYPE_STATUSBAR,
- GtkStatusbarPrivate);
+ statusbar->priv = gtk_statusbar_get_instance_private (statusbar);
priv = statusbar->priv;
priv->seq_context_id = 1;