[gimp] app: activate GimpPopup's binding set in key_press()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: activate GimpPopup's binding set in key_press()
- Date: Fri, 6 Jun 2014 07:25:57 +0000 (UTC)
commit ce1c86b71b5c51a2e655eea0390af4e73a0f2bde
Author: Michael Natterer <mitch gimp org>
Date: Fri Jun 6 09:22:51 2014 +0200
app: activate GimpPopup's binding set in key_press()
not that of its subclass. Fixes selecting items with return/enter.
app/widgets/gimppopup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimppopup.c b/app/widgets/gimppopup.c
index 1a1e5f5..7061f8b 100644
--- a/app/widgets/gimppopup.c
+++ b/app/widgets/gimppopup.c
@@ -221,7 +221,7 @@ gimp_popup_key_press (GtkWidget *widget,
{
GtkBindingSet *binding_set;
- binding_set = gtk_binding_set_by_class (GIMP_POPUP_GET_CLASS (widget));
+ binding_set = gtk_binding_set_by_class (g_type_class_peek (GIMP_TYPE_POPUP));
/* invoke the popup's binding entries manually, because otherwise
* the focus widget (GtkTreeView e.g.) would consume it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]