summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkbarkhon Variskhanov <akbarkhon.variskhanov@gmail.com>2022-11-19 23:23:50 +0500
committerAkbarkhon Variskhanov <akbarkhon.variskhanov@gmail.com>2022-11-19 23:23:50 +0500
commitb7a1941ab5e2df3ec7f8c04afb0d0ade596b345c (patch)
tree9386d10bfff14d2f4f4c8c958fd41b8f4d25672c
parent433b72fa21b93fb7155b3672a8ded6e8afb098e3 (diff)
downloadgtk+-b7a1941ab5e2df3ec7f8c04afb0d0ade596b345c.tar.gz
examples, tests: Replace deprecations
‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead.
-rw-r--r--examples/drawing.c2
-rw-r--r--examples/grid-packing.c2
-rw-r--r--examples/hello-world.c2
-rw-r--r--examples/search-bar.c2
-rw-r--r--examples/window-default.c2
-rw-r--r--tests/testinfobar.c2
-rw-r--r--tests/testlist4.c2
-rw-r--r--tests/testmodelbutton.c2
8 files changed, 8 insertions, 8 deletions
diff --git a/examples/drawing.c b/examples/drawing.c
index cfdcab3c46..01ef670df6 100644
--- a/examples/drawing.c
+++ b/examples/drawing.c
@@ -182,7 +182,7 @@ main (int argc,
GtkApplication *app;
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);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
diff --git a/examples/grid-packing.c b/examples/grid-packing.c
index 2d9db4fb90..d651e16195 100644
--- a/examples/grid-packing.c
+++ b/examples/grid-packing.c
@@ -66,7 +66,7 @@ main (int argc,
GtkApplication *app;
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);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
diff --git a/examples/hello-world.c b/examples/hello-world.c
index 843b9b2d85..13ef85f24c 100644
--- a/examples/hello-world.c
+++ b/examples/hello-world.c
@@ -37,7 +37,7 @@ main (int argc,
GtkApplication *app;
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);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
diff --git a/examples/search-bar.c b/examples/search-bar.c
index 16cacdbddb..642ff27bb8 100644
--- a/examples/search-bar.c
+++ b/examples/search-bar.c
@@ -50,7 +50,7 @@ main (gint argc,
GtkApplication *app;
app = gtk_application_new ("org.gtk.Example.GtkSearchBar",
- G_APPLICATION_FLAGS_NONE);
+ G_APPLICATION_DEFAULT_FLAGS);
g_signal_connect (app, "activate",
G_CALLBACK (activate_cb), NULL);
diff --git a/examples/window-default.c b/examples/window-default.c
index 3bb80f5105..4bc800a888 100644
--- a/examples/window-default.c
+++ b/examples/window-default.c
@@ -19,7 +19,7 @@ main (int argc,
GtkApplication *app;
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);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
diff --git a/tests/testinfobar.c b/tests/testinfobar.c
index 607b806ca0..812feae62a 100644
--- a/tests/testinfobar.c
+++ b/tests/testinfobar.c
@@ -100,7 +100,7 @@ main (int argc,
int result;
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);
result = g_application_run (G_APPLICATION (application), argc, argv);
diff --git a/tests/testlist4.c b/tests/testlist4.c
index a8e0ddc42f..6c792445c9 100644
--- a/tests/testlist4.c
+++ b/tests/testlist4.c
@@ -202,7 +202,7 @@ test_app_new (void)
test_app = g_object_new (test_app_get_type (),
"application-id", "org.gtk.testlist4",
- "flags", G_APPLICATION_FLAGS_NONE,
+ "flags", G_APPLICATION_DEFAULT_FLAGS,
NULL);
return test_app;
diff --git a/tests/testmodelbutton.c b/tests/testmodelbutton.c
index ed6163fadb..846226538c 100644
--- a/tests/testmodelbutton.c
+++ b/tests/testmodelbutton.c
@@ -98,7 +98,7 @@ main (int argc,
char *argv[])
{
GtkApplication *application = gtk_application_new ("org.gtk.test.modelbutton",
- G_APPLICATION_FLAGS_NONE);
+ G_APPLICATION_DEFAULT_FLAGS);
int result;
g_signal_connect (application, "activate",