[gtk/gtk-3-24: 1/2] Fix event type annotation on GtkEntry::icon-press / icon-release




commit ec1a48e830b63272ee4cb505aa7f902cc29699e4
Author: Sebastian Dröge <sebastian centricular com>
Date:   Thu Sep 3 09:36:00 2020 +0300

    Fix event type annotation on GtkEntry::icon-press / icon-release
    
    This is not only a GdkEventButton but can also be a GdkEventTouch.
    Having this annotation wrong causes bindings code to fail whenever a
    wrongly typed event comes through.

 gtk/gtkentry.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index e3d512ba6f..864c217408 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1851,7 +1851,7 @@ gtk_entry_class_init (GtkEntryClass *class)
    * GtkEntry::icon-press:
    * @entry: The entry on which the signal is emitted
    * @icon_pos: The position of the clicked icon
-   * @event: (type Gdk.EventButton): the button press event
+   * @event: the button press event
    *
    * The ::icon-press signal is emitted when an activatable icon
    * is clicked.
@@ -1873,7 +1873,7 @@ gtk_entry_class_init (GtkEntryClass *class)
    * GtkEntry::icon-release:
    * @entry: The entry on which the signal is emitted
    * @icon_pos: The position of the clicked icon
-   * @event: (type Gdk.EventButton): the button release event
+   * @event: the button release event
    *
    * The ::icon-release signal is emitted on the button release from a
    * mouse click over an activatable icon.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]