ignore double clicks so we don't grab the pointer away from the curves

2004-02-12  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphistogramview.c (gimp_histogram_view_button_press):
	ignore double clicks so we don't grab the pointer away from the
	curves dialog. Fixes bug #132356.

	* app/tools/gimpcurvestool.c (curves_graph_events): ignore button
	press and release events from all buttons except the first one.
This commit is contained in:
Michael Natterer 2004-02-12 13:12:56 +00:00 committed by Michael Natterer
parent 8312e82ad8
commit cfd6fb0a8e
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2004-02-12 Michael Natterer <mitch@gimp.org>
* app/widgets/gimphistogramview.c (gimp_histogram_view_button_press):
ignore double clicks so we don't grab the pointer away from the
curves dialog. Fixes bug #132356.
* app/tools/gimpcurvestool.c (curves_graph_events): ignore button
press and release events from all buttons except the first one.
2004-02-12 Michael Natterer <mitch@gimp.org>
Make sure that non-indexed images never have a colormap.

View File

@ -922,6 +922,9 @@ curves_graph_events (GtkWidget *widget,
case GDK_BUTTON_PRESS:
bevent = (GdkEventButton *) event;
if (bevent->button != 1)
return TRUE;
new_cursor = GDK_TCROSS;
switch (c_tool->curves->curve_type[c_tool->channel])
@ -963,6 +966,11 @@ curves_graph_events (GtkWidget *widget,
return TRUE;
case GDK_BUTTON_RELEASE:
bevent = (GdkEventButton *) event;
if (bevent->button != 1)
return TRUE;
new_cursor = GDK_FLEUR;
c_tool->grab_point = -1;

View File

@ -386,7 +386,7 @@ gimp_histogram_view_button_press (GtkWidget *widget,
{
GimpHistogramView *view = GIMP_HISTOGRAM_VIEW (widget);
if (bevent->button == 1)
if (bevent->type == GDK_BUTTON_PRESS && bevent->button == 1)
{
gint width;