Matthias Clasen
c5bffb9fb5
builder: Drop empty text chunks when precompiling
...
These don't add any value either.
2021-12-14 01:21:06 -05:00
Matthias Clasen
c7afa5452b
builder: Drop irrelevant whitespace in precompile
...
Drop text nodes that won't contribute to the end result.
This gets rid of a lot of text nodes in the replay.
2021-12-14 00:35:35 -05:00
Garrett Regier
fcb6adaaaa
builder: Use g_slice_free_chain() for strings in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
9c12b58e32
builder: Remove root special case from precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
6c8b505f93
builder: Avoid g_hash_table_get_values() in precompile
...
Embed the GList link in the RecordDataString.
2021-12-13 23:44:02 -05:00
Garrett Regier
8b228e7471
builder: Use a flexible array for attributes in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
4ce07f41ca
builder: Reduce memory usage in precompile
...
Split the Element and Text nodes into separate structures.
2021-12-13 23:44:02 -05:00
Garrett Regier
1bfd0e5e38
builder: Use a GQueue in precompile
...
This avoids g_list_last() and
embeds the GList link in the RecordDataTree.
2021-12-13 23:44:02 -05:00
Garrett Regier
b962d37f79
builder: Use a reasonable default string size in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
c6ecf02a07
builder: Embed text length in precompile
2021-12-13 23:44:02 -05:00
Garrett Regier
8b7d4b423c
builder: Combine attribute name and value allocations
2021-12-13 23:44:02 -05:00
Garrett Regier
83dc126565
builder: Use a string chunk for precompile
...
Also use an explicit length and avoid g_strndup().
2021-12-13 23:44:02 -05:00
Garrett Regier
f2d3d7e710
builder: Avoid double string lookup in precompile
2021-12-13 23:44:02 -05:00
Matthias Clasen
f991428cb9
builder: Use GMarkup properly
...
We must call end_parse to ensure we get errors
for incomplete documents.
2021-12-13 23:42:47 -05:00
Matthias Clasen
164443a99a
builder: Cosmetics
2021-09-18 14:14:55 -04:00
Matthias Clasen
91f7b9663f
gtk: Clean up docs syntax
...
Replace leftover gtk-doc syntax (#Type) with backquotes.
2021-05-22 17:25:26 -04:00
Florian Müllner
2715b3ec31
buildable: Make vfunc accessor functions private
...
With the exception of gtk_buildable_get_id(), those are only used
to construct objects from XML descriptions, which is functionality
internal to GTK.
The API is therefore unlikely to be missed, and keeping it internal
means they can no longer unintentionally shadow object methods in
bindings with less namespacing; for example it's currently ambiguous
whether `infoBar.add_child()` refers to gtk_info_bar_add_child() or
gtk_buildable_add_child().
https://gitlab.gnome.org/GNOME/gtk/-/issues/3191
2020-09-26 02:16:57 +02:00
Benjamin Otte
d375dce9f5
Replace "gchar" with "char"
2020-07-25 00:47:36 +02:00
Benjamin Otte
d7266b25ba
Replace "gint" with "int"
2020-07-25 00:47:36 +02:00
Alexander Larsson
ff23397701
GtkBuilder: Add support for precompiling builder xml
2019-09-10 12:08:20 -04:00