mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 20:12:30 +00:00
info messages go to the statusbar, no matter if it's visible or not. We
2006-12-11 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-progress.c (gimp_display_shell_progress_message): info messages go to the statusbar, no matter if it's visible or not. We don't want a dialog to pop up.
This commit is contained in:
parent
5ef1749496
commit
5330b8aad5
|
@ -1,3 +1,10 @@
|
|||
2006-12-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell-progress.c
|
||||
(gimp_display_shell_progress_message): info messages go to the
|
||||
statusbar, no matter if it's visible or not. We don't want a
|
||||
dialog to pop up.
|
||||
|
||||
2006-12-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/actions/file-commands.c: don't message "Image saved" from here.
|
||||
|
|
|
@ -109,11 +109,23 @@ gimp_display_shell_progress_message (GimpProgress *progress,
|
|||
{
|
||||
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (progress);
|
||||
|
||||
if (severity != GIMP_MESSAGE_ERROR && GTK_WIDGET_VISIBLE (shell->statusbar))
|
||||
return gimp_progress_message (GIMP_PROGRESS (shell->statusbar), gimp,
|
||||
severity, domain, message);
|
||||
switch (severity)
|
||||
{
|
||||
case GIMP_MESSAGE_ERROR:
|
||||
/* error messages are never handled here */
|
||||
return FALSE;
|
||||
|
||||
return FALSE;
|
||||
case GIMP_MESSAGE_WARNING:
|
||||
/* warning messages go to the statusbar, if it's visible */
|
||||
if (! GTK_WIDGET_VISIBLE (shell->statusbar))
|
||||
return FALSE;
|
||||
/* else fallthrough */
|
||||
|
||||
case GIMP_MESSAGE_INFO:
|
||||
/* info messages go to the statusbar, no matter if it's visible or not */
|
||||
return gimp_progress_message (GIMP_PROGRESS (shell->statusbar), gimp,
|
||||
severity, domain, message);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue