diff options
author | Ted Gould <ted@gould.cx> | 2010-10-13 12:41:16 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-10-13 12:41:16 -0500 |
commit | de67e00eb07dbd06b6c53798653a690bb9b5fe85 (patch) | |
tree | a09dae9ff2abd717c6900534120dfbe8b9ae9630 /libdbusmenu-gtk/client.c | |
parent | ba03e53fb680f3efb84156fa35926fef2ea3b36d (diff) | |
parent | f8d472db4415096f7a5e99e14aa3b1af290d2098 (diff) | |
download | libdbusmenu-de67e00eb07dbd06b6c53798653a690bb9b5fe85.tar.gz libdbusmenu-de67e00eb07dbd06b6c53798653a690bb9b5fe85.tar.bz2 libdbusmenu-de67e00eb07dbd06b6c53798653a690bb9b5fe85.zip |
Breaking ABI. Getting back privates and pointers to private area.
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r-- | libdbusmenu-gtk/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 6970d59..487971f 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -37,13 +37,11 @@ License version 3 and version 2.1 along with this program. If not, see #include "genericmenuitem.h" /* Private */ -typedef struct _DbusmenuGtkClientPrivate DbusmenuGtkClientPrivate; struct _DbusmenuGtkClientPrivate { GtkAccelGroup * agroup; }; -#define DBUSMENU_GTKCLIENT_GET_PRIVATE(o) \ -(G_TYPE_INSTANCE_GET_PRIVATE ((o), DBUSMENU_GTKCLIENT_TYPE, DbusmenuGtkClientPrivate)) +#define DBUSMENU_GTKCLIENT_GET_PRIVATE(o) (DBUSMENU_GTKCLIENT(o)->priv) /* Prototypes */ static void dbusmenu_gtkclient_class_init (DbusmenuGtkClientClass *klass); @@ -85,6 +83,8 @@ dbusmenu_gtkclient_class_init (DbusmenuGtkClientClass *klass) static void dbusmenu_gtkclient_init (DbusmenuGtkClient *self) { + self->priv = G_TYPE_INSTANCE_GET_PRIVATE ((self), DBUSMENU_GTKCLIENT_TYPE, DbusmenuGtkClientPrivate); + DbusmenuGtkClientPrivate * priv = DBUSMENU_GTKCLIENT_GET_PRIVATE(self); priv->agroup = NULL; |