app/config, docs: fix gimprc manpage regeneration

This commit is contained in:
v4vansh 2026-03-16 23:32:25 +05:30 committed by Jehan
parent ac73289f18
commit fa097df908
6 changed files with 26 additions and 1497 deletions

View file

@ -198,8 +198,8 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
GIMP_CONFIG_PROP_STRING (object_class, PROP_PREV_LANGUAGE,
"prev-language",
"Language used in previous run",
NULL, NULL,
GIMP_PARAM_STATIC_STRINGS);
PREV_LANGUAGE_BLURB,
NULL, GIMP_PARAM_STATIC_STRINGS);
/* This is the version of the config files, which must map to the
* version of GIMP. It is used right now only to detect the last run
@ -682,7 +682,7 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
GIMP_CONFIG_PROP_STRING (object_class, PROP_LAST_RELEASE_COMMENT,
"last-release-comment",
"Comment for last release",
LAST_KNOWN_RELEASE_BLURB,
LAST_RELEASE_COMMENT_BLURB,
NULL,
GIMP_PARAM_STATIC_STRINGS);

View file

@ -525,7 +525,7 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_WELCOME_DIALOG,
"show-welcome-dialog",
"Show Welcome Dialog each time",
NULL, TRUE,
SHOW_WELCOME_DIALOG_BLURB, TRUE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
GIMP_PARAM_STATIC_STRINGS);

View file

@ -20,6 +20,15 @@ _("When enabled, an image will become the active image when its image " \
#define DYNAMICS_PATH_BLURB \
_("Sets the dynamics search path.")
#define PREV_LANGUAGE_BLURB \
_("Specifies the language the user interface was previously displayed in.")
#define LAST_RELEASE_COMMENT_BLURB \
_("The comment for the last known release.")
#define SHOW_WELCOME_DIALOG_BLURB \
_("Show a welcome dialog when GIMP starts.")
#define DYNAMICS_PATH_WRITABLE_BLURB ""
#define TOOL_PRESET_PATH_BLURB \

File diff suppressed because it is too large Load diff

View file

@ -10,18 +10,23 @@ manconf.set('manpage_gimpdir', '$XDG_CONFIG_HOME/' + gimpdir / gimp_app_version)
manconf.set('gimpsysconfdir', prefix / gimpsysconfdir)
manconf.set('mypaint_brushes_dir', mypaint_brushes_dir)
custom_target('gimprc-' + gimp_app_version + '.5',
output: 'gimprc-' + gimp_app_version + '.5',
depends: [ gimp_exe_depends ],
command: [ gimp_exe, '--no-interface',
'--dump-gimprc-manpage' ],
capture: true,
build_by_default: true,
env: gimp_run_env,
install: true,
install_dir: get_option('mandir') / 'man5')
man_files = [
configure_file(
input : 'gimptool.1.in',
output: 'gimptool-' + gimp_app_version + '.1',
configuration: manconf,
),
configure_file(
input : 'gimprc.5.in',
output: 'gimprc-' + gimp_app_version + '.5',
configuration: manconf,
),
)
]
if enable_console_bin

View file

@ -576,13 +576,10 @@ gimp_config_serialize_value (const GValue *value,
{
const gchar *cstr = g_value_get_string (value);
if (!cstr)
return FALSE;
if (escaped)
gimp_config_string_append_escaped (str, cstr);
gimp_config_string_append_escaped (str, cstr ? cstr : "");
else
g_string_append (str, cstr);
g_string_append (str, cstr ? cstr : "");
return TRUE;
}