[gimp/gtk3-port: 12/130] 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/130] libgimpwidgets: port to GDK_KEY_foo key names
- Date: Sun, 14 Nov 2010 22:04:13 +0000 (UTC)
commit c3fce5234a8e6a1cbea71ec96dd723b07fc71fec
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 ff3fd96..9013841 100644
--- a/libgimpwidgets/gimphelpui.c
+++ b/libgimpwidgets/gimphelpui.c
@@ -176,11 +176,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);
@@ -530,7 +530,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]