[nautilus/places-sidebar] Update the places sidebar with the currently-loading URI
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/places-sidebar] Update the places sidebar with the currently-loading URI
- Date: Fri, 26 Oct 2012 18:07:58 +0000 (UTC)
commit 996fe81e25ca6ad7ee4aff8cf65f85aa1c440cad
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Oct 26 13:04:13 2012 -0500
Update the places sidebar with the currently-loading URI
Signed-off-by: Federico Mena Quintero <federico gnome org>
src/nautilus-window.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index e26f1ea..811921a 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -614,6 +614,16 @@ places_sidebar_show_error_message (GtkPlacesSidebar *sidebar,
eel_show_error_dialog (primary, secondary, GTK_WINDOW (window));
}
+/* Callback for our own loading_uri signal. We update the sidebar's path. */
+static void
+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);
+}
+
static void
nautilus_window_set_up_sidebar (NautilusWindow *window)
{
@@ -648,6 +658,9 @@ nautilus_window_set_up_sidebar (NautilusWindow *window)
g_signal_connect (window->details->places_sidebar, "show-error-message",
G_CALLBACK (places_sidebar_show_error_message), window);
+ g_signal_connect (window, "loading-uri",
+ G_CALLBACK (window_loading_uri_cb), window);
+
gtk_box_pack_start (GTK_BOX (window->details->sidebar), window->details->places_sidebar, TRUE, TRUE, 0);
gtk_widget_show (window->details->places_sidebar);
gtk_widget_show (window->details->sidebar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]