Revision: 1466
http://geeqie.svn.sourceforge.net/geeqie/?rev=1466&view=rev
Author: zas_
Date: 2009-03-02 21:04:38 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
Add a directory separator at the end of names in tab completion list to
indicate directories.
Modified Paths:
--------------
trunk/src/ui_tabcomp.c
Modified: trunk/src/ui_tabcomp.c
===================================================================
--- trunk/src/ui_tabcomp.c 2009-03-01 23:38:36 UTC (rev 1465)
+++ trunk/src/ui_tabcomp.c 2009-03-02 21:04:38 UTC (rev 1466)
@@ -124,7 +124,18 @@
gchar *name = dir->d_name;
if (strcmp(name, ".") != 0 && strcmp(name, "..") != 0)
{
- list = g_list_prepend(list, path_to_utf8(name));
+ gchar *abspath = g_build_filename(path, name, NULL);
+
+ if (isdir(abspath))
+ {
+ gchar *dname = g_strconcat(name,
G_DIR_SEPARATOR_S, NULL);
+ list = g_list_prepend(list,
path_to_utf8(dname));
+ }
+ else
+ {
+ list = g_list_prepend(list, path_to_utf8(name));
+ }
+ g_free(abspath);
}
}
closedir(dp);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn