gimp r26683 - in trunk: . plug-ins/print
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26683 - in trunk: . plug-ins/print
- Date: Wed, 20 Aug 2008 18:11:26 +0000 (UTC)
Author: neo
Date: Wed Aug 20 18:11:26 2008
New Revision: 26683
URL: http://svn.gnome.org/viewvc/gimp?rev=26683&view=rev
Log:
2008-08-20 Sven Neumann <sven gimp org>
* plug-ins/print/print.c (page_setup): use the new API to set
the
PDB error handler in order to suppress a warning if the
temporary
procedure does not exist (see bug #513291).
Modified:
trunk/ChangeLog
trunk/plug-ins/print/print.c
Modified: trunk/plug-ins/print/print.c
==============================================================================
--- trunk/plug-ins/print/print.c (original)
+++ trunk/plug-ins/print/print.c Wed Aug 20 18:11:26 2008
@@ -282,7 +282,9 @@
page_setup (gint32 image_ID)
{
GtkPrintOperation *operation;
+ GimpParam *return_vals;
gchar *name;
+ gint n_return_vals;
gimp_ui_init (PLUG_IN_BINARY, FALSE);
@@ -297,21 +299,16 @@
/* now notify a running print procedure about this change */
name = print_temp_proc_name (image_ID);
- /* FIXME: This code has a race condition. The best solution
- * would be to catch the error somehow (see bug #344818).
+ /* we don't want the core to show an error message if the
+ * temporary procedure does not exist
*/
- if (gimp_procedural_db_proc_exists (name))
- {
- GimpParam *return_vals;
- gint n_return_vals;
-
- return_vals = gimp_run_procedure (name,
- &n_return_vals,
- GIMP_PDB_IMAGE, image_ID,
- GIMP_PDB_END);
+ gimp_plugin_set_pdb_error_handler (GIMP_PDB_ERROR_HANDLER_PLUGIN);
- gimp_destroy_params (return_vals, n_return_vals);
- }
+ return_vals = gimp_run_procedure (name,
+ &n_return_vals,
+ GIMP_PDB_IMAGE, image_ID,
+ GIMP_PDB_END);
+ gimp_destroy_params (return_vals, n_return_vals);
g_free (name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]