[gimp/gtk3-port: 33/140] app: port to the new GDK_KEY_foo key names and get rid of a GTK_OBJECT() cast
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 33/140] app: port to the new GDK_KEY_foo key names and get rid of a GTK_OBJECT() cast
- Date: Thu, 25 Nov 2010 19:27:24 +0000 (UTC)
commit 5a3db87a3d7af77b9cd4154bec0f45dcb5f5ce4f
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 15 13:23:44 2010 +0200
app: port to the new GDK_KEY_foo key names and get rid of a GTK_OBJECT() cast
app/widgets/gimpcontainerpopup.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/app/widgets/gimpcontainerpopup.c b/app/widgets/gimpcontainerpopup.c
index 9db8fdf..4539390 100644
--- a/app/widgets/gimpcontainerpopup.c
+++ b/app/widgets/gimpcontainerpopup.c
@@ -116,17 +116,17 @@ gimp_container_popup_class_init (GimpContainerPopupClass *klass)
binding_set = gtk_binding_set_by_class (klass);
- gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0,
"cancel", 0);
- gtk_binding_entry_add_signal (binding_set, GDK_Return, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_Return, 0,
"confirm", 0);
- gtk_binding_entry_add_signal (binding_set, GDK_KP_Enter, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Enter, 0,
"confirm", 0);
- gtk_binding_entry_add_signal (binding_set, GDK_ISO_Enter, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_ISO_Enter, 0,
"confirm", 0);
- gtk_binding_entry_add_signal (binding_set, GDK_space, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_space, 0,
"confirm", 0);
- gtk_binding_entry_add_signal (binding_set, GDK_KP_Space, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Space, 0,
"confirm", 0);
}
@@ -296,7 +296,7 @@ gimp_container_popup_key_press (GtkWidget *widget,
if (gtk_binding_set_activate (binding_set,
kevent->keyval,
kevent->state,
- GTK_OBJECT (widget)))
+ G_OBJECT (widget)))
{
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]