File nautilus-bgo722616-check-for-valid-location-entry-widget.patch of Package nautilus.1950
From 67ba854074ac48ec142bdf3b9848cb8d94070f82 Mon Sep 17 00:00:00 2001
From: Michael Cronenworth <mike@cchtml.com>
Date: Thu, 23 Jan 2014 15:47:55 -0600
Subject: [PATCH] nautilus-window: Check for valid location entry widget
https://bugzilla.gnome.org/show_bug.cgi?id=722616
---
src/nautilus-window.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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);
--
1.8.4