[gtk+/wip/matthiasc/kill-event-signals: 97/126] Drop ::event-after
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/kill-event-signals: 97/126] Drop ::event-after
- Date: Mon, 15 Jan 2018 13:07:58 +0000 (UTC)
commit aa87ad1d98c9f3f670fd2154e794ba6b7e7f9192
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 2 18:03:59 2018 -0500
Drop ::event-after
This signal is not used in GTK+, and we are reducing the
amount of widget signals devoted to events in favor of
event controllers.
gtk/gtkwidget.c | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a92f258..8aa7c4b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -489,7 +489,6 @@ enum {
MOVE_FOCUS,
KEYNAV_FAILED,
EVENT,
- EVENT_AFTER,
BUTTON_PRESS_EVENT,
BUTTON_RELEASE_EVENT,
MOTION_NOTIFY_EVENT,
@@ -1902,26 +1901,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
_gtk_marshal_BOOLEAN__OBJECTv);
/**
- * GtkWidget::event-after:
- * @widget: the object which received the signal.
- * @event: the #GdkEvent which triggered this signal
- *
- * After the emission of the #GtkWidget::event signal and (optionally)
- * the second more specific signal, ::event-after will be emitted
- * regardless of the previous two signals handlers return values.
- *
- */
- widget_signals[EVENT_AFTER] =
- g_signal_new (I_("event-after"),
- G_TYPE_FROM_CLASS (klass),
- G_SIGNAL_DEPRECATED,
- 0,
- NULL, NULL,
- NULL,
- G_TYPE_NONE, 1,
- GDK_TYPE_EVENT);
-
- /**
* GtkWidget::button-press-event:
* @widget: the object which received the signal.
* @event: (type Gdk.EventButton): the #GdkEventButton which triggered
@@ -6242,10 +6221,6 @@ gtk_widget_emit_event_signals (GtkWidget *widget,
return_val |= handled;
}
}
- if (WIDGET_REALIZED_FOR_EVENT (widget, event))
- g_signal_emit (widget, widget_signals[EVENT_AFTER], 0, event);
- else
- return_val = TRUE;
g_object_unref (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]