Changes
4 changed files (+34/-7)
-
-
@@ -19,7 +19,7 @@ --><interface> <template class="PlacGtkAdwaitaBrowseItemNavigation" parent="GtkBox"> <property name="orientation">horizontal</property> <property name="spacing">4</property> <property name="spacing">8</property> <property name="margin-top">8</property> <binding name="margin-bottom"> <lookup name="margin-top" type="PlacGtkAdwaitaBrowseItemNavigation" />
-
@@ -28,6 +28,15 @@ <property name="margin-start">8</property><binding name="margin-end"> <lookup name="margin-start" type="PlacGtkAdwaitaBrowseItemNavigation" /> </binding> <child> <object class="PlacGtkAdwaitaArtwork" id="artwork"> <property name="visible">false</property> <property name="width">40</property> <binding name="height"> <lookup name="width">artwork</lookup> </binding> </object> </child> <child> <object class="GtkBox"> <property name="orientation">vertical</property>
-
-
-
@@ -102,7 +102,7 @@ }items.remove_all(); foreach (var item in action.items) { items.append(new BrowseItem.Row(item)); items.append(new BrowseItem.Row(item, conn)); } back.visible = action.level > 0;
-
-
-
@@ -24,10 +24,18 @@[GtkChild] private unowned Gtk.Label subtitle; [GtkChild] private unowned Artwork artwork; public Plac.Browse.Item item { get; construct; } public Navigation(Plac.Browse.Item item) { Object(item: item); public Plac.AsyncConnection? conn { get { return artwork.conn; } set construct { artwork.conn = value; } } public Navigation(Plac.Browse.Item item, Plac.AsyncConnection? conn = null) { Object(item: item, conn: conn); } construct {
-
@@ -35,6 +43,12 @@ title.label = item.title;if (item.subtitle != null) { subtitle.label = item.subtitle; subtitle.visible = true; } if (item.image_key != null) { artwork.conn = conn; artwork.image_key = item.image_key; artwork.visible = true; } } }
-
-
-
@@ -20,8 +20,12 @@ [GtkTemplate(ui = "/jp/pocka/plac/gtk-adwaita/ui/browse-item-row.ui")]class Row : Gtk.ListBoxRow { public Plac.Browse.Item item { get; construct; } public Row(Plac.Browse.Item item) { Object(item: item); public Plac.AsyncConnection? conn { get; construct; } public Row(Plac.Browse.Item item, Plac.AsyncConnection? conn = null) { Object(item: item, conn: conn); } construct {
-
@@ -30,7 +34,7 @@ if (this.activatable) {this.add_css_class("card"); } this.child = new Navigation(item); this.child = new Navigation(item, conn); } } }
-