Commit 61c1fdc4 authored by Paolo Bacchilega's avatar Paolo Bacchilega

shortcut window: show the viewer section when in viewer mode

parent b3df268a
......@@ -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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment