[devhelp] Replace deprecated GDK_* with GDK_KEY_*
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Replace deprecated GDK_* with GDK_KEY_*
- Date: Fri, 22 Oct 2010 09:58:36 +0000 (UTC)
commit 0ee886323821f82afc10beded85bbccb51f61b97
Author: Olav Vitters <olav vitters nl>
Date: Fri Oct 22 11:58:22 2010 +0200
Replace deprecated GDK_* with GDK_KEY_*
src/dh-search.c | 6 +++---
src/dh-window.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/dh-search.c b/src/dh-search.c
index 4afd8c4..46b2e9f 100644
--- a/src/dh-search.c
+++ b/src/dh-search.c
@@ -221,7 +221,7 @@ search_entry_key_press_event_cb (GtkEntry *entry,
{
DhSearchPriv *priv = GET_PRIVATE (search);
- if (event->keyval == GDK_Tab) {
+ if (event->keyval == GDK_KEY_Tab) {
if (event->state & GDK_CONTROL_MASK) {
gtk_widget_grab_focus (priv->hitlist);
} else {
@@ -231,8 +231,8 @@ search_entry_key_press_event_cb (GtkEntry *entry,
return TRUE;
}
- if (event->keyval == GDK_Return ||
- event->keyval == GDK_KP_Enter) {
+ if (event->keyval == GDK_KEY_Return ||
+ event->keyval == GDK_KEY_KP_Enter) {
GtkTreeIter iter;
DhLink *link;
gchar *name;
diff --git a/src/dh-window.c b/src/dh-window.c
index 2fcec5f..1eacdb9 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -83,8 +83,8 @@ enum {
static gint signals[LAST_SIGNAL] = { 0 };
static guint tab_accel_keys[] = {
- GDK_1, GDK_2, GDK_3, GDK_4, GDK_5,
- GDK_6, GDK_7, GDK_8, GDK_9, GDK_0
+ GDK_KEY_1, GDK_KEY_2, GDK_KEY_3, GDK_KEY_4, GDK_KEY_5,
+ GDK_KEY_6, GDK_KEY_7, GDK_KEY_8, GDK_KEY_9, GDK_KEY_0
};
static const
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]