[gtk+/font-selection-new] GtkFontSelection: Automatic alignment when scrolling to selection



commit 20450f98ae3c1458cc649d904878f212aecf2928
Author: Alberto Ruiz <aruiz gnome org>
Date:   Sun May 8 16:13:22 2011 +0100

    GtkFontSelection: Automatic alignment when scrolling to selection

 gtk/gtkfontselection.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkfontselection.c b/gtk/gtkfontselection.c
index b7056c5..90dd08b 100644
--- a/gtk/gtkfontselection.c
+++ b/gtk/gtkfontselection.c
@@ -301,7 +301,7 @@ refilter_and_focus (GtkFontSelectionPrivate *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);
 }
 
@@ -508,7 +508,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;
@@ -840,7 +840,7 @@ populate_list (GtkFontSelection *fontsel, GtkTreeView* treeview, GtkListStore* m
   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);
   }
 
@@ -1043,7 +1043,7 @@ populate_font_model (GtkFontSelection *fontsel)
                                         NULL,
                                         FALSE);
               gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tv),
-                                            path, NULL, TRUE, 0.5, 0.5);
+                                            path, NULL, FALSE, 0.5, 0.5);
               gtk_tree_path_free (path);
             }
         }
@@ -1086,7 +1086,7 @@ update_font_list_selection (GtkFontSelection *fontsel)
 
       priv->ignore_font = TRUE;
       gtk_tree_view_set_cursor (GTK_TREE_VIEW (tv), path, NULL, FALSE);
-      gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tv), path, NULL, TRUE, 0.5, 0.5);
+      gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tv), path, NULL, FALSE, 0.5, 0.5);
 
       /* Free resources */
       gtk_tree_path_free (path);
@@ -1605,7 +1605,7 @@ gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
               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]