Commit a2959ab1 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

use the global error dialog if the progress is a GimpProgressDialog.

2006-08-11  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-message.c (gui_message_error_dialog): use the global
	error dialog if the progress is a GimpProgressDialog.
parent ff1560ff
2006-08-11 Sven Neumann <sven@gimp.org>
* app/gui/gui-message.c (gui_message_error_dialog): use the global
error dialog if the progress is a GimpProgressDialog.
2006-08-11 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpui.defs: wrap gimp_window_set_transient()
......
......@@ -37,6 +37,7 @@
#include "widgets/gimpdockable.h"
#include "widgets/gimperrorconsole.h"
#include "widgets/gimperrordialog.h"
#include "widgets/gimpprogressdialog.h"
#include "dialogs/dialogs.h"
......@@ -165,7 +166,10 @@ gui_message_error_dialog (GimpProgress *progress,
{
GtkWidget *dialog;
dialog = progress ? progress_error_dialog (progress) : global_error_dialog ();
if (progress && ! GIMP_IS_PROGRESS_DIALOG (progress))
dialog = progress_error_dialog (progress);
else
dialog = global_error_dialog ();
if (dialog)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment