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:
@@ -0,0 +1,27 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $GcalAlarmRow: Adw.ActionRow {
|
||||
ToggleButton volume_button {
|
||||
valign: center;
|
||||
icon-name: "audio-volume-high-symbolic";
|
||||
tooltip-text: _("Toggle Alarm Sound");
|
||||
notify::active => $on_sound_toggle_changed_cb(template) not-swapped;
|
||||
active: true;
|
||||
|
||||
styles [
|
||||
"flat",
|
||||
]
|
||||
}
|
||||
|
||||
Button remove_button {
|
||||
valign: center;
|
||||
icon-name: "edit-delete-symbolic";
|
||||
tooltip-text: _("Remove Alarm");
|
||||
clicked => $on_remove_button_clicked_cb(template) not-swapped;
|
||||
|
||||
styles [
|
||||
"flat",
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user