]> www.fi.muni.cz Git - evince.git/commitdiff
libview: Use gtk_widget_get_preferred_size() instead of size_request
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 26 Dec 2010 10:27:56 +0000 (11:27 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 26 Dec 2010 10:27:56 +0000 (11:27 +0100)
libview/ev-view.c

index 971dfe08e7488356520b0b2c0adbf5361c158abc..63df49699712f1c5103cc12ef78764cd143f9d75 100644 (file)
@@ -483,7 +483,7 @@ ev_view_get_scrollbar_size (EvView        *view,
        }
 
        gtk_widget_style_get (swindow, "scrollbar_spacing", &spacing, NULL);
-       gtk_widget_size_request (sb, &req);
+       gtk_widget_get_preferred_size (sb, &req, NULL);
 
        return (orientation == GTK_ORIENTATION_VERTICAL ? req.width : req.height) + spacing;
 }