[nautilus/gnome-3-8] nautilus-window: Check for valid location entry widget



commit 77e9f82042744a691e27af52cb12ee26dd86331c
Author: Michael Cronenworth <mike cchtml com>
Date:   Thu Jan 23 15:47:55 2014 -0600

    nautilus-window: Check for valid location entry widget
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722616

 src/nautilus-window.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 1227800..7174d3c 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -695,7 +695,9 @@ nautilus_window_sync_location_widgets (NautilusWindow *window)
                GtkWidget *path_bar;
 
                location_entry = nautilus_toolbar_get_location_entry (NAUTILUS_TOOLBAR 
(window->details->toolbar));
-               nautilus_location_entry_set_location (NAUTILUS_LOCATION_ENTRY (location_entry), location);
+               if (location_entry != NULL && GTK_IS_WIDGET (location_entry)) {
+                       nautilus_location_entry_set_location (NAUTILUS_LOCATION_ENTRY (location_entry), 
location);
+               }
 
                path_bar = nautilus_toolbar_get_path_bar (NAUTILUS_TOOLBAR (window->details->toolbar));
                nautilus_path_bar_set_path (NAUTILUS_PATH_BAR (path_bar), location);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]