From ded10365a12740ecb80c7ce0021b4bb9834f6cf7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 20 Sep 2011 03:10:33 +0200 Subject: [PATCH] fontchooser: Remove needless scroll calls Previous functions take care of scrolling already. --- gtk/gtkfontchooserwidget.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index 21e5f9a396..955eea619c 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); } }