[eog] EogWindow: Handle "P" shortcut through global shortcuts
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: Handle "P" shortcut through global shortcuts
- Date: Sun, 12 Feb 2017 19:44:15 +0000 (UTC)
commit 866816812589e98bd022dae70d48c90ac68b89ec
Author: Felix Riemann <friemann gnome org>
Date: Sun Feb 12 18:32:53 2017 +0100
EogWindow: Handle "P" shortcut through global shortcuts
src/eog-application.c | 1 +
src/eog-window.c | 9 ---------
2 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/eog-application.c b/src/eog-application.c
index 3226eac..3ab86d2 100644
--- a/src/eog-application.c
+++ b/src/eog-application.c
@@ -236,6 +236,7 @@ eog_application_init_accelerators (GtkApplication *application)
"win.view-slideshow", "F5", NULL,
"win.toggle-zoom-fit", "F", NULL,
"win.toggle-gear-menu", "F10", NULL,
+ "win.pause-slideshow", "p", NULL,
NULL /* Terminating NULL */
};
diff --git a/src/eog-window.c b/src/eog-window.c
index 46f32dd..a104eef 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4810,15 +4810,6 @@ eog_window_key_press (GtkWidget *widget, GdkEventKey *event)
}
result = TRUE;
break;
- case GDK_KEY_p:
- case GDK_KEY_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_KEY_Escape:
if (EOG_WINDOW (widget)->priv->mode == EOG_WINDOW_MODE_FULLSCREEN) {
eog_window_stop_fullscreen (EOG_WINDOW (widget), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]