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.
This commit is contained in:
parent
4be4f7cac6
commit
a626476abb
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2004-12-08 Glynn Foster <glynn.foster@sun.com>
|
2004-12-08 Glynn Foster <glynn.foster@sun.com>
|
||||||
|
|
||||||
* TODO: Update with the removed goption item.
|
* TODO: Update with the removed goption item.
|
||||||
|
@ -183,9 +183,12 @@ 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")) {
|
||||||
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 {
|
} else {
|
||||||
gtk_widget_show (GTK_WIDGET (tray_icon));
|
gtk_widget_show (gtk_widget_get_parent (GTK_WIDGET (tray_icon)));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
g_warning ("Unknown command '%s'", command);
|
g_warning ("Unknown command '%s'", command);
|
||||||
|
Reference in New Issue
Block a user