summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-11-19 23:25:45 +0000
committerMatthias Clasen <mclasen@redhat.com>2022-11-19 23:25:45 +0000
commit9cdeff6a1854c4f2376c388ab4c53ad5b7e1fce4 (patch)
treef9c8499dd34de208628fb37ce6a1c328d323a97b
parent9ac36cea3ca70fe981745dbea7e202e1a3515684 (diff)
parentb7a1941ab5e2df3ec7f8c04afb0d0ade596b345c (diff)
downloadgtk+-9cdeff6a1854c4f2376c388ab4c53ad5b7e1fce4.tar.gz
Merge branch 'replace-deprecations' into 'gtk-3-24'
examples, tests: Replace deprecations See merge request GNOME/gtk!5235
-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",