while the statusbar is being used as a progress bar, only show progress
2007-03-10 Sven Neumann <sven@gimp.org> * app/display/gimpstatusbar.c (gimp_statusbar_update): while the statusbar is being used as a progress bar, only show progress messages. svn path=/trunk/; revision=22096
This commit is contained in:

committed by
Sven Neumann

parent
8fd67e0e95
commit
414eb93d72
@ -1,3 +1,9 @@
|
||||
2007-03-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpstatusbar.c (gimp_statusbar_update): while the
|
||||
statusbar is being used as a progress bar, only show progress
|
||||
messages.
|
||||
|
||||
2007-03-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/plug-in/gimppluginprocedure.[ch]: cache the result of
|
||||
|
@ -417,6 +417,16 @@ gimp_statusbar_update (GimpStatusbar *statusbar)
|
||||
{
|
||||
GimpStatusbarMsg *msg = statusbar->messages->data;
|
||||
|
||||
/* only allow progress messages while the progress is active */
|
||||
if (statusbar->progress_active)
|
||||
{
|
||||
guint context_id = gimp_statusbar_get_context_id (statusbar,
|
||||
"progress");
|
||||
|
||||
if (context_id != msg->context_id)
|
||||
return;
|
||||
}
|
||||
|
||||
text = msg->text;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user