summaryrefslogtreecommitdiff
path: root/gio/gapplication.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-07-24 16:10:33 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2022-07-25 22:30:22 +0100
commit09234b50fed25f5a7fdd88c9f9a2f2cd855b9072 (patch)
tree04755e8694ea6ff66cb56f5460e1cbef69f56375 /gio/gapplication.c
parent6629948adcda40f2d1bb92812e578c2bfa590977 (diff)
Introduce G_APPLICATION_DEFAULT_FLAGS
Enumeration members should either have the name of the type as their prefix, or they should all have the same prefix. The "default flags" enumeration member for GApplicationFlags is unfortunately named G_APPLICATION_FLAGS_NONE, while every other member of the same type has a G_APPLICATION prefix. The result is that the nick name of the enumeration member is "flags-none", and that language bindings will have to use something like Gio.ApplicationFlags.FLAGS_NONE. To fix this API wart, we can deprecate the FLAGS_NONE member, and add a new DEFAULT_FLAGS.
Diffstat (limited to 'gio/gapplication.c')
-rw-r--r--gio/gapplication.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 77fde804a..1d602c763 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -1486,7 +1486,7 @@ g_application_class_init (GApplicationClass *class)
g_param_spec_flags ("flags",
P_("Application flags"),
P_("Flags specifying the behaviour of the application"),
- G_TYPE_APPLICATION_FLAGS, G_APPLICATION_FLAGS_NONE,
+ G_TYPE_APPLICATION_FLAGS, G_APPLICATION_DEFAULT_FLAGS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_RESOURCE_BASE_PATH,