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:

committed by
Sven Neumann

parent
a54fb70a09
commit
5a41fd121a
@ -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
|
||||
|
@ -150,16 +150,13 @@ 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 &&
|
||||
if (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;
|
||||
}
|
||||
}
|
||||
|
||||
box = g_object_new (GIMP_TYPE_MESSAGE_BOX,
|
||||
"stock-id", stock_id,
|
||||
|
Reference in New Issue
Block a user