Now should correctly get the selected folder from the given URL.

2000-06-22  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser.c (folder_browser_load_folder): Now should
	correctly get the selected folder from the given URL.

svn path=/trunk/; revision=3704
This commit is contained in:
Jeffrey Stedfast
2000-06-23 02:29:37 +00:00
committed by Jeffrey Stedfast
parent d12be02179
commit 30f5127773
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-06-22 Jeffrey Stedfast <fejj@helixcode.com>
* folder-browser.c (folder_browser_load_folder): Now should
correctly get the selected folder from the given URL.
2000-06-22 Chris Toshok <toshok@helixcode.com>
* folder-browser.c (folder_browser_load_folder): add handling for

View File

@ -119,11 +119,12 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name)
for (ptr = (char *)(name + 7); *ptr && *ptr != '/'; ptr++);
if (*ptr == '/') {
if (url && url->path) {
fprintf (stderr, "namespace = %s\n", url->path);
fprintf (stderr, "namespace = %s\n", url->path + 1);
ptr += strlen (url->path);
}
ptr++;
for ( ; *ptr && *ptr == '/'; ptr++);
folder_name = g_strdup (ptr);
fprintf (stderr, "getting folder: %s\n", folder_name);