Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GNOME Photos GNOME Photos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 134
    • Issues 134
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • GNOME PhotosGNOME Photos
  • Issues
  • #61

Closed
Open
Created Mar 01, 2017 by Bugzilla@bugzilla-migration💬Reporter

Sanity check all GtkBuilder *.ui files at build-time

Submitted by Debarshi Ray @debarshir

Link to original bug (#779427)

Description

As GtkBuilder *.ui files get more widely used, it becomes more and more important to ensure their validity during the build. Otherwise it is hard to guarantee that the application will actually work at run-time.

Hitori does this. Here are the relevant snippets:

https://git.gnome.org/browse/hitori/tree/configure.ac#n51: PKG_CHECK_VAR([GTK_PREFIX],[gtk+-3.0],[prefix]) AC_PATH_PROG([XMLLINT],[xmllint])

https://git.gnome.org/browse/hitori/tree/Makefile.am#n95: check-builder: $(ui_data) [ "$(XMLLINT)" = "" ] ||
$(XMLLINT) --nonet --noblanks --noout --relaxng $(GTK_PREFIX)/share/gtk-3.0/gtkbuilder.rng $^ check-local: check-builder

Assignee
Assign to
Time tracking