We don't want an infinite number of traces because it takes some time to get. Until now I was keeping track of traces in app/errors.c, but that was very sucky because then I was limiting traces per session. Instead save them as a variable of a GimpCriticalDialog instance. Therefore only generate the traces for WARNING/CRITICAL at the last second, when calling the dialog. When too many traces are displayed, just fallback to just add error messages only. But then even errors without traces can be time-consuming (if you have dozens of thousands of errors in a few seconds, as I had the other day, updating the dialog for all of them would just freeze the whole application for a long time). So also keep track of errors as well and as last fallback, just send the remaining errors to the stderr.
30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __GUI_MESSAGE_H__
|
|
#define __GUI_MESSAGE_H__
|
|
|
|
|
|
void gui_message (Gimp *gimp,
|
|
GObject *handler,
|
|
GimpMessageSeverity severity,
|
|
const gchar *domain,
|
|
const gchar *message);
|
|
|
|
|
|
#endif /* __GUI_VTABLE_H__ */
|