[file-roller] Change GDK_keyname to GDK_KEY_keyname
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Change GDK_keyname to GDK_KEY_keyname
- Date: Mon, 4 Oct 2010 08:33:59 +0000 (UTC)
commit d26ac5d9f01808dd49ede4be27e5a3842d4acc0b
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Mon Sep 20 21:04:00 2010 +0100
Change GDK_keyname to GDK_KEY_keyname
src/fr-window.c | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 230dfb9..5d6e8f7 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2135,9 +2135,9 @@ location_entry_key_press_event_cb (GtkWidget *widget,
GdkEventKey *event,
FrWindow *window)
{
- if ((event->keyval == GDK_Return)
- || (event->keyval == GDK_KP_Enter)
- || (event->keyval == GDK_ISO_Enter))
+ if ((event->keyval == GDK_KEY_Return)
+ || (event->keyval == GDK_KEY_KP_Enter)
+ || (event->keyval == GDK_KEY_ISO_Enter))
{
fr_window_go_to_location (window, gtk_entry_get_text (GTK_ENTRY (window->priv->location_entry)), FALSE);
}
@@ -4444,7 +4444,7 @@ key_press_cb (GtkWidget *widget,
if (gtk_widget_has_focus (window->priv->filter_entry)) {
switch (event->keyval) {
- case GDK_Escape:
+ case GDK_KEY_Escape:
fr_window_deactivate_filter (window);
retval = TRUE;
break;
@@ -4457,14 +4457,14 @@ key_press_cb (GtkWidget *widget,
alt = (event->state & GDK_MOD1_MASK) == GDK_MOD1_MASK;
switch (event->keyval) {
- case GDK_Escape:
+ case GDK_KEY_Escape:
activate_action_stop (NULL, window);
if (window->priv->filter_mode)
fr_window_deactivate_filter (window);
retval = TRUE;
break;
- case GDK_F10:
+ case GDK_KEY_F10:
if (event->state & GDK_SHIFT_MASK) {
GtkTreeSelection *selection;
@@ -4481,37 +4481,37 @@ key_press_cb (GtkWidget *widget,
}
break;
- case GDK_Up:
- case GDK_KP_Up:
+ case GDK_KEY_Up:
+ case GDK_KEY_KP_Up:
if (alt) {
fr_window_go_up_one_level (window);
retval = TRUE;
}
break;
- case GDK_BackSpace:
+ case GDK_KEY_BackSpace:
fr_window_go_up_one_level (window);
retval = TRUE;
break;
- case GDK_Right:
- case GDK_KP_Right:
+ case GDK_KEY_Right:
+ case GDK_KEY_KP_Right:
if (alt) {
fr_window_go_forward (window);
retval = TRUE;
}
break;
- case GDK_Left:
- case GDK_KP_Left:
+ case GDK_KEY_Left:
+ case GDK_KEY_KP_Left:
if (alt) {
fr_window_go_back (window);
retval = TRUE;
}
break;
- case GDK_Home:
- case GDK_KP_Home:
+ case GDK_KEY_Home:
+ case GDK_KEY_KP_Home:
if (alt) {
fr_window_go_to_location (window, "/", FALSE);
retval = TRUE;
@@ -5788,7 +5788,7 @@ fr_window_construct (FrWindow *window)
/* Add a hidden short cut Ctrl-Q for power users */
gtk_accel_group_connect (gtk_ui_manager_get_accel_group (ui),
- GDK_q, GDK_CONTROL_MASK, 0,
+ GDK_KEY_q, GDK_CONTROL_MASK, 0,
g_cclosure_new_swap (G_CALLBACK (fr_window_close), window, NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]