diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-06-27 20:02:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-07-09 09:30:02 +0100 |
commit | 0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch) | |
tree | 16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtkmenutoolbutton.c | |
parent | 365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff) | |
download | gtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz |
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtkmenutoolbutton.c')
-rw-r--r-- | gtk/gtkmenutoolbutton.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index 6d9c1faf35..93a630d86b 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -100,6 +100,7 @@ static gint signals[LAST_SIGNAL]; static GtkBuildableIface *parent_buildable_iface; G_DEFINE_TYPE_WITH_CODE (GtkMenuToolButton, gtk_menu_tool_button, GTK_TYPE_TOOL_BUTTON, + G_ADD_PRIVATE (GtkMenuToolButton) G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE, gtk_menu_tool_button_buildable_interface_init)) @@ -272,8 +273,6 @@ gtk_menu_tool_button_class_init (GtkMenuToolButtonClass *klass) P_("The dropdown menu"), GTK_TYPE_MENU, GTK_PARAM_READWRITE)); - - g_type_class_add_private (object_class, sizeof (GtkMenuToolButtonPrivate)); } static void @@ -283,9 +282,7 @@ gtk_menu_tool_button_init (GtkMenuToolButton *button) GtkWidget *arrow_button; GtkWidget *real_button; - button->priv = G_TYPE_INSTANCE_GET_PRIVATE (button, - GTK_TYPE_MENU_TOOL_BUTTON, - GtkMenuToolButtonPrivate); + button->priv = gtk_menu_tool_button_get_instance_private (button); gtk_tool_item_set_homogeneous (GTK_TOOL_ITEM (button), FALSE); |