Commit ad27b047 authored by Moritz Lipp's avatar Moritz Lipp

Respect scrollbar spacing in sc_adjust_window

parent 8908e1cb
...@@ -82,6 +82,11 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument, ...@@ -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);
......
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