[nautilus] Revert "nautilus-window: Check for valid location entry widget"



commit 64c99b28776b24bf054eb266468c0ec6e8895666
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Dec 26 18:25:55 2014 -0600

    Revert "nautilus-window: Check for valid location entry widget"
    
    This reverts commit 8acef3c776f2ef4f5dac788ed81f7e2d1f504026.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741952

 src/nautilus-window.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 38dea35..ac78022 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1026,9 +1026,7 @@ nautilus_window_sync_location_widgets (NautilusWindow *window)
                GtkWidget *path_bar;
 
                location_entry = nautilus_toolbar_get_location_entry (NAUTILUS_TOOLBAR 
(window->details->toolbar));
-               if (location_entry != NULL && GTK_IS_WIDGET (location_entry)) {
-                       nautilus_location_entry_set_location (NAUTILUS_LOCATION_ENTRY (location_entry), 
location);
-               }
+               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]