Fix using project name for document items that start with the
project base path but don't match it e.g. ".../geany-plugins" instead of ".../geany" when project name is 'geany'. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3926 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
c980e1160f
commit
6a3795abd6
@ -7,6 +7,10 @@
|
||||
Add utils_strdupa() macro.
|
||||
* src/interface.c, geany.glade:
|
||||
Use stock Select All icon now we have >= GTK 2.8.
|
||||
* src/treeviews.c:
|
||||
Fix using project name for document items that start with the
|
||||
project base path but don't match it e.g. ".../geany-plugins"
|
||||
instead of ".../geany" when project name is 'geany'.
|
||||
|
||||
|
||||
2009-07-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
@ -310,8 +310,10 @@ static GtkTreeIter *get_doc_parent(GeanyDocument *doc)
|
||||
{
|
||||
gsize len = strlen(project_base_path);
|
||||
const gchar *rest;
|
||||
/* check whether the dir name starts with the project base path */
|
||||
if (strncmp(tmp_dirname, project_base_path, len) == 0)
|
||||
|
||||
/* check whether the dir name uses the project base path */
|
||||
setptr(project_base_path, g_strconcat(project_base_path, G_DIR_SEPARATOR_S, NULL));
|
||||
if (g_str_has_prefix(tmp_dirname, project_base_path))
|
||||
{
|
||||
rest = tmp_dirname + len;
|
||||
dirname = g_strdup_printf("%s%s%s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user