Don't use the parent widget for hiding tray icon

This commit is contained in:
Lucas Almeida Rocha 2005-06-17 03:18:41 +00:00
parent 1be8cce8c8
commit 14c0bf10c8
2 changed files with 8 additions and 5 deletions

View File

@ -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> 2005-06-13 Lucas Rocha <lucasr@cvs.gnome.org>
* MAINTAINERS: adding myself as a new maintainer * MAINTAINERS: adding myself as a new maintainer

View File

@ -184,12 +184,9 @@ zenity_notification_handle_stdin (GIOChannel *channel,
gtk_tooltips_set_tip (tooltips, icon_event_box, value, value); gtk_tooltips_set_tip (tooltips, icon_event_box, value, value);
} else if (!strcmp (command, "visible")) { } else if (!strcmp (command, "visible")) {
if (!strcasecmp (value, "false")) { if (!strcasecmp (value, "false")) {
/* We need to get the parent, because just hiding the tray_icon gtk_widget_hide (GTK_WIDGET (tray_icon));
* doesn't save on space. See #161539 for details
*/
gtk_widget_hide (gtk_widget_get_parent (GTK_WIDGET (tray_icon)));
} else { } else {
gtk_widget_show (gtk_widget_get_parent (GTK_WIDGET (tray_icon))); gtk_widget_show (GTK_WIDGET (tray_icon));
} }
} else { } else {
g_warning ("Unknown command '%s'", command); g_warning ("Unknown command '%s'", command);