[nautilus/places-sidebar] Change gtk_places_sidebar_set_current_uri() for ..._set_current_location()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/places-sidebar] Change gtk_places_sidebar_set_current_uri() for ..._set_current_location()
- Date: Sat, 24 Nov 2012 19:38:22 +0000 (UTC)
commit e9f36469a7122e2dee5fea865dc113e8ea9f5217
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Nov 24 10:37:16 2012 -0600
Change gtk_places_sidebar_set_current_uri() for ..._set_current_location()
Signed-off-by: Federico Mena Quintero <federico gnome org>
src/nautilus-window.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f1c9256..994b4c4 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -624,8 +624,13 @@ window_loading_uri_cb (NautilusWindow *window,
char *location,
gpointer user_data)
{
- if (window->details->places_sidebar)
- gtk_places_sidebar_set_current_uri (GTK_PLACES_SIDEBAR (window->details->places_sidebar), location);
+ if (window->details->places_sidebar) {
+ GFile *file;
+
+ file = g_file_new_for_uri (location);
+ gtk_places_sidebar_set_current_location (GTK_PLACES_SIDEBAR (window->details->places_sidebar), file);
+ g_object_unref (file);
+ }
}
/* Callback used when the trash state changes; we update the places sidebar to reflect this */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]