From db2ef8ce51fe2945ab9cd4c231ea7ba504323c02 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 11 May 2011 16:36:28 +0200 Subject: [PATCH] GtkFontChooser: Restore automatic alignment on scroll to selection --- gtk/gtkfontchooser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c index 6e59f73af8..529dca6baa 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);