aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2011-08-02 12:19:10 -0400
committerMichael Terry <michael.terry@canonical.com>2011-08-02 12:19:10 -0400
commitf3e3f6173c6782b7fe8bfaa181477cb6b4bd672d (patch)
tree19387bd281f7c4bca54b8ba5e40163e5bebb0c69 /src
parentb587cf67da20cce1a8467c190696cbdb35ef347b (diff)
downloadayatana-indicator-session-f3e3f6173c6782b7fe8bfaa181477cb6b4bd672d.tar.gz
ayatana-indicator-session-f3e3f6173c6782b7fe8bfaa181477cb6b4bd672d.tar.bz2
ayatana-indicator-session-f3e3f6173c6782b7fe8bfaa181477cb6b4bd672d.zip
use correct printers command
Diffstat (limited to 'src')
-rw-r--r--src/device-menu-mgr.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c
index 324b3f1..986d151 100644
--- a/src/device-menu-mgr.c
+++ b/src/device-menu-mgr.c
@@ -441,6 +441,19 @@ show_session_properties (DbusmenuMenuitem * mi,
}
static void
+show_printer_properties (DbusmenuMenuitem * mi,
+ guint timestamp,
+ gchar * type)
+{
+ GError * error = NULL;
+ if (!g_spawn_command_line_async("system-config-printer", &error))
+ {
+ g_warning("Unable to show dialog: %s", error->message);
+ g_error_free(error);
+ }
+}
+
+static void
show_system_settings_with_context (DbusmenuMenuitem * mi,
guint timestamp,
gchar * type)
@@ -539,7 +552,7 @@ device_menu_mgr_build_static_items (DeviceMenuMgr* self)
_("Printers"));
g_signal_connect (G_OBJECT(printers_menuitem),
DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED,
- G_CALLBACK(show_system_settings_with_context),
+ G_CALLBACK(show_printer_properties),
"printers");
dbusmenu_menuitem_child_add_position(self->root_item,
printers_menuitem,