ShowWidget: Move the listbox back to the glade file
This commit is contained in:
parent
e068cff37b
commit
fee3e320ab
@ -100,7 +100,34 @@ Sorry, we could not find a description for this Show.</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkAlignment">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkListBox" id="episodes">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="selection_mode">none</property>
|
||||
<property name="activate_on_single_click">False</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="label_item">
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use glib;
|
||||
use gtk::{self, prelude::*, Adjustment, SelectionMode};
|
||||
use gtk::{self, prelude::*, Adjustment};
|
||||
|
||||
use crossbeam_channel::Sender;
|
||||
use failure::Error;
|
||||
@ -33,12 +33,9 @@ impl Default for ShowWidget {
|
||||
let sub_cont: gtk::Box = builder.get_object("sub_container").unwrap();
|
||||
let cover: gtk::Image = builder.get_object("cover").unwrap();
|
||||
let description: gtk::Label = builder.get_object("description").unwrap();
|
||||
let episodes = builder.get_object("episodes").unwrap();
|
||||
let view = BaseView::default();
|
||||
|
||||
let frame = gtk::Frame::new(None);
|
||||
let episodes = gtk::ListBox::new();
|
||||
episodes.set_selection_mode(SelectionMode::None);
|
||||
|
||||
let column = Column::new();
|
||||
column.set_maximum_width(700);
|
||||
// For some reason the Column is not seen as a gtk::container
|
||||
@ -46,8 +43,6 @@ impl Default for ShowWidget {
|
||||
let column = column.upcast::<gtk::Widget>();
|
||||
let column = column.downcast::<gtk::Container>().unwrap();
|
||||
|
||||
frame.add(&episodes);
|
||||
sub_cont.add(&frame);
|
||||
column.add(&sub_cont);
|
||||
view.add(&column);
|
||||
column.show_all();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user