Matthias Clasen
c5e26dd591
gtk-builder-tool: Reshuffle --help
...
Use GOptionContext better.
2022-04-17 12:57:46 -04:00
Rafael Fontenelle
bed709a322
buildertool: use curly apostrophe
2022-01-24 17:04:17 +00:00
Matthias Clasen
66d8631c23
buildertool: Be more robust
...
Don't pass a NULL string to gtk_builder_value_from_string.
2021-12-13 15:09:48 -05:00
Matthias Clasen
5c1ad88137
builderparser: Be more robust
...
If a document contains no useful content,
just say so instead of crashing.
2021-12-13 15:09:48 -05:00
Matthias Clasen
6d24a2c942
buildertool: Be more robust
...
A lot of crashes in simplify can be avoided
if get_class_name does not return NULL.
2021-12-13 14:33:19 -05:00
Matthias Clasen
5222dc0cd1
buildertool: Fix a possible crash
...
We need to call g_markup_parse_context_end_parse
to catch incomplete documents that we might not
handle well later.
2021-12-13 13:52:50 -05:00
Benjamin Otte
27965d5fdc
builder-tool: Don't simplify enums too much
...
Store the enum nick, not the enum value. That way the file remains
human-readable.
Updated reftests to new expected output.
2021-11-21 02:19:57 +01:00
Matthias Clasen
fd0a5e3c23
buildertool: Fix a simplify issue
...
<lookup> elements can contain a type name, we can't just
ignore the pcdata content. This was breaking some of our
ui files when simplifying them.
2021-09-29 10:58:23 -04:00
Matthias Clasen
6f002678be
gtk-builder-tool: Simplify more
...
Simplify enum properties as well.
Update affected tests.
2021-09-29 10:58:21 -04:00
Matthias Clasen
5bc3923bae
builder-tool: Avoid <style> when converting
...
We can just set the css-classes property instead.
Update affected tests.
2021-09-28 17:48:50 -04:00
Matthias Clasen
98d2320c93
gtk-builder-tool: Replace can-focus with focusable
...
The focusable property has the meaning that can-focus had
in GTK 3.
Update tests, and mention this in the migration guide.
Fixes : #3638
2021-06-05 17:56:35 -04:00
Matthias Clasen
5fbfe5203c
buildertool: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
6a66ccd3e6
gtk-builder-tool: Avoid a crash with <placeholder/>
...
Not sure we can do much with a ui file that has
<placeholder/> elements littered throughout. But
at least we can avoid crashing while trying to
convert it.
Fixes : #3781
2021-03-23 15:25:53 -04:00
Matthias Clasen
ac0f524722
build: Redo the tools build
...
Move the tools directory to be toplevel, and instead of
recompiling sources twice, link them with the our new
static libgtk.a.
2021-01-28 12:27:07 -05:00