diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-11 04:01:55 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-11 04:25:11 +0100 |
commit | d65d5d0a84bcbb8fd3fa326336f07d1d7d2afa94 (patch) | |
tree | dfaf3e415b665b9e5b806abd689ec6ccd9b555a5 /gtk/gtktexttag.c | |
parent | 52424d86405676bc4d6978e2114ebd0ecf34cfd3 (diff) | |
download | gtk+-d65d5d0a84bcbb8fd3fa326336f07d1d7d2afa94.tar.gz |
gtktexttag: Remove GtkTextTag::event and gtk_text_tag_event()
GtkSourceView is not using it, so it's unneeded. And it's certainly
diving deep into event internals of GtkTextView which hinders a proper
gesturization.
Diffstat (limited to 'gtk/gtktexttag.c')
-rw-r--r-- | gtk/gtktexttag.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c index e149e81ff5..d6c1a552c9 100644 --- a/gtk/gtktexttag.c +++ b/gtk/gtktexttag.c @@ -83,11 +83,6 @@ #include "gtktypebuiltins.h" enum { - EVENT, - LAST_SIGNAL -}; - -enum { PROP_0, /* Construct args */ PROP_NAME, @@ -180,8 +175,6 @@ static void gtk_text_tag_get_property (GObject *object, GValue *value, GParamSpec *pspec); -static guint signals[LAST_SIGNAL] = { 0 }; - G_DEFINE_TYPE_WITH_PRIVATE (GtkTextTag, gtk_text_tag, G_TYPE_OBJECT) static void @@ -803,35 +796,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) ADD_SET_PROP ("font-features-set", PROP_FONT_FEATURES_SET, P_("Font features set"), P_("Whether this tag affects font features")); - - /** - * GtkTextTag::event: - * @tag: the #GtkTextTag on which the signal is emitted - * @object: the object the event was fired from (typically a #GtkTextView) - * @event: the event which triggered the signal - * @iter: a #GtkTextIter pointing at the location the event occurred - * - * The ::event signal is emitted when an event occurs on a region of the - * buffer marked with this tag. - * - * Returns: %TRUE to stop other handlers from being invoked for the - * event. %FALSE to propagate the event further. - */ - signals[EVENT] = - g_signal_new (I_("event"), - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GtkTextTagClass, event), - _gtk_boolean_handled_accumulator, NULL, - _gtk_marshal_BOOLEAN__OBJECT_BOXED_BOXED, - G_TYPE_BOOLEAN, - 3, - G_TYPE_OBJECT, - GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE, - GTK_TYPE_TEXT_ITER); - g_signal_set_va_marshaller (signals[EVENT], - G_OBJECT_CLASS_TYPE (object_class), - _gtk_marshal_BOOLEAN__OBJECT_BOXED_BOXEDv); } static void @@ -2066,40 +2030,6 @@ gtk_text_tag_set_priority (GtkTextTag *tag, } /** - * gtk_text_tag_event: - * @tag: a #GtkTextTag - * @event_object: object that received the event, such as a widget - * @event: the event - * @iter: location where the event was received - * - * Emits the “event” signal on the #GtkTextTag. - * - * Returns: result of signal emission (whether the event was handled) - **/ -gboolean -gtk_text_tag_event (GtkTextTag *tag, - GObject *event_object, - GdkEvent *event, - const GtkTextIter *iter) -{ - gboolean retval = FALSE; - - g_return_val_if_fail (GTK_IS_TEXT_TAG (tag), FALSE); - g_return_val_if_fail (G_IS_OBJECT (event_object), FALSE); - g_return_val_if_fail (event != NULL, FALSE); - - g_signal_emit (tag, - signals[EVENT], - 0, - event_object, - event, - iter, - &retval); - - return retval; -} - -/** * gtk_text_tag_changed: * @tag: a #GtkTextTag. * @size_changed: whether the change affects the #GtkTextView layout. |