mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:56:00 +01:00
Hide/Show scrollbar switch
This commit is contained in:
parent
33343cd52b
commit
85beb0d242
2 changed files with 10 additions and 0 deletions
|
@ -29,6 +29,9 @@ static const char notification_e_fgcolor[] = "#FFFFFF";
|
||||||
static const char notification_w_bgcolor[] = "#FFF712";
|
static const char notification_w_bgcolor[] = "#FFF712";
|
||||||
static const char notification_w_fgcolor[] = "#000000";
|
static const char notification_w_fgcolor[] = "#000000";
|
||||||
|
|
||||||
|
/* additional settings */
|
||||||
|
#define SHOW_SCROLLBARS 0
|
||||||
|
|
||||||
/* shortcuts */
|
/* shortcuts */
|
||||||
Shortcut shortcuts[] = {
|
Shortcut shortcuts[] = {
|
||||||
/* mask, key, function, mode, argument */
|
/* mask, key, function, mode, argument */
|
||||||
|
|
|
@ -292,6 +292,13 @@ init_zathura()
|
||||||
/* view */
|
/* view */
|
||||||
g_signal_connect(G_OBJECT(Zathura.UI.view), "key-press-event", G_CALLBACK(cb_view_kb_pressed), NULL);
|
g_signal_connect(G_OBJECT(Zathura.UI.view), "key-press-event", G_CALLBACK(cb_view_kb_pressed), NULL);
|
||||||
gtk_container_add(GTK_CONTAINER(Zathura.UI.view), GTK_WIDGET(Zathura.UI.viewport));
|
gtk_container_add(GTK_CONTAINER(Zathura.UI.view), GTK_WIDGET(Zathura.UI.viewport));
|
||||||
|
gtk_viewport_set_shadow_type(Zathura.UI.viewport, GTK_SHADOW_NONE);
|
||||||
|
|
||||||
|
#if SHOW_SCROLLBARS
|
||||||
|
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(Zathura.UI.view), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||||
|
#else
|
||||||
|
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(Zathura.UI.view), GTK_POLICY_NEVER, GTK_POLICY_NEVER);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* statusbar */
|
/* statusbar */
|
||||||
gtk_widget_modify_bg(GTK_WIDGET(Zathura.UI.statusbar), GTK_STATE_NORMAL, &(Zathura.Style.statusbar_bg));
|
gtk_widget_modify_bg(GTK_WIDGET(Zathura.UI.statusbar), GTK_STATE_NORMAL, &(Zathura.Style.statusbar_bg));
|
||||||
|
|
Loading…
Reference in a new issue