diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-12-31 14:19:34 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-01-16 14:14:09 -0500 |
commit | 3cb93a479afe5b1d9664e5064fa16344ce2e5cd7 (patch) | |
tree | fbbb28d9bc40347c2279ac6687a2b43e678d15d8 /tests/testpopup.c | |
parent | 1e8a3369934b54899bcb355021cd99ea95337473 (diff) | |
download | gtk+-3cb93a479afe5b1d9664e5064fa16344ce2e5cd7.tar.gz |
tests: Avoid a use of ::map-event
We can use the ::map signal here instead.
Diffstat (limited to 'tests/testpopup.c')
-rw-r--r-- | tests/testpopup.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testpopup.c b/tests/testpopup.c index 3e0bfd0eee..0e564efee5 100644 --- a/tests/testpopup.c +++ b/tests/testpopup.c @@ -29,9 +29,7 @@ place_popup (GtkWidget *parent, } static gboolean -on_map_event (GtkWidget *parent, - GdkEvent *event, - gpointer data) +on_map (GtkWidget *parent) { GtkWidget *popup, *da; @@ -59,7 +57,7 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (window, "destroy", gtk_main_quit, NULL); - g_signal_connect (window, "map-event", G_CALLBACK (on_map_event), NULL); + g_signal_connect (window, "map", G_CALLBACK (on_map), NULL); gtk_widget_show (window); |