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



commit 67ba854074ac48ec142bdf3b9848cb8d94070f82
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 b3c3386..67b5899 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1032,7 +1032,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]