Discussion:
[zathura] [Zathura PATCH 1/2] Use show-v-scrollbar instead of show-scrollbars
Marwan Tanager
2013-05-31 11:46:28 UTC
Permalink
---
shortcuts.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/shortcuts.c b/shortcuts.c
index 3af1531..0174598 100644
--- a/shortcuts.c
+++ b/shortcuts.c
@@ -147,10 +147,10 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
(double)(pages_per_row * cell_width);
zathura_document_set_scale(zathura->document, scale);

- bool show_scrollbars = false;
- girara_setting_get(session, "show-scrollbars", &show_scrollbars);
+ bool show_vscrollbar = false;
+ 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
* scrollbar; we need to substract its width from the view's width. */
zathura_get_document_size(zathura, cell_height, cell_width,
--
1.7.10.4
Marwan Tanager
2013-05-31 11:46:29 UTC
Permalink
---
zathurarc.5.rst | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/zathurarc.5.rst b/zathurarc.5.rst
index 80f571b..fa23786 100644
--- a/zathurarc.5.rst
+++ b/zathurarc.5.rst
@@ -447,11 +447,19 @@ Defines the background color for the focused tab

show-scrollbars
^^^^^^^^^^^^^^^
-Defines if scrollbars should be shown or not
+Defines if both the horizontal and vertical scrollbars should be shown or not

* Value type: Boolean
* Default value: false

+show-h-scrollbar
+^^^^^^^^^^^^^^^^
+Defines whether to show/hide the horizontal scrollbar
+
+show-v-scrollbar
+^^^^^^^^^^^^^^^^
+Defines whether to show/hide the vertical scrollbar
+
statusbar-bg
^^^^^^^^^^^^
Defines the background color of the statusbar
--
1.7.10.4
Marwan Tanager
2013-05-31 12:04:41 UTC
Permalink
---
zathurarc.5.rst | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/zathurarc.5.rst b/zathurarc.5.rst
index 80f571b..f320faa 100644
--- a/zathurarc.5.rst
+++ b/zathurarc.5.rst
@@ -447,7 +447,21 @@ Defines the background color for the focused tab

show-scrollbars
^^^^^^^^^^^^^^^
-Defines if scrollbars should be shown or not
+Defines if both the horizontal and vertical scrollbars should be shown or not
+
+* Value type: Boolean
+* Default value: false
+
+show-h-scrollbar
+^^^^^^^^^^^^^^^^
+Defines whether to show/hide the horizontal scrollbar
+
+* Value type: Boolean
+* Default value: false
+
+show-v-scrollbar
+^^^^^^^^^^^^^^^^
+Defines whether to show/hide the vertical scrollbar

* Value type: Boolean
* Default value: false
--
1.7.10.4
Sebastian Ramacher
2013-06-03 09:37:03 UTC
Permalink
Thanks, applied.

Regards
--
Sebastian Ramacher
Loading...