minor cleanup.

2006-09-11  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-selection.c: minor cleanup.
This commit is contained in:
Sven Neumann 2006-09-11 10:54:17 +00:00 committed by Sven Neumann
parent 0c36c0ee54
commit 7a21918c54
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2006-09-11 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-selection.c: minor cleanup.
2006-09-11 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c

View File

@ -273,7 +273,8 @@ selection_stop (Selection *selection)
static void
selection_pause (Selection *selection)
{
selection_stop (selection);
if (selection->paused == 0)
selection_stop (selection);
selection->paused++;
}
@ -281,13 +282,10 @@ selection_pause (Selection *selection)
static void
selection_resume (Selection *selection)
{
if (selection->paused == 1 && selection->visible)
{
selection->timeout = g_idle_add ((GSourceFunc) selection_start_timeout,
selection);
}
selection->paused--;
if (selection->paused == 0)
selection_start (selection, FALSE);
}
static void