[gtk+] tests: Avoid a use of ::map-event
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Avoid a use of ::map-event
- Date: Tue, 16 Jan 2018 19:16:05 +0000 (UTC)
commit 3cb93a479afe5b1d9664e5064fa16344ce2e5cd7
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 31 14:19:34 2017 -0500
tests: Avoid a use of ::map-event
We can use the ::map signal here instead.
tests/animated-resizing.c | 7 +++----
tests/testpopup.c | 6 ++----
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/tests/animated-resizing.c b/tests/animated-resizing.c
index 939840c..88c300e 100644
--- a/tests/animated-resizing.c
+++ b/tests/animated-resizing.c
@@ -147,8 +147,7 @@ tick_callback (GtkWidget *widget,
}
static gboolean
-on_map_event (GtkWidget *widget,
- GdkEventAny *event)
+on_map (GtkWidget *widget)
{
gtk_widget_add_tick_callback (window, tick_callback, NULL, NULL);
@@ -200,8 +199,8 @@ main(int argc, char **argv)
g_signal_connect (window, "destroy",
G_CALLBACK (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);
on_frame (0.);
display = gtk_widget_get_display (window);
diff --git a/tests/testpopup.c b/tests/testpopup.c
index 3e0bfd0..0e564ef 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]