From ecce43bcd12ddcc540f2700e8b40f65b758b3983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Fri, 2 Jul 2010 15:30:57 +0200 Subject: [PATCH] GtkMenuToolButton: unseal private pointer --- gtk/gtkmenutoolbutton.c | 6 +++--- gtk/gtkmenutoolbutton.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index 5f25864452..9e8cfc45da 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -32,8 +32,6 @@ #include "gtkintl.h" -#define GTK_MENU_TOOL_BUTTON_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonPrivate)) - struct _GtkMenuToolButtonPrivate { GtkWidget *button; @@ -376,7 +374,9 @@ gtk_menu_tool_button_init (GtkMenuToolButton *button) GtkWidget *arrow_button; GtkWidget *real_button; - button->priv = GTK_MENU_TOOL_BUTTON_GET_PRIVATE (button); + button->priv = G_TYPE_INSTANCE_GET_PRIVATE (button, + GTK_TYPE_MENU_TOOL_BUTTON, + GtkMenuToolButtonPrivate); gtk_tool_item_set_homogeneous (GTK_TOOL_ITEM (button), FALSE); diff --git a/gtk/gtkmenutoolbutton.h b/gtk/gtkmenutoolbutton.h index 916e6acf7b..8500934855 100644 --- a/gtk/gtkmenutoolbutton.h +++ b/gtk/gtkmenutoolbutton.h @@ -47,7 +47,7 @@ struct _GtkMenuToolButton GtkToolButton parent; /*< private >*/ - GtkMenuToolButtonPrivate *GSEAL (priv); + GtkMenuToolButtonPrivate *priv; }; struct _GtkMenuToolButtonClass