[gimp/gtk3-port: 12/248] libgimpwidgets: port to GDK_KEY_foo key names
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 12/248] libgimpwidgets: port to GDK_KEY_foo key names
- Date: Fri, 18 Mar 2011 23:01:58 +0000 (UTC)
commit 3579f07bd385e70d3094f6d318ea6dcc61922d30
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 15 11:16:32 2010 +0200
libgimpwidgets: port to GDK_KEY_foo key names
libgimpwidgets/gimphelpui.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgimpwidgets/gimphelpui.c b/libgimpwidgets/gimphelpui.c
index 999648f..4e6217e 100644
--- a/libgimpwidgets/gimphelpui.c
+++ b/libgimpwidgets/gimphelpui.c
@@ -178,11 +178,11 @@ gimp_help_connect (GtkWidget *widget,
binding_set =
gtk_binding_set_by_class (g_type_class_peek (GTK_TYPE_WIDGET));
- gtk_binding_entry_add_signal (binding_set, GDK_F1, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_F1, 0,
"show-help", 1,
GTK_TYPE_WIDGET_HELP_TYPE,
GIMP_WIDGET_HELP_TYPE_HELP);
- gtk_binding_entry_add_signal (binding_set, GDK_KP_F1, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_F1, 0,
"show-help", 1,
GTK_TYPE_WIDGET_HELP_TYPE,
GIMP_WIDGET_HELP_TYPE_HELP);
@@ -532,7 +532,7 @@ gimp_context_help_key_press (GtkWidget *widget,
GdkEventKey *kevent,
gpointer data)
{
- if (kevent->keyval == GDK_Escape)
+ if (kevent->keyval == GDK_KEY_Escape)
{
GdkDisplay *display = gtk_widget_get_display (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]