[eog] Re-add P as shortcut to pause the slideshow
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Re-add P as shortcut to pause the slideshow
- Date: Mon, 5 Jul 2010 19:59:53 +0000 (UTC)
commit 6a7b1bde17eccc47b1af09b2022586926f7b9f42
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 a052e64..5408c93 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4693,6 +4693,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]