aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/messages-service-dbus.c6
-rw-r--r--src/messages-service-dbus.h3
-rw-r--r--src/messages-service.c5
3 files changed, 14 insertions, 0 deletions
diff --git a/src/messages-service-dbus.c b/src/messages-service-dbus.c
index 6fa2125..ecc74e2 100644
--- a/src/messages-service-dbus.c
+++ b/src/messages-service-dbus.c
@@ -64,6 +64,12 @@ message_service_dbus_finalize (GObject *object)
return;
}
+MessageServiceDbus *
+message_service_dbus_new (void)
+{
+ return MESSAGE_SERVICE_DBUS(g_object_new(MESSAGE_SERVICE_DBUS_TYPE, NULL));
+}
+
static void
_messages_service_server_watch (void)
{
diff --git a/src/messages-service-dbus.h b/src/messages-service-dbus.h
index cde14b1..26035b7 100644
--- a/src/messages-service-dbus.h
+++ b/src/messages-service-dbus.h
@@ -31,6 +31,9 @@ struct _MessageServiceDbus {
};
GType message_service_dbus_get_type (void);
+MessageServiceDbus * message_service_dbus_new (void);
+void message_service_dbus_set_attention (gboolean attention);
+void message_service_dbus_set_icon (gboolean hidden);
G_END_DECLS
diff --git a/src/messages-service.c b/src/messages-service.c
index e4982a2..d23e9ee 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -33,6 +33,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "launcher-menu-item.h"
#include "dbus-data.h"
#include "dirs.h"
+#include "messages-service-dbus.h"
static IndicateListener * listener;
static GList * serverList = NULL;
@@ -41,6 +42,8 @@ static GList * launcherList = NULL;
static DbusmenuMenuitem * root_menuitem = NULL;
static GMainLoop * mainloop = NULL;
+static MessageServiceDbus * dbus_interface = NULL;
+
static void server_count_changed (AppMenuItem * appitem, guint count, gpointer data);
static void server_name_changed (AppMenuItem * appitem, gchar * name, gpointer data);
@@ -986,6 +989,8 @@ main (int argc, char ** argv)
return 1;
}
+ dbus_interface = message_service_dbus_new();
+
listener = indicate_listener_ref_default();
serverList = NULL;