[Goodies-commits] r3595 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Sat Nov 17 13:46:04 CET 2007


Author: stephan
Date: 2007-11-17 12:46:04 +0000 (Sat, 17 Nov 2007)
New Revision: 3595

Modified:
   ristretto/trunk/src/main_window.c
Log:
Allow leaving full-screen with 'escape' key-press



Modified: ristretto/trunk/src/main_window.c
===================================================================
--- ristretto/trunk/src/main_window.c	2007-11-17 12:40:37 UTC (rev 3594)
+++ ristretto/trunk/src/main_window.c	2007-11-17 12:46:04 UTC (rev 3595)
@@ -932,6 +932,12 @@
                     gtk_window_fullscreen(window);
                 }
                 break;
+            case GDK_Escape:
+                if(gdk_window_get_state(widget->window) & GDK_WINDOW_STATE_FULLSCREEN)
+                {
+                    gtk_window_unfullscreen(window);
+                }
+                break;
             case GDK_Home:
                 rstto_navigator_jump_first(rstto_window->priv->navigator);
                 break;




More information about the Goodies-commits mailing list