aboutsummaryrefslogtreecommitdiff
path: root/src/notifications-service.c
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2011-05-16 15:44:35 -0400
committerJason Conti <jason.conti@gmail.com>2011-05-16 15:44:35 -0400
commit465d4f15b790c8f287b7139cbfa52351e990af8d (patch)
treea64ae07a33ac161497de84b3e010c40d1690124b /src/notifications-service.c
parent0d7a9f187d4b4e47b7ce95625a2c1e0ad6a631e2 (diff)
downloadayatana-indicator-notifications-465d4f15b790c8f287b7139cbfa52351e990af8d.tar.gz
ayatana-indicator-notifications-465d4f15b790c8f287b7139cbfa52351e990af8d.tar.bz2
ayatana-indicator-notifications-465d4f15b790c8f287b7139cbfa52351e990af8d.zip
A bit of renaming with the dbusmenu properties.
Diffstat (limited to 'src/notifications-service.c')
-rw-r--r--src/notifications-service.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/notifications-service.c b/src/notifications-service.c
index 2c07c57..880b889 100644
--- a/src/notifications-service.c
+++ b/src/notifications-service.c
@@ -46,6 +46,7 @@ static NotificationsInterface *dbus = NULL;
/* Global Items */
static DbusmenuMenuitem *clear_item = NULL;
static DbusmenuMenuitem *filter_item = NULL;
+static DbusmenuMenuitem *all_applications_item = NULL;
static GQueue *notification_items = NULL;
static guint notification_limit = 5;
@@ -69,8 +70,8 @@ add_notification_item(gpointer user_data)
DbusmenuMenuitem *item;
item = dbusmenu_menuitem_new();
- dbusmenu_menuitem_property_set(item, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_NOTIFICATION_MENUITEM_TYPE);
- dbusmenu_menuitem_property_set(item, DBUSMENU_MENUITEM_PROP_LABEL, notification_get_summary(note));
+ dbusmenu_menuitem_property_set(item, DBUSMENU_MENUITEM_PROP_TYPE, NOTIFICATION_MENUITEM_TYPE);
+ dbusmenu_menuitem_property_set(item, NOTIFICATION_MENUITEM_PROP_SUMMARY, notification_get_summary(note));
dbusmenu_menuitem_child_add_position(root, item, 1);
g_queue_push_head(notification_items, item);
@@ -115,7 +116,7 @@ build_menus(DbusmenuMenuitem *root)
g_debug("Building Menus.");
if(clear_item == NULL) {
clear_item = dbusmenu_menuitem_new();
- dbusmenu_menuitem_property_set(clear_item, DBUSMENU_MENUITEM_PROP_LABEL, _("Clear Notifications"));
+ dbusmenu_menuitem_property_set(clear_item, DBUSMENU_MENUITEM_PROP_LABEL, _("Clear"));
dbusmenu_menuitem_child_prepend(root, clear_item);
g_signal_connect(G_OBJECT(clear_item), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED,
@@ -125,6 +126,12 @@ build_menus(DbusmenuMenuitem *root)
filter_item = dbusmenu_menuitem_new();
dbusmenu_menuitem_property_set(filter_item, DBUSMENU_MENUITEM_PROP_LABEL, _("Filter"));
dbusmenu_menuitem_child_prepend(root, filter_item);
+
+ if(all_applications_item == NULL) {
+ all_applications_item = dbusmenu_menuitem_new();
+ dbusmenu_menuitem_property_set(all_applications_item, DBUSMENU_MENUITEM_PROP_LABEL, _("All Applications"));
+ dbusmenu_menuitem_child_append(filter_item, all_applications_item);
+ }
}
return;