[gthumb] shortcut window: show the viewer section when in viewer mode



commit 61c1fdc4850c31a6b7e6dbb6629e0508cbaae745
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Nov 16 12:05:48 2019 +0100

    shortcut window: show the viewer section when in viewer mode

 gthumb/gth-shortcuts-window.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/gthumb/gth-shortcuts-window.c b/gthumb/gth-shortcuts-window.c
index ffb1168e..4f660386 100644
--- a/gthumb/gth-shortcuts-window.c
+++ b/gthumb/gth-shortcuts-window.c
@@ -22,6 +22,7 @@
 
 #include <config.h>
 #include <gtk/gtk.h>
+#include "gth-browser.h"
 #include "gth-main.h"
 #include "gth-shortcuts-window.h"
 #include "typedefs.h"
@@ -110,5 +111,15 @@ gth_shortcuts_window_new (GthWindow *app_window)
                }
        }
 
+       switch (gth_window_get_current_page (app_window)) {
+       case GTH_BROWSER_PAGE_BROWSER:
+               g_object_set (window, "section-name", "browser", NULL);
+               break;
+
+       case GTH_BROWSER_PAGE_VIEWER:
+               g_object_set (window, "section-name", "viewer", NULL);
+               break;
+       }
+
        gtk_widget_show (window);
 }


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