Changed the transition type of the stack.

This commit is contained in:
Jordan Petridis 2017-11-04 18:46:43 +02:00
parent b0369974da
commit e2d1466073
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
2 changed files with 1 additions and 14 deletions

View File

@ -74,20 +74,6 @@ fn build_ui(app: &gtk::Application) {
Inhibit(false)
});
// let builder = gtk::Builder::new_from_string(include_str!("../gtk/foo.glade"));
// let boxx: gtk::Box = builder.get_object("box").unwrap();
// let child: gtk::Box = builder.get_object("child").unwrap();
// let flowbox: gtk::FlowBox = builder.get_object("flowbox").unwrap();
// window.add(&boxx);
// let fbc = gtk::FlowBoxChild::new();
// fbc.add(&child);
// flowbox.connect_child_activated(move |_, f| {
// println!("Hello world");
// println!("child activated: {:?}", f);
// });
// flowbox.add(&fbc);
// Setup quit in the app menu since default is overwritten.
let quit = gio::SimpleAction::new("quit", None);
let window2 = window.clone();

View File

@ -120,6 +120,7 @@ fn setup_podcasts_grid(db: &Database, stack: &gtk::Stack) {
pub fn setup_stack(db: &Database) -> gtk::Stack {
let stack = gtk::Stack::new();
stack.set_transition_type(gtk::StackTransitionType::SlideLeftRight);
setup_podcast_widget(&stack);
setup_podcasts_grid(db, &stack);
stack