summaryrefslogtreecommitdiff
path: root/gtk/deprecated/gtkhandlebox.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-07-05 00:08:37 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-07-09 09:30:02 +0100
commit84186ef11be9cb8f46e1b762ae2b04d62b741065 (patch)
tree2ed430db079ffaf5e8ef0f07dae42e1a54f6533a /gtk/deprecated/gtkhandlebox.c
parent0899ef7cc9cf73824901923143f38bb9b6d224a3 (diff)
downloadgtk+-84186ef11be9cb8f46e1b762ae2b04d62b741065.tar.gz
deprecated: Use the new macros for adding instance private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/deprecated/gtkhandlebox.c')
-rw-r--r--gtk/deprecated/gtkhandlebox.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/deprecated/gtkhandlebox.c b/gtk/deprecated/gtkhandlebox.c
index b745200c1b..8cfce5df0d 100644
--- a/gtk/deprecated/gtkhandlebox.c
+++ b/gtk/deprecated/gtkhandlebox.c
@@ -202,7 +202,7 @@ static void gtk_handle_box_end_drag (GtkHandleBox *hb,
static guint handle_box_signals[SIGNAL_LAST] = { 0 };
-G_DEFINE_TYPE (GtkHandleBox, gtk_handle_box, GTK_TYPE_BIN)
+G_DEFINE_TYPE_WITH_PRIVATE (GtkHandleBox, gtk_handle_box, GTK_TYPE_BIN)
static void
gtk_handle_box_class_init (GtkHandleBoxClass *class)
@@ -322,8 +322,6 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
_gtk_marshal_VOID__OBJECT,
G_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
-
- g_type_class_add_private (gobject_class, sizeof (GtkHandleBoxPrivate));
}
static void
@@ -332,9 +330,7 @@ gtk_handle_box_init (GtkHandleBox *handle_box)
GtkHandleBoxPrivate *priv;
GtkStyleContext *context;
- handle_box->priv = G_TYPE_INSTANCE_GET_PRIVATE (handle_box,
- GTK_TYPE_HANDLE_BOX,
- GtkHandleBoxPrivate);
+ handle_box->priv = gtk_handle_box_get_instance_private (handle_box);
priv = handle_box->priv;
gtk_widget_set_has_window (GTK_WIDGET (handle_box), TRUE);