Fix display of double slash in path entry.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2074 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2007-11-29 17:56:36 +00:00
parent fabc1c9940
commit 42e026fe4b
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@
* geany.glade, doc/geany.html, geany.txt, src/editor.c,
src/interface.c: Improve usage of "Unfold all children" option and
add some basic documentation for folding support.
* plugins/filebrowser.c: Fix display of double slash in path entry.
2007-11-27 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -246,14 +246,16 @@ static void handle_selection(GList *list, GtkTreeSelection *treesel)
for (item = list; item != NULL; item = g_list_next(item))
{
gchar *name, *fname;
gchar *name, *fname, *dir_sep = G_DIR_SEPARATOR_S;
treepath = (GtkTreePath*) item->data;
gtk_tree_model_get_iter(model, &iter, treepath);
gtk_tree_model_get(model, &iter, FILEVIEW_COLUMN_NAME, &name, -1);
setptr(name, utils->get_locale_from_utf8(name));
fname = g_strconcat(current_dir, G_DIR_SEPARATOR_S, name, NULL);
if (utils->str_equal(current_dir, G_DIR_SEPARATOR_S))
dir_sep = "";
fname = g_strconcat(current_dir, dir_sep, name, NULL);
g_free(name);
if (dir_found)