summaryrefslogtreecommitdiff
path: root/src/notification.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2004-12-19 21:27:25 +0000
committerGlynn Foster <gman@src.gnome.org>2004-12-19 21:27:25 +0000
commita626476abbeafed0c70ed42e51037df3907d415c (patch)
treec7a2948f9f1ccdf81ddb19e99942382824028c49 /src/notification.c
parent4be4f7cac66f506ea549b97b17c80ce5c2b1c072 (diff)
Fix #161539, and try and hide the parent widget, rather than the tray
2004-12-20 Glynn Foster <glynn.foster@sun.com> * src/notification.c: Fix #161539, and try and hide the parent widget, rather than the tray icon, since it saves space.
Diffstat (limited to 'src/notification.c')
-rw-r--r--src/notification.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/notification.c b/src/notification.c
index a67b730..4dcc63d 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -183,9 +183,12 @@ zenity_notification_handle_stdin (GIOChannel *channel,
gtk_tooltips_set_tip (tooltips, icon_event_box, value, value);
} else if (!strcmp (command, "visible")) {
if (!strcasecmp (value, "false")) {
- gtk_widget_hide (GTK_WIDGET (tray_icon));
+ /* We need to get the parent, because just hiding the tray_icon
+ * doesn't save on space. See #161539 for details
+ */
+ gtk_widget_hide (gtk_widget_get_parent (GTK_WIDGET (tray_icon)));
} else {
- gtk_widget_show (GTK_WIDGET (tray_icon));
+ gtk_widget_show (gtk_widget_get_parent (GTK_WIDGET (tray_icon)));
}
} else {
g_warning ("Unknown command '%s'", command);