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.
This commit is contained in:
CDT 1998 Larry Ewing 1998-08-15 22:03:32 +00:00 committed by Larry Ewing
parent 01e6a823ad
commit ae49b4f259
5 changed files with 39 additions and 8 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}