gimp r26101 - in trunk: . app/display



Author: neo
Date: Thu Jul 10 09:42:36 2008
New Revision: 26101
URL: http://svn.gnome.org/viewvc/gimp?rev=26101&view=rev

Log:
2008-07-10  Sven Neumann  <sven sven-sun berlin jpk com>

	* app/display/gimpdisplayshell-progress.c
	(gimp_display_shell_progress_message): swallow informational
	messages if there aren't handled by the statusbar.



Modified:
   trunk/ChangeLog
   trunk/app/display/gimpdisplayshell-progress.c

Modified: trunk/app/display/gimpdisplayshell-progress.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-progress.c	(original)
+++ trunk/app/display/gimpdisplayshell-progress.c	Thu Jul 10 09:42:36 2008
@@ -144,12 +144,17 @@
       /* warning messages go to the statusbar, if it's visible */
       if (! gimp_statusbar_get_visible (GIMP_STATUSBAR (shell->statusbar)))
         break;
-      /* else fallthrough */
+      else
+	return gimp_progress_message (GIMP_PROGRESS (shell->statusbar), gimp,
+				      severity, domain, message);
 
     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);
+      /* info messages go to the statusbar;
+       * if they are not handled there, they are swallowed
+       */
+      gimp_progress_message (GIMP_PROGRESS (shell->statusbar), gimp,
+			     severity, domain, message);
+      return TRUE;
     }
 
   return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]