From 627dc11c98f0300ae84818af40d60f3eb274c196 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Sep 2004 19:05:45 +0000 Subject: [PATCH] Scroll to the selected row. (#143868, Christian Persch) 2004-09-17 Matthias Clasen * gtk/gtkfilechooserdefault.c (select_func): Scroll to the selected row. (#143868, Christian Persch) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkfilechooserdefault.c | 1 + 5 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 73adde46e8..818dc26ade 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-17 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (select_func): Scroll to the selected + row. (#143868, Christian Persch) + 2004-09-17 Matthias Clasen * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Remove diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 73adde46e8..818dc26ade 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2004-09-17 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (select_func): Scroll to the selected + row. (#143868, Christian Persch) + 2004-09-17 Matthias Clasen * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Remove diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 73adde46e8..818dc26ade 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2004-09-17 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (select_func): Scroll to the selected + row. (#143868, Christian Persch) + 2004-09-17 Matthias Clasen * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Remove diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 73adde46e8..818dc26ade 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2004-09-17 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (select_func): Scroll to the selected + row. (#143868, Christian Persch) + 2004-09-17 Matthias Clasen * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Remove diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index fef3911630..09cf9f6800 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -4295,6 +4295,7 @@ select_func (GtkFileSystemModel *model, sorted_path = gtk_tree_model_sort_convert_child_path_to_path (impl->sort_model, path); gtk_tree_view_set_cursor (tree_view, sorted_path, NULL, FALSE); + gtk_tree_view_scroll_to_cell (tree_view, sorted_path, NULL, FALSE, 0.0, 0.0); gtk_tree_path_free (sorted_path); }