Commit ae49b4f2 authored by CDT 1998  Larry Ewing's avatar CDT 1998 Larry Ewing Committed by Larry Ewing

added a debug warning to a case that previously caused a segfault. This

Sat Aug 15 16:53:45 CDT 1998  Larry Ewing  <lewing@gimp.org>

	* app/airbrush.c: added a debug warning to a case that previously
	caused a segfault.  This appears to be an xinput related problem
	where more than one button press can occur before a button release,
	so if you see a warning that tells you to contact me, please do.
parent 01e6a823
Sat Aug 15 16:53:45 CDT 1998 Larry Ewing <lewing@gimp.org>
* app/airbrush.c: added a debug warning to a case that previously
caused a segfault. This appears to be an xinput related problem
where more than one button press can occur before a button release,
so if you see a warning that tells you to contact me, please do.
Sat Aug 15 14:09:12 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* app/transform_core.c (transform_core_do): Fixed a merge error
......
......@@ -152,6 +152,12 @@ airbrush_paint_func (PaintCore *paint_core,
switch (state)
{
case INIT_PAINT :
// timer_state = OFF;
if (timer_state == ON)
{
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;
break;
......@@ -207,11 +213,11 @@ tools_new_airbrush ()
void
tools_free_airbrush (Tool *tool)
{
paint_core_free (tool);
if (timer_state == ON)
gtk_timeout_remove (timer);
timer_state = OFF;
paint_core_free (tool);
}
......
......@@ -152,6 +152,12 @@ airbrush_paint_func (PaintCore *paint_core,
switch (state)
{
case INIT_PAINT :
// timer_state = OFF;
if (timer_state == ON)
{
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;
break;
......@@ -207,11 +213,11 @@ tools_new_airbrush ()
void
tools_free_airbrush (Tool *tool)
{
paint_core_free (tool);
if (timer_state == ON)
gtk_timeout_remove (timer);
timer_state = OFF;
paint_core_free (tool);
}
......
......@@ -152,6 +152,12 @@ airbrush_paint_func (PaintCore *paint_core,
switch (state)
{
case INIT_PAINT :
// timer_state = OFF;
if (timer_state == ON)
{
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;
break;
......@@ -207,11 +213,11 @@ tools_new_airbrush ()
void
tools_free_airbrush (Tool *tool)
{
paint_core_free (tool);
if (timer_state == ON)
gtk_timeout_remove (timer);
timer_state = OFF;
paint_core_free (tool);
}
......
......@@ -152,6 +152,12 @@ airbrush_paint_func (PaintCore *paint_core,
switch (state)
{
case INIT_PAINT :
// timer_state = OFF;
if (timer_state == ON)
{
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;
break;
......@@ -207,11 +213,11 @@ tools_new_airbrush ()
void
tools_free_airbrush (Tool *tool)
{
paint_core_free (tool);
if (timer_state == ON)
gtk_timeout_remove (timer);
timer_state = OFF;
paint_core_free (tool);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment