put overly picky sanity checks into #ifdef GIMP_UNSTABLE ... #endif so we

2004-02-08  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptoolcontrol.c (gimp_tool_control_activate)
	(gimp_tool_control_halt): put overly picky sanity checks into
	#ifdef GIMP_UNSTABLE ... #endif so we won't get these harmless
	tool warnings from the stable version (bug #121074).
This commit is contained in:
Sven Neumann 2004-02-08 21:46:30 +00:00 committed by Sven Neumann
parent b15707c4e9
commit d298be7a8c
2 changed files with 30 additions and 19 deletions

View File

@ -1,3 +1,10 @@
2004-02-08 Sven Neumann <sven@gimp.org>
* app/tools/gimptoolcontrol.c (gimp_tool_control_activate)
(gimp_tool_control_halt): put overly picky sanity checks into
#ifdef GIMP_UNSTABLE ... #endif so we won't get these harmless
tool warnings from the stable version (bug #121074).
2004-02-08 Hans Breuer <hans@breuer.org>
* plug-ins/common/nova.c : access dest[alpha] only if (has_alpha);

View File

@ -122,7 +122,9 @@ void
gimp_tool_control_activate (GimpToolControl *control)
{
g_return_if_fail (GIMP_IS_TOOL_CONTROL (control));
#ifdef GIMP_UNSTABLE
g_return_if_fail (control->active == FALSE);
#endif
control->active = TRUE;
}
@ -131,7 +133,9 @@ void
gimp_tool_control_halt (GimpToolControl *control)
{
g_return_if_fail (GIMP_IS_TOOL_CONTROL (control));
#ifdef GIMP_UNSTABLE
g_return_if_fail (control->active == TRUE);
#endif
control->active = FALSE;
}