![]() | ![]() | ![]() | GIMP Library Reference Manual | ![]() |
---|
gchar* gimp_gimprc_query (gchar *token); gboolean gimp_gimprc_set (gchar *token, gchar *value); gchar* gimp_get_default_comment (void); gboolean gimp_get_monitor_resolution (gdouble *xres, gdouble *yres);
gchar* gimp_gimprc_query (gchar *token);
Queries the gimprc file parser for information on a specified token.
This procedure is used to locate additional information contained in the gimprc file considered extraneous to the operation of the GIMP. Plug-ins that need configuration information can expect it will be stored in the user gimprc file and can use this procedure to retrieve it. This query procedure will return the value associated with the specified token. This corresponds _only_ to entries with the format: (<token> <value>). The value must be a string. Entries not corresponding to this format will cause warnings to be issued on gimprc parsing and will not be queryable.
token : | The token to query for. |
Returns : | The value associated with the queried token. |
gboolean gimp_gimprc_set (gchar *token, gchar *value);
Sets a gimprc token to a value and saves it in the gimprc.
This procedure is used to add or change additional information in the gimprc file that is considered extraneous to the operation of the GIMP. Plug-ins that need configuration information can use this function to store it, and gimp_gimprc_query to retrieve it. This will accept _only_ parameters in the format of (<token> <value>), where <token> and <value> must be strings. Entries not corresponding to this format will be eaten and no action will be performed.
token : | The token to modify. |
value : | The value to set the token to. |
Returns : | TRUE on success. |
gchar* gimp_get_default_comment (void);
Get the default image comment as specified in the Preferences.
Returns a copy of the default image comment.
Returns : | Default Image Comment. |
gboolean gimp_get_monitor_resolution (gdouble *xres, gdouble *yres);
Get the monitor resolution as specified in the Preferences.
Returns the resolution of the monitor in pixels/inch. This value is taken from the Preferences (or the windowing system if this is set in the Preferences) and there's no guarantee for the value to be reasonable.
xres : | X resolution. |
yres : | Y resolution. |
Returns : | TRUE on success. |
<<< gimpfloatingsel | gimpgradients >>> |