[gtk+/gtk-3-22] popover: pop down when pressing escape
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] popover: pop down when pressing escape
- Date: Thu, 3 Nov 2016 13:48:07 +0000 (UTC)
commit 39a8a6ef72ace7bd5638a7da745a0063f454b998
Author: Ernestas Kulik <ernestask src gnome org>
Date: Thu Nov 3 12:58:41 2016 +0200
popover: pop down when pressing escape
Simply hiding the popover may introduce inconsistencies in application
behavior, since popping up/down is the usual use case.
https://bugzilla.gnome.org/show_bug.cgi?id=773885
gtk/gtkpopover.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index abfb90f..5f0f443 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1553,7 +1553,7 @@ gtk_popover_key_press (GtkWidget *widget,
if (event->keyval == GDK_KEY_Escape)
{
- gtk_widget_hide (widget);
+ gtk_popover_popdown (GTK_POPOVER (widget));
return GDK_EVENT_STOP;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]