EpisodeWidget: Tweak padding and spacing.

This commit is contained in:
Jordan Petridis 2018-07-21 21:14:07 +03:00
parent 001eeecc09
commit fbbe0d9ca9
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
3 changed files with 5 additions and 4 deletions

View File

@ -35,6 +35,8 @@ Tobias Bernard
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="margin_left">6</property>
<property name="margin_right">6</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">

View File

@ -36,12 +36,11 @@ Tobias Bernard
<property name="valign">center</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="cover">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">6</property>
<property name="margin_left">8</property>
<property name="pixel_size">64</property>
<property name="icon_name">image-x-generic-symbolic</property>
</object>

View File

@ -187,7 +187,7 @@ impl Default for HomeEpisode {
let container: gtk::Box = builder.get_object("container").unwrap();
let image: gtk::Image = builder.get_object("cover").unwrap();
let ep = EpisodeWidget::default();
container.pack_start(&ep.container, true, true, 6);
container.pack_start(&ep.container, true, true, 0);
HomeEpisode {
container,
@ -218,7 +218,7 @@ impl HomeEpisode {
fn init(&self, show_id: i32) {
self.set_cover(show_id);
self.container.pack_start(&self.episode, true, true, 6);
self.container.pack_start(&self.episode, true, true, 0);
}
fn set_cover(&self, show_id: i32) {