[gtk/new-style-menu] popover bar: Don't grab focus away from open menus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/new-style-menu] popover bar: Don't grab focus away from open menus
- Date: Sun, 9 Jun 2019 14:10:54 +0000 (UTC)
commit 89acd9762ab882dcc6aab9afc1f7eee963fac345
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 9 14:03:40 2019 +0000
popover bar: Don't grab focus away from open menus
It makes them unhappy and disappear.
gtk/gtkpopoverbar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopoverbar.c b/gtk/gtkpopoverbar.c
index 90e252015c..265cd88cf0 100644
--- a/gtk/gtkpopoverbar.c
+++ b/gtk/gtkpopoverbar.c
@@ -123,7 +123,7 @@ set_active_item (GtkPopoverBar *bar,
{
if (popup || (was_popup && changed))
gtk_popover_popup (bar->active_item->popover);
- else
+ else if (changed)
gtk_widget_grab_focus (GTK_WIDGET (bar->active_item));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]