gnome-commander r2220 - trunk/src/intviewer



Author: epiotr
Date: Sat Oct 18 21:50:32 2008
New Revision: 2220
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2220&view=rev

Log:
Internal viewer: fix for CTRL++ & CTRL+- misbehaviour

Modified:
   trunk/src/intviewer/viewer-window.cc

Modified: trunk/src/intviewer/viewer-window.cc
==============================================================================
--- trunk/src/intviewer/viewer-window.cc	(original)
+++ trunk/src/intviewer/viewer-window.cc	Sat Oct 18 21:50:32 2008
@@ -390,6 +390,20 @@
 
     GViewerWindow *w = GVIEWER_WINDOW (widget);
 
+    switch (event->keyval)
+    {
+        case GDK_plus:
+        case GDK_KP_Add:
+        case GDK_equal:
+           set_zoom_in(w);
+           return TRUE;
+
+        case GDK_minus:
+        case GDK_KP_Subtract:
+           set_zoom_out(w);
+           return TRUE;
+    }
+
     if (state_is_ctrl(event->state))
         switch (event->keyval)
         {
@@ -434,17 +448,6 @@
                 gviewer_window_show_metadata(w);
             return TRUE;
 
-        case GDK_plus:
-        case GDK_KP_Add:
-        case GDK_equal:
-           set_zoom_in(w);
-           return TRUE;
-
-        case GDK_minus:
-        case GDK_KP_Subtract:
-           set_zoom_out(w);
-           return TRUE;
-
         case GDK_F7:
            menu_edit_find(NULL, w);
            return TRUE;



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