[gtk+] fontchooser: Remove needless scroll calls



commit ded10365a12740ecb80c7ce0021b4bb9834f6cf7
Author: Benjamin Otte <otte redhat com>
Date:   Tue Sep 20 03:10:33 2011 +0200

    fontchooser: Remove needless scroll calls
    
    Previous functions take care of scrolling already.

 gtk/gtkfontchooserwidget.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 21e5f9a..955eea6 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -391,8 +391,6 @@ cursor_changed_cb (GtkTreeView *treeview,
                       FAMILY_COLUMN, &family,
                       -1);
 
-  gtk_tree_view_scroll_to_cell (treeview, path, NULL, FALSE, 0.5, 0.5);
-
   gtk_tree_path_free (path);
   path = NULL;
 
@@ -1046,12 +1044,6 @@ gtk_font_chooser_widget_select_font (GtkFontChooserWidget *fontchooser)
                                     path,
                                     NULL,
                                     FALSE);
-          gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (priv->family_face_list),
-                                        path,
-                                        NULL,
-                                        FALSE,
-                                        0.5,
-                                        0.5);
           gtk_tree_path_free (path);
         }
     }



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