mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
libgimp: add gimp_procedure_config_get_procedure()
and use it in gimp_procedure_dialog_new() to make sure that the passed config was created by the passed procedure.
This commit is contained in:
parent
f62665ad31
commit
aa41baef1e
4 changed files with 35 additions and 10 deletions
|
@ -177,6 +177,25 @@ gimp_procedure_config_get_property (GObject *object,
|
|||
|
||||
/* public functions */
|
||||
|
||||
/**
|
||||
* gimp_procedure_config_get_procedure:
|
||||
* @config: a #GimpProcedureConfig
|
||||
*
|
||||
* This function returns the #GimpProcedure which created @config, see
|
||||
* gimp_procedure_create_config().
|
||||
*
|
||||
* Returns: The #GimpProcedure which created @config.
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
GimpProcedure *
|
||||
gimp_procedure_config_get_procedure (GimpProcedureConfig *config)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_PROCEDURE_CONFIG (config), NULL);
|
||||
|
||||
return config->priv->procedure;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_procedure_config_set_values:
|
||||
* @config: a #GimpProcedureConfig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue