[evince] libview: Use gtk_widget_get_preferred_size() instead of size_request
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Use gtk_widget_get_preferred_size() instead of size_request
- Date: Sun, 26 Dec 2010 10:45:45 +0000 (UTC)
commit 7c0d1e82d2f93e137f8f5c0b7b1d378b39a13d0e
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Dec 26 11:27:56 2010 +0100
libview: Use gtk_widget_get_preferred_size() instead of size_request
libview/ev-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 971dfe0..63df496 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]