[Xfce4-commits] [apps/ristretto] 01/03: ESC-key now quits Ristretto, or pauses a running slideshow.

noreply at xfce.org noreply at xfce.org
Sun Jul 3 14:01:20 CEST 2016


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository apps/ristretto.

commit f27afb7070ec3c94420c877bbb4c671f5c655dc3
Author: Cricketer <cricketer at users.noreply.github.com>
Date:   Sun Jul 3 13:38:35 2016 +0700

    ESC-key now quits Ristretto, or pauses a running slideshow.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/main_window.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/main_window.c b/src/main_window.c
index 41e6309..9370996 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -4125,6 +4125,18 @@ key_press_event (
             case GDK_Down:
                 rstto_image_list_iter_next (rstto_window->priv->iter);
                 break;
+            case GDK_KEY_Escape:
+                if ( rstto_window->priv->playing == TRUE )
+                {
+                    cb_rstto_main_window_pause( GTK_WIDGET(window), rstto_window );
+                }
+                else {
+                    if ( !(gdk_window_get_state( GTK_WIDGET(window)->window ) & GDK_WINDOW_STATE_FULLSCREEN) )
+                    {
+                        gtk_widget_destroy( GTK_WIDGET(window) );
+                    }
+                }
+                break;
         }
     }
     return TRUE;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list