aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-12 16:21:44 -0500
committerTed Gould <ted@gould.cx>2010-10-12 16:21:44 -0500
commite437868558658d3c949b787566ab5668a0194d3a (patch)
tree317f29f96abfa2d7594c70d65389f0b0ce349c34 /libdbusmenu-glib
parent176f561e6959611b96e4c1525958fce757a6fb46 (diff)
downloadlibdbusmenu-e437868558658d3c949b787566ab5668a0194d3a.tar.gz
libdbusmenu-e437868558658d3c949b787566ab5668a0194d3a.tar.bz2
libdbusmenu-e437868558658d3c949b787566ab5668a0194d3a.zip
Switching to using the pointer in the instance
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/menuitem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c
index e9b70d4..73b765b 100644
--- a/libdbusmenu-glib/menuitem.c
+++ b/libdbusmenu-glib/menuitem.c
@@ -83,8 +83,7 @@ enum {
#define PROP_ID_S "id"
-#define DBUSMENU_MENUITEM_GET_PRIVATE(o) \
-(G_TYPE_INSTANCE_GET_PRIVATE ((o), DBUSMENU_TYPE_MENUITEM, DbusmenuMenuitemPrivate))
+#define DBUSMENU_MENUITEM_GET_PRIVATE(o) (DBUSMENU_MENUITEM(o)->priv)
/* Prototypes */
static void dbusmenu_menuitem_class_init (DbusmenuMenuitemClass *klass);
@@ -289,6 +288,8 @@ _g_value_free (gpointer data)
static void
dbusmenu_menuitem_init (DbusmenuMenuitem *self)
{
+ self->priv = G_TYPE_INSTANCE_GET_PRIVATE ((self), DBUSMENU_TYPE_MENUITEM, DbusmenuMenuitemPrivate);
+
DbusmenuMenuitemPrivate * priv = DBUSMENU_MENUITEM_GET_PRIVATE(self);
priv->id = -1;