removed factory templates

This commit is contained in:
me 2024-10-10 10:18:54 +00:00
parent 4079b98e7a
commit e46ab63ef8
7 changed files with 12 additions and 38 deletions

View file

@ -21,7 +21,12 @@ template $WaveletArtistList: Adw.NavigationPage {
child: ScrolledWindow {
ListView list_view {
factory: BuilderListItemFactory {
resource: "/eu/callcc/Wavelet/artist_list_artist.ui";
template ListItem {
child: Label {
halign: start;
label: bind template.item as <$WaveletArtist>.name;
};
}
};
}
};

View file

@ -1,9 +0,0 @@
using Gtk 4.0;
template ListItem {
child: Label {
halign: start;
label: bind template.item as <$WaveletArtist>.name;
};
}

View file

@ -21,22 +21,16 @@ wavelet_deps = [
blueprints = custom_target('blueprints',
input: files(
'artist_list.blp',
'artist_list_artist.blp',
'play_queue.blp',
'play_queue_song.blp',
'setup.blp',
'song_list.blp',
'song_list_song.blp',
'window.blp',
),
output: [
'artist_list.ui',
'artist_list_artist.ui',
'play_queue.ui',
'play_queue_song.ui',
'setup.ui',
'song_list.ui',
'song_list_song.ui',
'window.ui',
],
command: [

View file

@ -15,7 +15,12 @@ template $WaveletPlayQueue: Adw.NavigationPage {
]
factory: BuilderListItemFactory {
resource: "/eu/callcc/Wavelet/play_queue_song.ui";
template ListItem {
child: Label {
halign: start;
label: bind template.item as <$WaveletSong>.name;
};
}
};
}
}

View file

@ -1,9 +0,0 @@
using Gtk 4.0;
template ListItem {
child: Label {
halign: start;
label: bind template.item as <$WaveletSong>.name;
};
}

View file

@ -1,9 +0,0 @@
using Gtk 4.0;
template ListItem {
child: Label {
halign: start;
label: bind template.item as <$WaveletSong>.title;
};
}

View file

@ -2,13 +2,10 @@
<gresources>
<gresource prefix="/eu/callcc/Wavelet">
<file preprocess="xml-stripblanks">artist_list.ui</file>
<file preprocess="xml-stripblanks">artist_list_artist.ui</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file preprocess="xml-stripblanks">play_queue.ui</file>
<file preprocess="xml-stripblanks">play_queue_song.ui</file>
<file preprocess="xml-stripblanks">setup.ui</file>
<file preprocess="xml-stripblanks">song_list.ui</file>
<file preprocess="xml-stripblanks">song_list_song.ui</file>
<file preprocess="xml-stripblanks">window.ui</file>
</gresource>
</gresources>