aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/status-service-dbus.c15
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;
}