[eog] Use <control>q shortcut to quit the application



commit dcde16bbffc953c3e8c6942cb04c6fd48c4aee89
Author: Florian MÃllner <fmuellner gnome org>
Date:   Fri Jan 11 15:39:20 2013 +0100

    Use <control>q shortcut to quit the application
    
    Currently <control>q is used as a synonym for <control>w/Escape,
    e.g. it closes the active window. Make it quit the application
    instead, which is what most other GNOME applications do.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691552

 data/eog-app-menu.xml |    1 +
 src/eog-window.c      |    2 --
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/data/eog-app-menu.xml b/data/eog-app-menu.xml
index e3cb519..81cc490 100644
--- a/data/eog-app-menu.xml
+++ b/data/eog-app-menu.xml
@@ -41,6 +41,7 @@
       <item>
 	<attribute name="action">app.quit</attribute>
 	<attribute name="label" translatable="yes">_Quit</attribute>
+        <attribute name="accel">&lt;Primary&gt;q</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/eog-window.c b/src/eog-window.c
index 4b66a08..0b23698 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4986,8 +4986,6 @@ eog_window_key_press (GtkWidget *widget, GdkEventKey *event)
 			eog_window_run_fullscreen (EOG_WINDOW (widget), !slideshow);
 		}
 		break;
-	case GDK_KEY_Q:
-	case GDK_KEY_q:
 	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]