[gimp/gimp-2-8] Bug 684698 - Preferences-Folders: only 15 folder items accepted
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 684698 - Preferences-Folders: only 15 folder items accepted
- Date: Wed, 26 Sep 2012 21:39:24 +0000 (UTC)
commit 027c744227a4b12b32a11cddc41e7bdc41641637
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 26 23:29:51 2012 +0200
Bug 684698 - Preferences-Folders: only 15 folder items accepted
Raise "max_paths" from 16 to 256 in all calls to gimp_path_parse().
(cherry picked from commit 2a30a2bb749d02cc25bc8358064f5c7bfed3f8ca)
app/core/gimpdatafactory.c | 6 +++---
libgimpbase/gimpdatafiles.c | 2 +-
libgimpwidgets/gimppatheditor.c | 4 ++--
.../fractal-explorer/fractal-explorer-dialogs.c | 2 +-
plug-ins/gfig/gfig-dialog.c | 2 +-
plug-ins/gimpressionist/utils.c | 2 +-
plug-ins/gradient-flare/gradient-flare.c | 2 +-
plug-ins/lighting/lighting-ui.c | 4 ++--
plug-ins/script-fu/scheme-wrapper.c | 2 +-
9 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/app/core/gimpdatafactory.c b/app/core/gimpdatafactory.c
index 00e6419..a5338c8 100644
--- a/app/core/gimpdatafactory.c
+++ b/app/core/gimpdatafactory.c
@@ -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);
diff --git a/libgimpbase/gimpdatafiles.c b/libgimpbase/gimpdatafiles.c
index 117b1c8..ac7987c 100644
--- a/libgimpbase/gimpdatafiles.c
+++ b/libgimpbase/gimpdatafiles.c
@@ -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))
{
diff --git a/libgimpwidgets/gimppatheditor.c b/libgimpwidgets/gimppatheditor.c
index f8fa41d..07155bc 100644
--- a/libgimpwidgets/gimppatheditor.c
+++ b/libgimpwidgets/gimppatheditor.c
@@ -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);
diff --git a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c
index 2ecbae7..2a4a478 100644
--- a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c
+++ b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c
@@ -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);
diff --git a/plug-ins/gfig/gfig-dialog.c b/plug-ins/gfig/gfig-dialog.c
index ad6c5a5..48694a7 100644
--- a/plug-ins/gfig/gfig-dialog.c
+++ b/plug-ins/gfig/gfig-dialog.c
@@ -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);
diff --git a/plug-ins/gimpressionist/utils.c b/plug-ins/gimpressionist/utils.c
index ebb07db..95bd9b9 100644
--- a/plug-ins/gimpressionist/utils.c
+++ b/plug-ins/gimpressionist/utils.c
@@ -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);
diff --git a/plug-ins/gradient-flare/gradient-flare.c b/plug-ins/gradient-flare/gradient-flare.c
index b3595f8..f30cfcd 100644
--- a/plug-ins/gradient-flare/gradient-flare.c
+++ b/plug-ins/gradient-flare/gradient-flare.c
@@ -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);
diff --git a/plug-ins/lighting/lighting-ui.c b/plug-ins/lighting/lighting-ui.c
index 1275fd9..7044084 100644
--- a/plug-ins/lighting/lighting-ui.c
+++ b/plug-ins/lighting/lighting-ui.c
@@ -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);
diff --git a/plug-ins/script-fu/scheme-wrapper.c b/plug-ins/script-fu/scheme-wrapper.c
index 576c586..d8d67f0 100644
--- a/plug-ins/script-fu/scheme-wrapper.c
+++ b/plug-ins/script-fu/scheme-wrapper.c
@@ -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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]