aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-01-14 14:15:31 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-01-14 14:15:31 +0100
commit1b671f1d837a97fb60fe03958f6e1b704981607a (patch)
tree4a9b88fef08edaf52163f119b56583b79fc1890c
parent62d044c3be5b8fc1fcad41300581c9c8a9ef02ab (diff)
downloadayatana-indicator-printers-1b671f1d837a97fb60fe03958f6e1b704981607a.tar.gz
ayatana-indicator-printers-1b671f1d837a97fb60fe03958f6e1b704981607a.tar.bz2
ayatana-indicator-printers-1b671f1d837a97fb60fe03958f6e1b704981607a.zip
indicator-printers: properly ref widget pointers
-rw-r--r--src/indicator-printers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-printers.c b/src/indicator-printers.c
index e13ab59..3a642ac 100644
--- a/src/indicator-printers.c
+++ b/src/indicator-printers.c
@@ -160,8 +160,8 @@ indicator_printers_init (IndicatorPrinters *io)
priv->entry.name_hint = PACKAGE_NAME;
priv->entry.accessible_desc = "Printers";
- priv->entry.menu = GTK_MENU (menu);
- priv->entry.image = image;
+ priv->entry.menu = GTK_MENU (g_object_ref_sink (menu));
+ priv->entry.image = g_object_ref_sink (image);
}