removed "case GDK_CONFIGURE" because it's not needed and did "break"

2004-09-20  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorselect.c (gimp_color_select_xy_events):
	removed "case GDK_CONFIGURE" because it's not needed and did
	"break" instead of "return FALSE", causing random color changes
	when resizing and initially showing the widget.
This commit is contained in:
Michael Natterer 2004-09-20 00:17:38 +00:00 committed by Michael Natterer
parent 0025a969d6
commit bd6a0b3a67
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2004-09-20 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorselect.c (gimp_color_select_xy_events):
removed "case GDK_CONFIGURE" because it's not needed and did
"break" instead of "return FALSE", causing random color changes
when resizing and initially showing the widget.
2004-09-20 Sven Neumann <sven@gimp.org> 2004-09-20 Sven Neumann <sven@gimp.org>
* Made 2.1.5 release. * Made 2.1.5 release.

View File

@ -714,10 +714,6 @@ gimp_color_select_xy_events (GtkWidget *widget,
} }
break; break;
case GDK_CONFIGURE:
gimp_color_select_update (select, UPDATE_XY_COLOR);
break;
default: default:
return FALSE; return FALSE;
} }
@ -737,6 +733,7 @@ gimp_color_select_xy_events (GtkWidget *widget,
select->pos[1] = CLAMP (select->pos[1], 0, 255); select->pos[1] = CLAMP (select->pos[1], 0, 255);
gimp_color_select_draw_xy_marker (select, NULL); gimp_color_select_draw_xy_marker (select, NULL);
gimp_color_select_update (select, UPDATE_VALUES | UPDATE_CALLER); gimp_color_select_update (select, UPDATE_VALUES | UPDATE_CALLER);
return TRUE; return TRUE;