examples, tests: Replace deprecations
‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead.
This commit is contained in:
parent
433b72fa21
commit
b7a1941ab5
@ -182,7 +182,7 @@ main (int argc,
|
|||||||
GtkApplication *app;
|
GtkApplication *app;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
|
app = gtk_application_new ("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS);
|
||||||
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
||||||
status = g_application_run (G_APPLICATION (app), argc, argv);
|
status = g_application_run (G_APPLICATION (app), argc, argv);
|
||||||
g_object_unref (app);
|
g_object_unref (app);
|
||||||
|
@ -66,7 +66,7 @@ main (int argc,
|
|||||||
GtkApplication *app;
|
GtkApplication *app;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
|
app = gtk_application_new ("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS);
|
||||||
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
||||||
status = g_application_run (G_APPLICATION (app), argc, argv);
|
status = g_application_run (G_APPLICATION (app), argc, argv);
|
||||||
g_object_unref (app);
|
g_object_unref (app);
|
||||||
|
@ -37,7 +37,7 @@ main (int argc,
|
|||||||
GtkApplication *app;
|
GtkApplication *app;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
|
app = gtk_application_new ("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS);
|
||||||
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
||||||
status = g_application_run (G_APPLICATION (app), argc, argv);
|
status = g_application_run (G_APPLICATION (app), argc, argv);
|
||||||
g_object_unref (app);
|
g_object_unref (app);
|
||||||
|
@ -50,7 +50,7 @@ main (gint argc,
|
|||||||
GtkApplication *app;
|
GtkApplication *app;
|
||||||
|
|
||||||
app = gtk_application_new ("org.gtk.Example.GtkSearchBar",
|
app = gtk_application_new ("org.gtk.Example.GtkSearchBar",
|
||||||
G_APPLICATION_FLAGS_NONE);
|
G_APPLICATION_DEFAULT_FLAGS);
|
||||||
g_signal_connect (app, "activate",
|
g_signal_connect (app, "activate",
|
||||||
G_CALLBACK (activate_cb), NULL);
|
G_CALLBACK (activate_cb), NULL);
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ main (int argc,
|
|||||||
GtkApplication *app;
|
GtkApplication *app;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
|
app = gtk_application_new ("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS);
|
||||||
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
|
||||||
status = g_application_run (G_APPLICATION (app), argc, argv);
|
status = g_application_run (G_APPLICATION (app), argc, argv);
|
||||||
g_object_unref (app);
|
g_object_unref (app);
|
||||||
|
@ -100,7 +100,7 @@ main (int argc,
|
|||||||
int result;
|
int result;
|
||||||
|
|
||||||
application = gtk_application_new ("org.gtk.test.infobar",
|
application = gtk_application_new ("org.gtk.test.infobar",
|
||||||
G_APPLICATION_FLAGS_NONE);
|
G_APPLICATION_DEFAULT_FLAGS);
|
||||||
g_signal_connect (application, "activate", G_CALLBACK (on_activate), NULL);
|
g_signal_connect (application, "activate", G_CALLBACK (on_activate), NULL);
|
||||||
|
|
||||||
result = g_application_run (G_APPLICATION (application), argc, argv);
|
result = g_application_run (G_APPLICATION (application), argc, argv);
|
||||||
|
@ -202,7 +202,7 @@ test_app_new (void)
|
|||||||
|
|
||||||
test_app = g_object_new (test_app_get_type (),
|
test_app = g_object_new (test_app_get_type (),
|
||||||
"application-id", "org.gtk.testlist4",
|
"application-id", "org.gtk.testlist4",
|
||||||
"flags", G_APPLICATION_FLAGS_NONE,
|
"flags", G_APPLICATION_DEFAULT_FLAGS,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
return test_app;
|
return test_app;
|
||||||
|
@ -98,7 +98,7 @@ main (int argc,
|
|||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
GtkApplication *application = gtk_application_new ("org.gtk.test.modelbutton",
|
GtkApplication *application = gtk_application_new ("org.gtk.test.modelbutton",
|
||||||
G_APPLICATION_FLAGS_NONE);
|
G_APPLICATION_DEFAULT_FLAGS);
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
g_signal_connect (application, "activate",
|
g_signal_connect (application, "activate",
|
||||||
|
Loading…
Reference in New Issue
Block a user