[evince/wip/gpoo/gtk4-rebase-port: 71/89] ev-view: remove the fake spacing




commit b6acb8c86a5ac39ec67a94793bc30a99486927b8
Author: Qiu Wenbo <qiuwenbo kylinos com cn>
Date:   Fri Aug 27 14:51:41 2021 +0800

    ev-view: remove the fake spacing
    
    Signed-off-by: Qiu Wenbo <qiuwenbo kylinos com cn>

 libview/ev-view.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 4050562ec..51102925e 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -519,10 +519,9 @@ ev_view_get_scrollbar_size (EvView        *view,
                        return 0;
        }
 
-       spacing = 10; // gtk_widget_style_get (swindow, "scrollbar_spacing", &spacing, NULL);
        gtk_widget_get_preferred_size (sb, &req, NULL);
 
-       return (orientation == GTK_ORIENTATION_VERTICAL ? req.width : req.height) + spacing;
+       return (orientation == GTK_ORIENTATION_VERTICAL ? req.width : req.height);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]