From 14c0bf10c84cf576135c9fdb1e549351ebf5e27c Mon Sep 17 00:00:00 2001 From: Lucas Almeida Rocha Date: Fri, 17 Jun 2005 03:18:41 +0000 Subject: Don't use the parent widget for hiding tray icon --- src/notification.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/notification.c b/src/notification.c index 8aa0d917..509d2f8e 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); -- cgit