[gtk+/wip/matthiasc/kill-event-signals: 80/130] testinput: Drop some no-op signal handlers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/kill-event-signals: 80/130] testinput: Drop some no-op signal handlers
- Date: Sat, 6 Jan 2018 23:42:25 +0000 (UTC)
commit 92673b994d36dead3edd248d6b0bbc43b66e1459
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 1 10:25:57 2018 -0500
testinput: Drop some no-op signal handlers
These were not doing anything.
tests/testinput.c | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/tests/testinput.c b/tests/testinput.c
index 5143b11..4eb96a9 100644
--- a/tests/testinput.c
+++ b/tests/testinput.c
@@ -235,21 +235,6 @@ motion_notify_event (GtkWidget *widget, GdkEventMotion *event)
return TRUE;
}
-/* We track the next two events to know when we need to draw a
- cursor */
-
-static gint
-proximity_out_event (GtkWidget *widget, GdkEventProximity *event)
-{
- return TRUE;
-}
-
-static gint
-leave_notify_event (GtkWidget *widget, GdkEventCrossing *event)
-{
- return TRUE;
-}
-
void
quit (void)
{
@@ -299,11 +284,6 @@ main (int argc, char *argv[])
g_signal_connect (drawing_area, "key_press_event",
G_CALLBACK (key_press_event), NULL);
- g_signal_connect (drawing_area, "leave_notify_event",
- G_CALLBACK (leave_notify_event), NULL);
- g_signal_connect (drawing_area, "proximity_out_event",
- G_CALLBACK (proximity_out_event), NULL);
-
gtk_widget_set_can_focus (drawing_area, TRUE);
gtk_widget_grab_focus (drawing_area);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]