[nautilus/rendering-cleanup: 13/15] Use new gdk keysym names



commit 2894eaa19b5b0966b27b161768e25bad3aad1bdd
Author: Christian Persch <chpe gnome org>
Date:   Thu Sep 16 18:26:23 2010 +0200

    Use new gdk keysym names

 src/file-manager/fm-list-view.c |    1 +
 src/nautilus-side-pane.c        |    5 +++--
 src/nautilus-zoom-control.c     |   10 +++++-----
 3 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 68b7d93..3826bc8 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -1042,6 +1042,7 @@ key_press_callback (GtkWidget *widget, GdkEventKey *event, gpointer callback_dat
 		break;
 	case GDK_KEY_Return:
 	case GDK_KEY_KP_Enter:
+        case GDK_KEY_ISO_Enter:
 		if ((event->state & GDK_SHIFT_MASK) != 0) {
 			activate_selected_items_alternate (FM_LIST_VIEW (view), NULL, TRUE);
 		} else {
diff --git a/src/nautilus-side-pane.c b/src/nautilus-side-pane.c
index 2988982..e4da802 100644
--- a/src/nautilus-side-pane.c
+++ b/src/nautilus-side-pane.c
@@ -269,10 +269,11 @@ select_button_key_press_callback (GtkWidget *widget,
 	
 	side_pane = NAUTILUS_SIDE_PANE (user_data);
 
-	if (event->keyval == GDK_KEY_space || 
+	if (event->keyval == GDK_KEY_space ||
 	    event->keyval == GDK_KEY_KP_Space ||
 	    event->keyval == GDK_KEY_Return ||
-	    event->keyval == GDK_KEY_KP_Enter) {
+	    event->keyval == GDK_KEY_KP_Enter ||
+            event->keyval == GDK_KEY_ISO_Enter) {
 		gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
 		gtk_menu_popup (GTK_MENU (side_pane->details->menu),
 				NULL, NULL, menu_position_under, widget, 
diff --git a/src/nautilus-zoom-control.c b/src/nautilus-zoom-control.c
index 9457b58..118574e 100644
--- a/src/nautilus-zoom-control.c
+++ b/src/nautilus-zoom-control.c
@@ -690,7 +690,7 @@ nautilus_zoom_control_class_init (NautilusZoomControlClass *class)
 	binding_set = gtk_binding_set_by_class (class);	
 
 	gtk_binding_entry_add_signal (binding_set, 
-				      GDK_KEY_KP_Subtract, 0, 
+				      GDK_KEY_KP_Subtract, 0,
 				      "change_value",
 				      1, GTK_TYPE_SCROLL_TYPE, 
 				      GTK_SCROLL_STEP_DOWN);
@@ -701,21 +701,21 @@ nautilus_zoom_control_class_init (NautilusZoomControlClass *class)
 				      GTK_SCROLL_STEP_DOWN);
 
 	gtk_binding_entry_add_signal (binding_set, 
-				      GDK_KEY_KP_Equal, 0, 
+				      GDK_KEY_KP_Equal, 0,
 				      "zoom_to_default",
 				      0);
 	gtk_binding_entry_add_signal (binding_set, 
-				      GDK_KEY_KP_Equal, 0, 
+				      GDK_KEY_KP_Equal, 0,
 				      "zoom_to_default",
 				      0);
 
 	gtk_binding_entry_add_signal (binding_set, 
-				      GDK_KEY_KP_Add, 0, 
+				      GDK_KEY_KP_Add, 0,
 				      "change_value",
 				      1, GTK_TYPE_SCROLL_TYPE,
 				      GTK_SCROLL_STEP_UP);
 	gtk_binding_entry_add_signal (binding_set, 
-				      GDK_KEY_plus, 0, 
+				      GDK_KEY_plus, 0,
 				      "change_value",
 				      1, GTK_TYPE_SCROLL_TYPE,
 				      GTK_SCROLL_STEP_UP);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]