[gtk+] GtkScrolledWindow: change default policy to 'automatic'



commit 0f88b6808c6fb41e49ff4600e56bc8b2ceb4f49a
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Sep 21 20:14:46 2010 -0400

    GtkScrolledWindow: change default policy to 'automatic'
    
    This change was proposed in bug 468672.

 gtk/gtkscrolledwindow.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 252df29..c23b771 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -259,7 +259,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
                                                       P_("Horizontal Scrollbar Policy"),
                                                       P_("When the horizontal scrollbar is displayed"),
 						      GTK_TYPE_POLICY_TYPE,
-						      GTK_POLICY_ALWAYS,
+						      GTK_POLICY_AUTOMATIC,
                                                       GTK_PARAM_READABLE | GTK_PARAM_WRITABLE));
   g_object_class_install_property (gobject_class,
                                    PROP_VSCROLLBAR_POLICY,
@@ -267,7 +267,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
                                                       P_("Vertical Scrollbar Policy"),
                                                       P_("When the vertical scrollbar is displayed"),
 						      GTK_TYPE_POLICY_TYPE,
-						      GTK_POLICY_ALWAYS,
+						      GTK_POLICY_AUTOMATIC,
                                                       GTK_PARAM_READABLE | GTK_PARAM_WRITABLE));
 
   g_object_class_install_property (gobject_class,
@@ -400,8 +400,8 @@ gtk_scrolled_window_init (GtkScrolledWindow *scrolled_window)
 
   priv->hscrollbar = NULL;
   priv->vscrollbar = NULL;
-  priv->hscrollbar_policy = GTK_POLICY_ALWAYS;
-  priv->vscrollbar_policy = GTK_POLICY_ALWAYS;
+  priv->hscrollbar_policy = GTK_POLICY_AUTOMATIC;
+  priv->vscrollbar_policy = GTK_POLICY_AUTOMATIC;
   priv->hscrollbar_visible = FALSE;
   priv->vscrollbar_visible = FALSE;
   priv->focus_out = FALSE;



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