aboutsummaryrefslogtreecommitdiff
path: root/src/device-menu-mgr.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-08-10 18:05:48 +0100
committerConor Curran <conor.curran@canonical.com>2011-08-10 18:05:48 +0100
commit4e3a03e474e364747cbe484a9614112ccd46b600 (patch)
tree73aedc1a86299d0dde98e788a024295003adb127 /src/device-menu-mgr.c
parent5663f0199537a1a221ebe3bf35b5026144498b72 (diff)
parentf3e3f6173c6782b7fe8bfaa181477cb6b4bd672d (diff)
downloadayatana-indicator-session-4e3a03e474e364747cbe484a9614112ccd46b600.tar.gz
ayatana-indicator-session-4e3a03e474e364747cbe484a9614112ccd46b600.tar.bz2
ayatana-indicator-session-4e3a03e474e364747cbe484a9614112ccd46b600.zip
printer support corrected
Diffstat (limited to 'src/device-menu-mgr.c')
-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 e9143f7..beb47df 100644
--- a/src/device-menu-mgr.c
+++ b/src/device-menu-mgr.c
@@ -448,6 +448,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)
@@ -583,7 +596,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,