[gtk+/refactor: 72/106] GtkMenuToolButton: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 72/106] GtkMenuToolButton: unseal private pointer
- Date: Tue, 13 Jul 2010 17:36:03 +0000 (UTC)
commit 64c0fd9a2ba2d337e78b2817119e74519e1607d3
Author: Javier Jardón <jjardon gnome org>
Date: Fri Jul 2 15:30:57 2010 +0200
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 5f25864..9e8cfc4 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 916e6ac..8500934 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]