diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-03 16:07:18 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-03 16:07:18 +0100 |
commit | 75df9f6c041c84ea6b01ec1f1937c9804712dbe6 (patch) | |
tree | d53c66befc1e88e6ef995d7c90f99a1bd27d25a3 /src/indicator-printers-menu.c | |
parent | 0b0215ae0af11634a648412cc5cb927379bd333b (diff) | |
download | ayatana-indicator-printers-75df9f6c041c84ea6b01ec1f1937c9804712dbe6.tar.gz ayatana-indicator-printers-75df9f6c041c84ea6b01ec1f1937c9804712dbe6.tar.bz2 ayatana-indicator-printers-75df9f6c041c84ea6b01ec1f1937c9804712dbe6.zip |
Move g-c-c invocation out of indicator-printers-menu
Diffstat (limited to 'src/indicator-printers-menu.c')
-rw-r--r-- | src/indicator-printers-menu.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/src/indicator-printers-menu.c b/src/indicator-printers-menu.c index d029b75..f9e0e35 100644 --- a/src/indicator-printers-menu.c +++ b/src/indicator-printers-menu.c @@ -1,7 +1,7 @@ #include "indicator-printers-menu.h" -#include <gio/gio.h> +#include "show-printer-settings.h" #include <cups/cups.h> @@ -121,33 +121,8 @@ show_system_settings (DbusmenuMenuitem *menuitem, guint timestamp, gpointer user_data) { - GAppInfo *appinfo; - GError *err = NULL; const gchar *printer = user_data; - gchar *cmdline; - - cmdline = g_strdup_printf ("gnome-control-center printers show-printer %s", - printer); - - appinfo = g_app_info_create_from_commandline (cmdline, - "gnome-control-center", - G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION, - &err); - g_free (cmdline); - - if (err) { - g_warning ("failed to create application info: %s", err->message); - g_error_free (err); - return; - } - - g_app_info_launch (appinfo, NULL, NULL, &err); - if (err) { - g_warning ("failed to launch gnome-control-center: %s", err->message); - g_error_free (err); - } - - g_object_unref (appinfo); + show_printer_settings (printer); } |