Bug 684698 - Preferences-Folders: only 15 folder items accepted

Raise "max_paths" from 16 to 256 in all calls to gimp_path_parse().
This commit is contained in:
Michael Natterer 2012-09-26 23:29:51 +02:00
parent b88f1b04dd
commit 2a30a2bb74
9 changed files with 13 additions and 13 deletions

View file

@ -345,7 +345,7 @@ gimp_data_factory_data_load (GimpDataFactory *factory,
g_free (writable_path);
writable_path = tmp;
writable_list = gimp_path_parse (writable_path, 16, TRUE, NULL);
writable_list = gimp_path_parse (writable_path, 256, TRUE, NULL);
g_object_set_data (G_OBJECT (factory),
WRITABLE_PATH_KEY, writable_list);
@ -711,8 +711,8 @@ gimp_data_factory_get_save_dir (GimpDataFactory *factory,
g_free (writable_path);
writable_path = tmp;
path_list = gimp_path_parse (path, 16, FALSE, NULL);
writable_list = gimp_path_parse (writable_path, 16, FALSE, NULL);
path_list = gimp_path_parse (path, 256, FALSE, NULL);
writable_list = gimp_path_parse (writable_path, 256, FALSE, NULL);
g_free (path);
g_free (writable_path);

View file

@ -91,7 +91,7 @@ gimp_datafiles_read_directories (const gchar *path_str,
local_path = g_strdup (path_str);
path = gimp_path_parse (local_path, 16, TRUE, NULL);
path = gimp_path_parse (local_path, 256, TRUE, NULL);
for (list = path; list; list = g_list_next (list))
{

View file

@ -373,7 +373,7 @@ gimp_path_editor_set_path (GimpPathEditor *editor,
g_free (old_path);
path_list = gimp_path_parse (path, 16, FALSE, NULL);
path_list = gimp_path_parse (path, 256, FALSE, NULL);
gtk_list_store_clear (editor->dir_list);
@ -456,7 +456,7 @@ gimp_path_editor_set_writable_path (GimpPathEditor *editor,
gtk_tree_view_column_set_visible (editor->writable_column, TRUE);
path_list = gimp_path_parse (path, 16, FALSE, NULL);
path_list = gimp_path_parse (path, 256, FALSE, NULL);
model = GTK_TREE_MODEL (editor->dir_list);

View file

@ -1589,7 +1589,7 @@ file_chooser_set_default_folder (GtkFileChooser *chooser)
if (! fractalexplorer_path)
return;
path_list = gimp_path_parse (fractalexplorer_path, 16, FALSE, NULL);
path_list = gimp_path_parse (fractalexplorer_path, 256, FALSE, NULL);
dir = gimp_path_get_user_writable_dir (path_list);

View file

@ -611,7 +611,7 @@ gfig_get_user_writable_dir (void)
GList *list;
gchar *dir;
list = gimp_path_parse (gfig_path, 16, FALSE, NULL);
list = gimp_path_parse (gfig_path, 256, FALSE, NULL);
dir = gimp_path_get_user_writable_dir (list);
gimp_path_free (list);

View file

@ -153,7 +153,7 @@ parsepath (void)
g_free (full_path);
}
parsepath_cached_path = gimp_path_parse (rc_path, 16, FALSE, NULL);
parsepath_cached_path = gimp_path_parse (rc_path, 256, FALSE, NULL);
g_free (rc_path);

View file

@ -1467,7 +1467,7 @@ gflare_save (GFlare *gflare)
return;
}
list = gimp_path_parse (gflare_path, 16, FALSE, NULL);
list = gimp_path_parse (gflare_path, 256, FALSE, NULL);
path = gimp_path_get_user_writable_dir (list);
gimp_path_free (list);

View file

@ -1177,7 +1177,7 @@ save_lighting_preset (GtkWidget *widget,
GList *list;
gchar *dir;
list = gimp_path_parse (lighting_effects_path, 16, FALSE, NULL);
list = gimp_path_parse (lighting_effects_path, 256, FALSE, NULL);
dir = gimp_path_get_user_writable_dir (list);
gimp_path_free (list);
@ -1318,7 +1318,7 @@ load_lighting_preset (GtkWidget *widget,
GList *list;
gchar *dir;
list = gimp_path_parse (lighting_effects_path, 16, FALSE, NULL);
list = gimp_path_parse (lighting_effects_path, 256, FALSE, NULL);
dir = gimp_path_get_user_writable_dir (list);
gimp_path_free (list);

View file

@ -235,7 +235,7 @@ tinyscheme_init (const gchar *path,
if (path)
{
GList *dir_list = gimp_path_parse (path, 16, TRUE, NULL);
GList *dir_list = gimp_path_parse (path, 256, TRUE, NULL);
GList *list;
for (list = dir_list; list; list = g_list_next (list))