gui: Port to Blueprint

This was mostly done with `blueprint-compiler port`.

Since Blueprint doesn't know about custom templates, I had to manually change some values from strings to literals.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/567>
This commit is contained in:
Jamie Gravendeel
2025-06-08 14:31:01 +02:00
parent 2aceaa816f
commit a509de8b1e
90 changed files with 3278 additions and 3867 deletions
+25
View File
@@ -8,10 +8,35 @@ subdir('views')
calendar_incs += include_directories('.')
blueprints = custom_target(
'blueprints',
input: files(
'gcal-calendar-list.blp',
'gcal-calendar-navigation-button.blp',
'gcal-event-popover.blp',
'gcal-event-widget.blp',
'gcal-meeting-row.blp',
'gcal-quick-add-popover.blp',
'gcal-search-button.blp',
'gcal-sync-indicator.blp',
'gcal-weather-settings.blp',
'gcal-window.blp',
),
output: '.',
command: [
find_program('blueprint-compiler'),
'batch-compile',
'@OUTPUT@',
'@CURRENT_SOURCE_DIR@',
'@INPUT@',
],
)
built_sources += gnome.compile_resources(
'gui-resources',
'gui.gresource.xml',
c_name: 'gui',
dependencies: blueprints,
)
sources += files(