diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-15 21:04:58 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-21 00:47:53 -0500 |
commit | 64b9c6aaaa43193aa386cc7581bfc0ad852e9942 (patch) | |
tree | b362bb21093520b3f9813444c4a860058cbaa861 /gtk/gtkmain.c | |
parent | 61c32f3651219f997fffee68baae3244028b5cd4 (diff) | |
download | gtk+-64b9c6aaaa43193aa386cc7581bfc0ad852e9942.tar.gz |
main: Drop gtk_get_event_target
This is no longer used.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index a5580f2fdb..e8739efcf7 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -2351,47 +2351,6 @@ gtk_get_event_widget (const GdkEvent *event) return widget; } -/** - * gtk_get_event_target: - * @event: a #GdkEvent - * - * If @event is %NULL or the event was not associated with any widget, - * returns %NULL, otherwise returns the widget that is the deepmost - * receiver of the event. - * - * Returns: (transfer none) (nullable): the target widget, or %NULL - */ -GtkWidget * -gtk_get_event_target (const GdkEvent *event) -{ - return GTK_WIDGET (gdk_event_get_target (event)); -} - -/** - * gtk_get_event_target_with_type: - * @event: a #GdkEvent - * @type: the type to look for - * - * If @event is %NULL or the event was not associated with any widget, - * returns %NULL, otherwise returns first widget found from the event - * target to the toplevel that matches @type. - * - * Returns: (transfer none) (nullable): the widget in the target stack - * with the given type, or %NULL - */ -GtkWidget * -gtk_get_event_target_with_type (GdkEvent *event, - GType type) -{ - GtkWidget *target; - - target = gtk_get_event_target (event); - while (target && !g_type_is_a (G_OBJECT_TYPE (target), type)) - target = gtk_widget_get_parent (target); - - return target; -} - static gboolean propagate_event_up (GtkWidget *widget, GdkEvent *event, |