[gnome-documents] view: never use an horizontal scrollbar in the main scrolled window



commit 4f3a11a7c1fe17161a2aa30db2575c98ce282018
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Feb 28 12:10:11 2012 -0500

    view: never use an horizontal scrollbar in the main scrolled window
    
    Horizontal scrolling is evil.

 src/lib/gd-main-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/lib/gd-main-view.c b/src/lib/gd-main-view.c
index b796c9e..6cded5b 100644
--- a/src/lib/gd-main-view.c
+++ b/src/lib/gd-main-view.c
@@ -66,6 +66,9 @@ gd_main_view_init (GdMainView *self)
   gtk_widget_set_hexpand (GTK_WIDGET (self), TRUE);
   gtk_widget_set_vexpand (GTK_WIDGET (self), TRUE);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (self), GTK_SHADOW_IN);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (self),
+                                  GTK_POLICY_NEVER,
+                                  GTK_POLICY_AUTOMATIC);
 
   context = gtk_widget_get_style_context (GTK_WIDGET (self));
   gtk_style_context_add_class (context, "documents-scrolledwin");



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