[nautilus] Update window title when a search string is updated
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Update window title when a search string is updated
- Date: Sun, 1 Mar 2015 23:16:23 +0000 (UTC)
commit 0c7ee219c440de89aae492a8bab400c92f038478
Author: Jakub Srba <kuba srba gmail com>
Date: Tue Aug 5 09:39:48 2014 +0200
Update window title when a search string is updated
nautilus_window_slot_set_location updates window slot
title only when a directory is changed. This is OK
when going through the directory structure. But when
a search is started, "search" directory is created
with some name (create_new_search) and this name
is updated as the search is updated (sync_search_directory)
- but the location instance remains the same
until the search is finished. Thus we need to update
the title even if the location remains the same.
https://bugzilla.gnome.org/show_bug.cgi?id=698767
src/nautilus-window-slot.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 18242b6..2e0d09f 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -975,6 +975,10 @@ nautilus_window_slot_set_location (NautilusWindowSlot *slot,
if (slot->details->location &&
g_file_equal (location, slot->details->location)) {
+ /* The location name could be updated even if the location
+ * wasn't changed. This is the case for a search.
+ */
+ nautilus_window_slot_update_title (slot);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]