aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-01-12 17:19:41 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-01-12 17:19:41 +0100
commit7657cf8bcc934bd5d4456fb1cc04a88c6c4c8bca (patch)
tree4d4d0cf68556bb619d7b26b9ee56b88a49cce247
parenteda55d25b59b4ed7c373f37eb9004832f9e26367 (diff)
downloadayatana-indicator-printers-7657cf8bcc934bd5d4456fb1cc04a88c6c4c8bca.tar.gz
ayatana-indicator-printers-7657cf8bcc934bd5d4456fb1cc04a88c6c4c8bca.tar.bz2
ayatana-indicator-printers-7657cf8bcc934bd5d4456fb1cc04a88c6c4c8bca.zip
indicator-printers-menu: don't set printer property on the menuitem
-rw-r--r--src/indicator-printers-menu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/indicator-printers-menu.c b/src/indicator-printers-menu.c
index 26ed526..1ff9d5c 100644
--- a/src/indicator-printers-menu.c
+++ b/src/indicator-printers-menu.c
@@ -4,9 +4,6 @@
#include <gio/gio.h>
-#define MENUITEM_PROP_PRINTER "indicator-printers-printer"
-
-
G_DEFINE_TYPE (IndicatorPrintersMenu, indicator_printers_menu, G_TYPE_OBJECT)
#define PRINTERS_MENU_PRIVATE(o) \
@@ -48,10 +45,9 @@ show_system_settings (DbusmenuMenuitem *menuitem,
{
GAppInfo *appinfo;
GError *err = NULL;
- const gchar *printer;
+ const gchar *printer = user_data;
gchar *cmdline;
- printer = dbusmenu_menuitem_property_get (menuitem, MENUITEM_PROP_PRINTER);
cmdline = g_strdup_printf ("gnome-control-center printing show-printer %s",
printer);
@@ -89,7 +85,7 @@ add_printer_menuitem (IndicatorPrintersMenu *self,
g_signal_connect (child,
"item-activated",
G_CALLBACK (show_system_settings),
- NULL);
+ printer);
dbusmenu_menuitem_child_append(priv->root, child);
g_object_unref (child);