aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-printers-menu.c
diff options
context:
space:
mode:
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);