mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 08:55:59 +01:00
Respect scrollbar spacing in sc_adjust_window
This commit is contained in:
parent
8908e1cb06
commit
ad27b0471d
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,11 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
|
||||||
double width = allocation.width;
|
double width = allocation.width;
|
||||||
double height = allocation.height;
|
double height = allocation.height;
|
||||||
|
|
||||||
|
/* scrollbar spacing */
|
||||||
|
gint spacing;
|
||||||
|
gtk_widget_style_get(session->gtk.view, "scrollbar_spacing", &spacing, NULL);
|
||||||
|
width -= spacing;
|
||||||
|
|
||||||
/* correct view size */
|
/* correct view size */
|
||||||
if (gtk_widget_get_visible(GTK_WIDGET(session->gtk.inputbar)) == true) {
|
if (gtk_widget_get_visible(GTK_WIDGET(session->gtk.inputbar)) == true) {
|
||||||
gtk_widget_get_allocation(session->gtk.inputbar, &allocation);
|
gtk_widget_get_allocation(session->gtk.inputbar, &allocation);
|
||||||
|
|
Loading…
Reference in a new issue