[eog/gnome-2-32: 27/34] Re-add P as shortcut to pause the slideshow



commit a68169b1e3853262ebbc979fe9a61da5dc97ff40
Author: Felix Riemann <friemann gnome org>
Date:   Mon Jul 5 21:57:27 2010 +0200

    Re-add P as shortcut to pause the slideshow
    
    Happens in the KeyEvent handler as it's not working when linking the
    shortcut key to the PauseSlideshow action. Fixes bug #553283.

 src/eog-window.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 0840f2c..ffd334d 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4895,6 +4895,15 @@ eog_window_key_press (GtkWidget *widget, GdkEventKey *event)
 			result = TRUE;
 		}
 		break;
+	case GDK_p:
+	case GDK_P:
+		if (EOG_WINDOW (widget)->priv->mode == EOG_WINDOW_MODE_FULLSCREEN || EOG_WINDOW (widget)->priv->mode == EOG_WINDOW_MODE_SLIDESHOW) {
+			gboolean slideshow;
+
+			slideshow = EOG_WINDOW (widget)->priv->mode == EOG_WINDOW_MODE_SLIDESHOW;
+			eog_window_run_fullscreen (EOG_WINDOW (widget), !slideshow);
+		}
+		break;
 	case GDK_Q:
 	case GDK_q:
 	case GDK_Escape:



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