summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Almeida Rocha <lucasr@src.gnome.org>2005-06-17 03:18:41 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2005-06-17 03:18:41 +0000
commit14c0bf10c84cf576135c9fdb1e549351ebf5e27c (patch)
treea3fd99e93a6de7b0b9a32e12fb31b538e733b0c1
parent1be8cce8c8c454b2f03b332a3eb6add58bc1fe0d (diff)
Don't use the parent widget for hiding tray icon
-rw-r--r--ChangeLog6
-rw-r--r--src/notification.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index f524be3..36e5974 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-17 Lucas Rocha <lucasr@cvs.gnome.org>
+
+ * src/notification.c: don't use parent widget for
+ hiding the tray icon because it breaks the 'visible'
+ command
+
2005-06-13 Lucas Rocha <lucasr@cvs.gnome.org>
* MAINTAINERS: adding myself as a new maintainer
diff --git a/src/notification.c b/src/notification.c
index 8aa0d91..509d2f8 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -184,12 +184,9 @@ 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")) {
- /* 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)));
+ gtk_widget_hide (GTK_WIDGET (tray_icon));
} else {
- gtk_widget_show (gtk_widget_get_parent (GTK_WIDGET (tray_icon)));
+ gtk_widget_show (GTK_WIDGET (tray_icon));
}
} else {
g_warning ("Unknown command '%s'", command);