mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-16 08:45:50 +01:00
Use show-v-scrollbar instead of show-scrollbars
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
df466eeeb2
commit
2d9ea08729
1 changed files with 3 additions and 3 deletions
|
@ -147,10 +147,10 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
|
||||||
(double)(pages_per_row * cell_width);
|
(double)(pages_per_row * cell_width);
|
||||||
zathura_document_set_scale(zathura->document, scale);
|
zathura_document_set_scale(zathura->document, scale);
|
||||||
|
|
||||||
bool show_scrollbars = false;
|
bool show_vscrollbar = false;
|
||||||
girara_setting_get(session, "show-scrollbars", &show_scrollbars);
|
girara_setting_get(session, "show-v-scrollbar", &show_vscrollbar);
|
||||||
|
|
||||||
if (show_scrollbars) {
|
if (show_vscrollbar) {
|
||||||
/* If the document is taller than the view, there's a vertical
|
/* If the document is taller than the view, there's a vertical
|
||||||
* scrollbar; we need to substract its width from the view's width. */
|
* scrollbar; we need to substract its width from the view's width. */
|
||||||
zathura_get_document_size(zathura, cell_height, cell_width,
|
zathura_get_document_size(zathura, cell_height, cell_width,
|
||||||
|
|
Loading…
Reference in a new issue