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:
Sven Neumann 2006-12-11 21:14:23 +00:00 committed by Sven Neumann
parent 5ef1749496
commit 5330b8aad5
2 changed files with 23 additions and 4 deletions

View file

@ -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.

View file

@ -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