summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-01 20:09:06 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-01 20:09:06 +0100
commit9b0d9aa7a6897272be6fba030922f943b9201d04 (patch)
tree5140c238d5db0462e626b00183ad3802c662d1b9 /gtk/gtkbutton.c
parentd88c4417648a1d9ab3d121be84622887a21e0dbb (diff)
downloadgtk+-9b0d9aa7a6897272be6fba030922f943b9201d04.tar.gz
wayland: Remove unused variable
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index c4a91355c4..0c35ce2fb4 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -313,7 +313,6 @@ multipress_pressed_cb (GtkGestureMultiPress *gesture,
static gboolean
touch_release_in_button (GtkButton *button)
{
- GtkAllocation allocation;
GdkEvent *event;
gdouble x, y;
@@ -329,11 +328,10 @@ touch_release_in_button (GtkButton *button)
}
gdk_event_get_coords (event, &x, &y);
- gtk_widget_get_own_allocation (GTK_WIDGET (button), &allocation);
gdk_event_free (event);
- if (gdk_rectangle_contains_point (&allocation, x, y))
+ if (gtk_widget_contains (GTK_WIDGET (button), x, y));
return TRUE;
return FALSE;
@@ -370,17 +368,15 @@ multipress_gesture_update_cb (GtkGesture *gesture,
GtkButton *button)
{
GtkButtonPrivate *priv = button->priv;
- GtkAllocation allocation;
gboolean in_button;
gdouble x, y;
if (sequence != gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture)))
return;
- gtk_widget_get_own_allocation (GTK_WIDGET (button), &allocation);
gtk_gesture_get_point (gesture, sequence, &x, &y);
- in_button = gdk_rectangle_contains_point (&allocation, x, y);
+ in_button = gtk_widget_contains (GTK_WIDGET (button), x, y);
if (priv->in_button != in_button)
{