From 6daeceae71a22d14893404a2e95bc89112674c69 Mon Sep 17 00:00:00 2001 From: "E.S. Quinn" Date: Mon, 15 Apr 2013 17:19:06 -0700 Subject: Made File Browser windows always open folders in the same window, even when spatial mode is enabled. --- src/caja-window-manage-views.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/caja-window-manage-views.c b/src/caja-window-manage-views.c index c2c5b5ff..c7918e6c 100644 --- a/src/caja-window-manage-views.c +++ b/src/caja-window-manage-views.c @@ -528,7 +528,7 @@ caja_window_slot_open_location_full (CajaWindowSlot *slot, int new_slot_position; GList *l; gboolean target_navigation = FALSE, target_same = FALSE; - gboolean is_desktop; + gboolean is_desktop, is_navigation; window = slot->pane->window; @@ -553,6 +553,7 @@ caja_window_slot_open_location_full (CajaWindowSlot *slot, (flags & CAJA_WINDOW_OPEN_FLAG_NEW_TAB) != 0)); is_desktop = CAJA_IS_DESKTOP_WINDOW (window); + is_navigation = CAJA_IS_NAVIGATION_WINDOW (window); target_same = is_desktop && !caja_desktop_window_loaded (CAJA_DESKTOP_WINDOW (window)); @@ -575,6 +576,8 @@ caja_window_slot_open_location_full (CajaWindowSlot *slot, * the target is a navigation. */ target_navigation = TRUE; + } else if (is_navigation) { + target_same = TRUE; } break; case CAJA_WINDOW_OPEN_IN_NAVIGATION : -- cgit v1.2.1 From acccd87b60837f610e1c4fd4d57937b9cb8e7bc4 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 19 Sep 2013 16:40:14 +0200 Subject: Possible fix for crash during file rename in external devices Bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1005660 Solution from: https://git.gnome.org/browse/nautilus/commit/src/nautilus-icon-view.c?h=gnome-3-2&id=a67212a --- src/file-manager/fm-icon-view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index 888db702..6ab19c4e 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -2639,12 +2639,11 @@ fm_icon_view_icon_text_changed_callback (CajaIconContainer *container, FMIconView *icon_view) { g_assert (CAJA_IS_FILE (file)); - g_assert (new_name != NULL); /* Don't allow a rename with an empty string. Revert to original * without notifying the user. */ - if (new_name[0] == '\0') + if ((new_name == NULL) || (new_name[0] == '\0')) { return; } -- cgit v1.2.1