mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
tests: Fix testlogout
Stop using GtkApplication::quit signal.
This commit is contained in:
parent
e0d36d1f2d
commit
7aeb504652
@ -132,14 +132,6 @@ activate (GtkApplication *app,
|
|||||||
gtk_application_add_window (app, GTK_WINDOW (win));
|
gtk_application_add_window (app, GTK_WINDOW (win));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
quit (GtkApplication *app,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
g_print ("Received quit\n");
|
|
||||||
gtk_widget_destroy (win);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@ -150,8 +142,6 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
g_signal_connect (app, "activate",
|
g_signal_connect (app, "activate",
|
||||||
G_CALLBACK (activate), NULL);
|
G_CALLBACK (activate), NULL);
|
||||||
g_signal_connect (app, "quit",
|
|
||||||
G_CALLBACK (quit), NULL);
|
|
||||||
|
|
||||||
g_application_run (G_APPLICATION (app), argc, argv);
|
g_application_run (G_APPLICATION (app), argc, argv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user