pdb: deprecate gimp_get_theme_dir() and gimp_get_icon_theme_dir()

They are unused in 2.10 and master, and we do this via the plug-in
config message anyway.
This commit is contained in:
Michael Natterer
2019-01-04 15:55:47 +01:00
parent 490d565b57
commit 8dee1276f1
4 changed files with 16 additions and 4 deletions

View File

@ -409,11 +409,13 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure,
"gimp-get-theme-dir",
"Get the directory of the current GUI theme.",
"Returns a copy of the current GUI theme dir.",
"Returns a copy of the current GUI theme dir.\n"
"\n"
"Deprecated: There is no replacement for this procedure.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
NULL);
"NONE");
gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("theme-dir",
"theme dir",
@ -433,11 +435,13 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_procedure_set_static_strings (procedure,
"gimp-get-icon-theme-dir",
"Get the directory of the current icon theme.",
"Returns a copy of the current icon theme dir.",
"Returns a copy of the current icon theme dir.\n"
"\n"
"Deprecated: There is no replacement for this procedure.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"2015",
NULL);
"NONE");
gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("icon-theme-dir",
"icon theme dir",

View File

@ -215,6 +215,8 @@ gimp_get_monitor_resolution (gdouble *xres,
*
* Returns a copy of the current GUI theme dir.
*
* Deprecated: There is no replacement for this procedure.
*
* Returns: The GUI theme dir.
**/
gchar *
@ -243,6 +245,8 @@ gimp_get_theme_dir (void)
*
* Returns a copy of the current icon theme dir.
*
* Deprecated: There is no replacement for this procedure.
*
* Returns: The icon theme dir.
*
* Since: 2.10

View File

@ -39,7 +39,9 @@ gchar* gimp_get_default_comment (void);
GimpUnit gimp_get_default_unit (void);
gboolean gimp_get_monitor_resolution (gdouble *xres,
gdouble *yres);
GIMP_DEPRECATED
gchar* gimp_get_theme_dir (void);
GIMP_DEPRECATED
gchar* gimp_get_icon_theme_dir (void);
G_GNUC_INTERNAL gchar* _gimp_get_color_configuration (void);
gchar* gimp_get_module_load_inhibit (void);

View File

@ -175,6 +175,7 @@ sub get_theme_dir {
$help = 'Returns a copy of the current GUI theme dir.';
&std_pdb_misc;
$deprecated = 'NONE';
@outargs = (
{ name => 'theme_dir', type => 'string',
@ -198,6 +199,7 @@ sub get_icon_theme_dir {
$help = 'Returns a copy of the current icon theme dir.';
&mitch_pdb_misc('2015', '2.10');
$deprecated = 'NONE';
@outargs = (
{ name => 'icon_theme_dir', type => 'string',