Commit 8cc3e96c authored by Christian Hergert's avatar Christian Hergert

gui: clear popover before hiding notifications button

parent b0a8e5c7
......@@ -127,8 +127,20 @@ ide_notifications_button_notify_has_progress_cb (IdeNotificationsButton *self,
if (GTK_IS_REVEALER (parent))
gtk_revealer_set_reveal_child (GTK_REVEALER (parent),
ide_notifications_get_has_progress (notifications));
if (ide_notifications_get_has_progress (notifications))
gtk_revealer_set_reveal_child (GTK_REVEALER (parent), TRUE);
GtkPopover *popover = gtk_menu_button_get_popover (GTK_MENU_BUTTON (self));
if (gtk_widget_get_visible (GTK_WIDGET (popover)))
gtk_widget_hide (GTK_WIDGET (popover));
gtk_revealer_set_reveal_child (GTK_REVEALER (parent), FALSE);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment