allow the plug-in a few mistakes before actually warning

svn path=/trunk/; revision=22403
This commit is contained in:
Sven Neumann 2007-05-04 10:31:53 +00:00
parent 5debc2d7ec
commit a3ca4bfac5
1 changed files with 4 additions and 1 deletions

View File

@ -339,8 +339,11 @@ gimp_progress_update (gdouble percentage)
if (! changed)
{
static gboolean warned = FALSE;
static gint count = 0;
if (! warned)
count++;
if (count > 3 && ! warned)
{
g_printerr ("%s is updating the progress too often\n",
g_get_prgname ());