summaryrefslogtreecommitdiff
path: root/tests/testpopup.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-12-31 14:19:34 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-16 14:14:09 -0500
commit3cb93a479afe5b1d9664e5064fa16344ce2e5cd7 (patch)
treefbbb28d9bc40347c2279ac6687a2b43e678d15d8 /tests/testpopup.c
parent1e8a3369934b54899bcb355021cd99ea95337473 (diff)
downloadgtk+-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.c6
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);