summaryrefslogtreecommitdiff
path: root/tests/testentryicons.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2018-06-06 13:52:08 +0200
committerCarlos Garnacho <carlosg@gnome.org>2018-06-21 12:50:57 +0200
commite08e15ba51c660c53e5658fce9a5d117668af4b4 (patch)
treedfc116d432ca65324a6edb6c1dd34c12fd5cd408 /tests/testentryicons.c
parent7048362e6e0bdda3b7925d3b4eeb01c85870f4bc (diff)
downloadgtk+-e08e15ba51c660c53e5658fce9a5d117668af4b4.tar.gz
gtkentry: Use gestures for entry icons
Instead of doing all handling manually in the ::event vfunc, set up drag/multipress gestures on icon images, and implement emission of ::icon-press/release and DnD there. As a side effect, the GdkEvent field in ::icon-press/release signals has been dropped. Callers that might be interested on it may still use gtk_get_current_event*().
Diffstat (limited to 'tests/testentryicons.c')
-rw-r--r--tests/testentryicons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testentryicons.c b/tests/testentryicons.c
index 245ab1da2c..3395c879ae 100644
--- a/tests/testentryicons.c
+++ b/tests/testentryicons.c
@@ -2,7 +2,7 @@
#include <stdio.h>
static void
-clear_pressed (GtkEntry *entry, gint icon, GdkEvent *event, gpointer data)
+clear_pressed (GtkEntry *entry, gint icon, gpointer data)
{
if (icon == GTK_ENTRY_ICON_SECONDARY)
gtk_entry_set_text (entry, "");