[gthumb/gthumb-3-10: 4/6] browser: exit fullscreen when pressing Esc in fullscreen mode
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-10: 4/6] browser: exit fullscreen when pressing Esc in fullscreen mode
- Date: Sun, 19 Jul 2020 09:42:30 +0000 (UTC)
commit ee7424464a4c342a378f42cb6fdf79452dbf13c8
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jul 13 12:29:33 2020 +0200
browser: exit fullscreen when pressing Esc in fullscreen mode
gthumb/gth-browser-actions-callbacks.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gthumb/gth-browser-actions-callbacks.c b/gthumb/gth-browser-actions-callbacks.c
index dbb8a1c2..f4eda0ec 100644
--- a/gthumb/gth-browser-actions-callbacks.c
+++ b/gthumb/gth-browser-actions-callbacks.c
@@ -161,6 +161,8 @@ gth_browser_activate_browser_mode (GSimpleAction *action,
viewer_sidebar = gth_browser_get_viewer_sidebar (browser);
if (gth_sidebar_tool_is_active (GTH_SIDEBAR (viewer_sidebar)))
gth_sidebar_deactivate_tool (GTH_SIDEBAR (viewer_sidebar));
+ else if (gth_browser_get_is_fullscreen (browser))
+ gth_browser_unfullscreen (browser);
else
gth_window_set_current_page (GTH_WINDOW (browser), GTH_BROWSER_PAGE_BROWSER);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]