Only handle zoom keys in message view window (fixes NB#144441, NB#150401).
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 14 Dec 2009 08:39:45 +0000 (09:39 +0100)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 14 Dec 2009 08:39:45 +0000 (09:39 +0100)
src/widgets/modest-window.c

index ea9c1dd..3f636f2 100644 (file)
@@ -482,12 +482,18 @@ on_key_pressed (GtkWidget *self,
                modest_ui_actions_on_change_fullscreen (NULL, MODEST_WINDOW(self));
                return TRUE;
 #ifdef MODEST_TOOLKIT_HILDON2
-       case HILDON_HARDKEY_INCREASE: 
-               modest_ui_actions_on_zoom_plus (NULL, MODEST_WINDOW(self));
-               return TRUE;
-       case HILDON_HARDKEY_DECREASE: 
-               modest_ui_actions_on_zoom_minus (NULL, MODEST_WINDOW(self));
-               return TRUE;
+       case HILDON_HARDKEY_INCREASE:
+               if (MODEST_IS_MSG_VIEW_WINDOW (self)) {
+                       modest_ui_actions_on_zoom_plus (NULL, MODEST_WINDOW(self));
+                       return TRUE;
+               }
+               break;
+       case HILDON_HARDKEY_DECREASE:
+               if (MODEST_IS_MSG_VIEW_WINDOW (self)) {
+                       modest_ui_actions_on_zoom_minus (NULL, MODEST_WINDOW(self));
+                       return TRUE;
+               }
+               break;
 #else
        case GDK_F7: 
                modest_ui_actions_on_zoom_plus (NULL, MODEST_WINDOW(self));