aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-printers-menu.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-01-14 06:47:32 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-01-14 06:47:32 +0100
commit9025561994ab31a85b47f825cd096be86dd57299 (patch)
tree6562bc26355eeda9b171b7442028f04d5576857b /src/indicator-printers-menu.c
parent7657cf8bcc934bd5d4456fb1cc04a88c6c4c8bca (diff)
downloadayatana-indicator-printers-9025561994ab31a85b47f825cd096be86dd57299.tar.gz
ayatana-indicator-printers-9025561994ab31a85b47f825cd096be86dd57299.tar.bz2
ayatana-indicator-printers-9025561994ab31a85b47f825cd096be86dd57299.zip
Use a custom menu item which shows printer status on the right
Diffstat (limited to 'src/indicator-printers-menu.c')
-rw-r--r--src/indicator-printers-menu.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/indicator-printers-menu.c b/src/indicator-printers-menu.c
index 1ff9d5c..c6a76da 100644
--- a/src/indicator-printers-menu.c
+++ b/src/indicator-printers-menu.c
@@ -81,11 +81,15 @@ add_printer_menuitem (IndicatorPrintersMenu *self,
DbusmenuMenuitem *child;
child = dbusmenu_menuitem_new ();
- dbusmenu_menuitem_property_set (child, "label", printer);
- g_signal_connect (child,
- "item-activated",
- G_CALLBACK (show_system_settings),
- printer);
+ dbusmenu_menuitem_property_set (child, "indicator-label", printer);
+ dbusmenu_menuitem_property_set (child, "indicator-right", "Paused");
+ dbusmenu_menuitem_property_set (child, "type", "indicator-item");
+ g_signal_connect_data (child,
+ "item-activated",
+ G_CALLBACK (show_system_settings),
+ g_strdup (printer),
+ (GClosureNotify) g_free,
+ 0);
dbusmenu_menuitem_child_append(priv->root, child);
g_object_unref (child);