Tweaked stack transition effects.
This commit is contained in:
parent
fb6fc68d23
commit
2d4acc3ba3
@ -53,8 +53,8 @@ impl Content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn setup_stack(&self) {
|
fn setup_stack(&self) {
|
||||||
self.stack
|
// self.stack
|
||||||
.set_transition_type(gtk::StackTransitionType::SlideLeftRight);
|
// .set_transition_type(gtk::StackTransitionType::SlideLeftRight);
|
||||||
|
|
||||||
self.stack.add_named(&self.widget.container, "widget");
|
self.stack.add_named(&self.widget.container, "widget");
|
||||||
self.stack.add_named(&self.podcasts.container, "podcasts");
|
self.stack.add_named(&self.podcasts.container, "podcasts");
|
||||||
|
|||||||
@ -138,7 +138,7 @@ fn on_flowbox_child_activate(stack: >k::Stack, parent: &Podcast) {
|
|||||||
|
|
||||||
stack.remove(&old);
|
stack.remove(&old);
|
||||||
stack.add_named(&pdw.container, "widget");
|
stack.add_named(&pdw.container, "widget");
|
||||||
stack.set_visible_child_name("widget");
|
stack.set_visible_child_full("widget", gtk::StackTransitionType::SlideLeft);
|
||||||
|
|
||||||
// aggresive memory cleanup
|
// aggresive memory cleanup
|
||||||
// probably not needed
|
// probably not needed
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user