[gtk+/font-chooser: 78/84] GtkFontChooser: Restore automatic alignment on scroll to selection



commit 610325c2b2c03f0dc0216ad44e8be25290d4ebbb
Author: Alberto Ruiz <aruiz gnome org>
Date:   Wed May 11 16:36:28 2011 +0200

    GtkFontChooser: Restore automatic alignment on scroll to selection

 gtk/gtkfontchooser.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 6e59f73..529dca6 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -285,7 +285,7 @@ refilter_and_focus (GtkFontChooserPrivate *priv)
       return;
     }
 
-  gtk_tree_view_scroll_to_cell (treeview, path, NULL, TRUE, 0.5, 0.5);
+  gtk_tree_view_scroll_to_cell (treeview, path, NULL, FALSE, 0.5, 0.5);
   gtk_tree_path_free (path);
 }
 
@@ -457,7 +457,7 @@ cursor_changed_cb (GtkTreeView *treeview, gpointer data)
                       FAMILY_COLUMN, &family,
                       -1);
 
-  gtk_tree_view_scroll_to_cell (treeview, path, NULL, TRUE, 0.5, 0.5);
+  gtk_tree_view_scroll_to_cell (treeview, path, NULL, FALSE, 0.5, 0.5);
 
   gtk_tree_path_free (path);
   path = NULL;
@@ -772,7 +772,7 @@ populate_list (GtkFontChooser *fontchooser, GtkTreeView* treeview, GtkListStore*
   if (path)
     {
       gtk_tree_view_set_cursor (treeview, path, NULL, FALSE);
-      gtk_tree_view_scroll_to_cell (treeview, path, NULL, TRUE, 0.5, 0.5);
+      gtk_tree_view_scroll_to_cell (treeview, path, NULL, FALSE, 0.5, 0.5);
       gtk_tree_path_free(path);
     }
 
@@ -1121,7 +1121,7 @@ gtk_font_chooser_set_font_name (GtkFontChooser *fontchooser,
               gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (priv->family_face_list),
                                             path,
                                             NULL,
-                                            TRUE,
+                                            FALSE,
                                             0.5,
                                             0.5);
               gtk_tree_path_free (path);



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