mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
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:
parent
8312e82ad8
commit
cfd6fb0a8e
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue