mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 04:09:20 +02:00
Move GStrv typedef to glib.h instead of gobject.h
GStrv was historically only needed for the boxed G_TYPE_STRV, but it is now useful for g_auto(GStrv) as well. This is not an ABI change. https://bugzilla.gnome.org/show_bug.cgi?id=755355
This commit is contained in:
@@ -2343,8 +2343,10 @@
|
||||
* {
|
||||
* g_auto(GQueue) queue = G_QUEUE_INIT;
|
||||
* g_auto(GVariantBuilder) builder;
|
||||
* g_auto(GStrv) strv;
|
||||
*
|
||||
* g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT);
|
||||
* strv = g_strsplit("a:b:c", ":", -1);
|
||||
*
|
||||
* ...
|
||||
*
|
||||
|
Reference in New Issue
Block a user