diff options
author | Ted Gould <ted@canonical.com> | 2009-08-06 16:17:40 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-06 16:17:40 +0100 |
commit | 5afcbe0b90e4005446087e49907f61ddcb9b900f (patch) | |
tree | 006202cdc99b2fd3bf3e50009ca3c9d51b530605 /src | |
parent | 770f0349686e63af7d5ff01451e9d01eb62edbc4 (diff) | |
download | ayatana-indicator-session-5afcbe0b90e4005446087e49907f61ddcb9b900f.tar.gz ayatana-indicator-session-5afcbe0b90e4005446087e49907f61ddcb9b900f.tar.bz2 ayatana-indicator-session-5afcbe0b90e4005446087e49907f61ddcb9b900f.zip |
Now we have privates.
Diffstat (limited to 'src')
-rw-r--r-- | src/status-service-dbus.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/status-service-dbus.c b/src/status-service-dbus.c index 8dc8aea..d5a880a 100644 --- a/src/status-service-dbus.c +++ b/src/status-service-dbus.c @@ -17,6 +17,16 @@ static gboolean _status_service_server_pretty_user_name (StatusServiceDbus * ser #include "status-service-server.h" +/* Private */ +typedef struct _StatusServiceDbusPrivate StatusServiceDbusPrivate; +struct _StatusServiceDbusPrivate +{ + gchar * name; +}; + +#define STATUS_SERVICE_DBUS_GET_PRIVATE(o) \ + (G_TYPE_INSTANCE_GET_PRIVATE ((o), STATUS_SERVICE_DBUS_TYPE, StatusServiceDbusPrivate)) + /* Signals */ enum { USER_CHANGED, @@ -34,6 +44,8 @@ status_service_dbus_class_init (StatusServiceDbusClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + g_type_class_add_private (object_class, sizeof(StatusServiceDbusPrivate)); + object_class->dispose = status_service_dbus_dispose; object_class->finalize = status_service_dbus_finalize; @@ -85,6 +97,9 @@ status_service_dbus_init (StatusServiceDbus *self) INDICATOR_STATUS_SERVICE_DBUS_OBJECT, G_OBJECT(self)); + StatusServiceDbusPrivate * priv = STATUS_SERVICE_DBUS_GET_PRIVATE(self); + priv->name = NULL; + return; } |