]> Pileus Git - ~andy/gtk/commitdiff
GtkFontChooser: Restore automatic alignment on scroll to selection
authorAlberto Ruiz <aruiz@gnome.org>
Wed, 11 May 2011 14:36:28 +0000 (16:36 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Aug 2011 22:57:55 +0000 (18:57 -0400)
gtk/gtkfontchooser.c

index 6e59f73af86f582d6d51a83f97635d8a4676f261..529dca6baa97f2b1586844f34a6122b599c4f872 100644 (file)
@@ -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);