mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
plug-ins: fix #10787 Page Setup warning/critical
When closing the Page Setup dialog we had warnings and criticals in the terminal. The cause for this was that we were looking for the temp procedure to notify the print plug-in. However, this temp procedure is only installed if the print plug-in is running, not when running the Page Setup directly, in which case it is not needed. We now check if the procedure is valid (meaning the print plug-in is running) before calling the temp notify procedure.
This commit is contained in:
parent
bcf30d6c2f
commit
a367dec2f8
1 changed files with 6 additions and 2 deletions
|
@ -402,9 +402,13 @@ page_setup (GimpImage *image)
|
|||
gimp_plug_in_set_pdb_error_handler (gimp_get_plug_in (),
|
||||
GIMP_PDB_ERROR_HANDLER_PLUGIN);
|
||||
|
||||
/* Notify the Print plug-in if Page Setup was called from there */
|
||||
procedure = gimp_pdb_lookup_procedure (gimp_get_pdb (), name);
|
||||
if (procedure)
|
||||
{
|
||||
return_vals = gimp_procedure_run (procedure, "image", image, NULL);
|
||||
gimp_value_array_unref (return_vals);
|
||||
}
|
||||
|
||||
g_free (name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue