From b706e1b76b8664628202b3c238fe5afd97b266f0 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 24 Nov 2012 10:41:40 -0600 Subject: [PATCH] Highlight the currently-viewed location in the places sidebar Signed-off-by: Federico Mena Quintero --- gtk/gtkfilechooserdefault.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index ee5bad033d..ff81000ba4 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -1403,13 +1403,6 @@ shortcuts_find_folder (GtkFileChooserDefault *impl, gtk_tree_path_free (path); } -/* If a shortcut corresponds to the current folder, selects it */ -static void -shortcuts_find_current_folder (GtkFileChooserDefault *impl) -{ - shortcuts_find_folder (impl, impl->current_folder); -} - /* Removes the specified number of rows from the shortcuts list */ static void shortcuts_remove_rows (GtkFileChooserDefault *impl, @@ -7524,9 +7517,7 @@ update_current_folder_get_info_cb (GCancellable *cancellable, /* Refresh controls */ -#if REMOVE_FOR_PLACES_SIDEBAR - shortcuts_find_current_folder (impl); -#endif + gtk_places_sidebar_set_current_location (GTK_PLACES_SIDEBAR (impl->places_sidebar), impl->current_folder); g_signal_emit_by_name (impl, "current-folder-changed", 0);