[gimp/gtk3-port: 12/251] 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/251] libgimpwidgets: port to GDK_KEY_foo key names
- Date: Mon, 28 Mar 2011 19:23:46 +0000 (UTC)
commit 1b7ac354743c7ec7a51932049d23cf65eb1065b0
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]