diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-08-10 18:05:48 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-08-10 18:05:48 +0100 |
commit | 4e3a03e474e364747cbe484a9614112ccd46b600 (patch) | |
tree | 73aedc1a86299d0dde98e788a024295003adb127 | |
parent | 5663f0199537a1a221ebe3bf35b5026144498b72 (diff) | |
parent | f3e3f6173c6782b7fe8bfaa181477cb6b4bd672d (diff) | |
download | ayatana-indicator-session-4e3a03e474e364747cbe484a9614112ccd46b600.tar.gz ayatana-indicator-session-4e3a03e474e364747cbe484a9614112ccd46b600.tar.bz2 ayatana-indicator-session-4e3a03e474e364747cbe484a9614112ccd46b600.zip |
printer support corrected
-rw-r--r-- | src/device-menu-mgr.c | 15 |
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, |