gtk-builder-tool: Validate templates

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 30 April 2015 05:19 UTC

Catch an error that indicates the file looks like a template, and then try again, this time with the template parsing API of GtkBuilder. This is a little iffy, since we need to create a 'fake' type and instance to pass in, but it works ok in simple tests.

ec05339 gtk-builder-tool: Validate templates
gtk/gtk-builder-tool.c | 127 +++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 115 insertions(+), 12 deletions(-)

Upstream: git.gnome.org


  • Share