[gnome-commander] search: use a faster variant for getting path just being searched



commit 5652e04aaded987e5b5d3fe7ae7356826719d40a
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Apr 14 20:57:19 2011 +0200

    search: use a faster variant for getting path just being searched

 src/gnome-cmd-search-dialog.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index f493822..c98791b 100755
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -272,10 +272,8 @@ static void search_dir_r (GnomeCmdDir *dir, SearchData *data)
     {
         g_mutex_lock (data->pdata.mutex);
 
-        gchar *path = GNOME_CMD_FILE (dir)->get_path();
         g_free (data->pdata.msg);
-        data->pdata.msg = g_strdup_printf (_("Searching in: %s"), path);
-        g_free (path);
+        data->pdata.msg = g_strdup_printf (_("Searching in: %s"), gnome_cmd_dir_get_display_path (dir));
 
         g_mutex_unlock (data->pdata.mutex);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]