allow the plug-in a few mistakes before actually warning
svn path=/trunk/; revision=22403
This commit is contained in:
@ -339,8 +339,11 @@ gimp_progress_update (gdouble percentage)
|
|||||||
if (! changed)
|
if (! changed)
|
||||||
{
|
{
|
||||||
static gboolean warned = FALSE;
|
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_printerr ("%s is updating the progress too often\n",
|
||||||
g_get_prgname ());
|
g_get_prgname ());
|
||||||
|
Reference in New Issue
Block a user