[gthumb] slideshow: use the same shurtcuts used in fullscreen mode



commit 69e2d444f94cf753809780660002c64fd5355902
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Sep 11 10:11:12 2010 +0200

    slideshow: use the same shurtcuts used in fullscreen mode
    
    space: load the next image
    backspace: load the previous image
    F5 and q: exit the slideshow
    p: pause the slideshow
    
    The clutter projector had the down/up keywords inverted.

 extensions/slideshow/gth-slideshow.c |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/extensions/slideshow/gth-slideshow.c b/extensions/slideshow/gth-slideshow.c
index 8a9f29d..339b9d7 100644
--- a/extensions/slideshow/gth-slideshow.c
+++ b/extensions/slideshow/gth-slideshow.c
@@ -609,19 +609,23 @@ viewer_event_cb (GtkWidget    *widget,
 	else if (event->type == GDK_KEY_RELEASE) {
 		switch (((GdkEventKey *) event)->keyval) {
 		case GDK_Escape:
+		case GDK_F5:
+		case GDK_q:
 			_gth_slideshow_close (self);
 			break;
 
-		case GDK_space:
+		case GDK_p:
 			_gth_slideshow_toggle_pause (self);
 			break;
 
+		case GDK_space:
 		case GDK_Down:
 		case GDK_Right:
 		case GDK_Page_Down:
 			_gth_slideshow_load_next_image (self);
 			break;
 
+		case GDK_BackSpace:
 		case GDK_Up:
 		case GDK_Left:
 		case GDK_Page_Up:
@@ -937,22 +941,26 @@ stage_input_cb (ClutterStage *stage,
 	else if (event->type == CLUTTER_KEY_RELEASE) {
 		switch (clutter_event_get_key_symbol (event)) {
 		case CLUTTER_Escape:
+		case CLUTTER_F5:
+		case CLUTTER_q:
 			_gth_slideshow_close (self);
 			break;
 
-		case CLUTTER_space:
+		case CLUTTER_p:
 			_gth_slideshow_toggle_pause (self);
 			break;
 
-		case CLUTTER_Up:
+		case GDK_space:
+		case CLUTTER_Down:
 		case CLUTTER_Right:
-		case CLUTTER_Page_Up:
+		case CLUTTER_Page_Down:
 			_gth_slideshow_load_next_image (self);
 			break;
 
-		case CLUTTER_Down:
+		case CLUTTER_BackSpace:
+		case CLUTTER_Up:
 		case CLUTTER_Left:
-		case CLUTTER_Page_Down:
+		case CLUTTER_Page_Up:
 			_gth_slideshow_load_prev_image (self);
 			break;
 		}



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