don't count the number of repeated messages when the error messages are

2007-07-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimperrordialog.c (gimp_error_dialog_add): don't
	count the number of repeated messages when the error messages are
	being redirected to stderr already.

svn path=/trunk/; revision=22876
This commit is contained in:
Sven Neumann
2007-07-05 15:39:22 +00:00
committed by Sven Neumann
parent a54fb70a09
commit 5a41fd121a
2 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2007-07-05 Sven Neumann <sven@gimp.org>
* app/widgets/gimperrordialog.c (gimp_error_dialog_add): don't
count the number of repeated messages when the error messages are
being redirected to stderr already.
2007-07-05 Sven Neumann <sven@gimp.org>
* app/xcf/xcf-read.c (xcf_read_int32) (xcf_read_int8): return the

View File

@ -150,15 +150,12 @@ gimp_error_dialog_add (GimpErrorDialog *dialog,
stock_id = GIMP_STOCK_WILBER_EEK;
domain = _("Too many error messages!");
message = _("Messages are redirected to stderr.");
}
/* yes, these lines are repeated here for a reason */
if (dialog->last_box &&
dialog->last_domain && strcmp (dialog->last_domain, domain) == 0 &&
dialog->last_message && strcmp (dialog->last_message, message) == 0)
{
if (gimp_message_box_repeat (GIMP_MESSAGE_BOX (dialog->last_box)))
return;
if (dialog->last_domain && strcmp (dialog->last_domain, domain) == 0 &&
dialog->last_message && strcmp (dialog->last_message, message) == 0)
{
return;
}
}
box = g_object_new (GIMP_TYPE_MESSAGE_BOX,