gesture: Remove gtk_gesture_get_last_event_type

This commit is contained in:
Carlos Garnacho 2014-05-06 18:18:10 +02:00
parent 8ab35016a6
commit 83d5795154

View File

@ -1029,35 +1029,6 @@ gtk_gesture_get_last_update_time (GtkGesture *gesture,
return TRUE;
};
/**
* gtk_gesture_get_last_event_type:
* @gesture: a #GtkGesture
* @sequence: a #GdkEventSequence
*
* Returns the last event type that was processed for @sequence.
*
* Returns: the last event type.
*
* Since: 3.14
**/
GdkEventType
gtk_gesture_get_last_event_type (GtkGesture *gesture,
GdkEventSequence *sequence)
{
GtkGesturePrivate *priv;
PointData *data;
g_return_val_if_fail (GTK_IS_GESTURE (gesture), GDK_NOTHING);
priv = gtk_gesture_get_instance_private (gesture);
if (!g_hash_table_lookup_extended (priv->points, sequence,
NULL, (gpointer *) &data))
return GDK_NOTHING;
return data->event->type;
}
/**
* gtk_gesture_get_bounding_box:
* @gesture: a #GtkGesture