[gtk+/wip/matthiasc/kill-event-signals: 35/62] 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: 35/62] testinput: Drop some no-op signal handlers
- Date: Tue, 2 Jan 2018 04:54:44 +0000 (UTC)
commit 37a29ecc315597547b90d1460e52e9eab5538ea2
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 20358f8..e7a51bb 100644
--- a/tests/testinput.c
+++ b/tests/testinput.c
@@ -228,21 +228,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)
{
@@ -294,11 +279,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]