[gtk+/places-sidebar] Highlight the currently-viewed location in the places sidebar
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/places-sidebar] Highlight the currently-viewed location in the places sidebar
- Date: Sat, 24 Nov 2012 19:36:16 +0000 (UTC)
commit b706e1b76b8664628202b3c238fe5afd97b266f0
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Nov 24 10:41:40 2012 -0600
Highlight the currently-viewed location in the places sidebar
Signed-off-by: Federico Mena Quintero <federico gnome org>
gtk/gtkfilechooserdefault.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index ee5bad0..ff81000 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]