nautilus search default path
- From: florian boucault ath cx
- To: nautilus-list gnome org
- Subject: nautilus search default path
- Date: Mon, 2 Oct 2006 01:18:21 +0200 (CEST)
Hello all,
Here is a patch against bug 325086 concerning the default search path in
Nautilus. It sets it to the current directory instead of the home folder.
What do you think about it ?
Thanks,
Florian
--- src/nautilus-navigation-window.c 2006-08-07 11:34:31.000000000 +0100
+++ /home/florian/Desktop/nautilus-navigation-window.c 2006-08-27 21:04:07.000000000 +0100
@@ -1039,7 +1039,7 @@
search_bar_activate_callback (NautilusSearchBar *bar,
NautilusWindow *window)
{
- char *uri, *home_uri;
+ char *uri, *current_uri;
NautilusDirectory *directory;
NautilusSearchDirectory *search_directory;
NautilusQuery *query;
@@ -1054,9 +1054,9 @@
query = nautilus_search_bar_get_query (NAUTILUS_SEARCH_BAR (NAUTILUS_NAVIGATION_WINDOW (window)->search_bar));
if (query != NULL) {
if (!nautilus_search_directory_is_indexed (search_directory)) {
- home_uri = nautilus_get_home_directory_uri ();
- nautilus_query_set_location (query, home_uri);
- g_free (home_uri);
+ current_uri = nautilus_window_get_location(window);
+ nautilus_query_set_location (query, current_uri);
+ g_free (current_uri);
}
nautilus_search_directory_set_query (search_directory, query);
g_object_unref (query);
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]