[gnome-photos] main-window: Toggle fullscreen with F11, and don't toggle for Ctrl+F



commit 2027432fbfb0e9a4fe790eb58135837cfd538b9e
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Jul 15 22:58:29 2012 +0200

    main-window: Toggle fullscreen with F11, and don't toggle for Ctrl+F
    
    Original patch from Cosimo Cecchi for gnome-documents.

 src/photos-main-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index fcb2cf7..97848f7 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -158,7 +158,7 @@ photos_main_window_handle_key_preview (PhotosMainWindow *self, GdkEventKey *even
   direction = gtk_widget_get_direction (GTK_WIDGET (self));
   fullscreen = photos_mode_controller_get_fullscreen (priv->controller);
 
-  if (event->keyval == GDK_KEY_f)
+  if ((event->keyval == GDK_KEY_f || event->keyval == GDK_KEY_F11) && (event->state & GDK_CONTROL_MASK) == 0)
     {
       photos_mode_controller_toggle_fullscreen (priv->controller);
       return TRUE;



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