[gnome-boxes] app: Make use of Gtk.StackTransitionType.SLIDE_LEFT_RIGHT
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app: Make use of Gtk.StackTransitionType.SLIDE_LEFT_RIGHT
- Date: Sun, 23 Feb 2014 15:20:35 +0000 (UTC)
commit e28a314cc44a62a0798e30db29876b263b156435
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Feb 23 15:00:10 2014 +0000
app: Make use of Gtk.StackTransitionType.SLIDE_LEFT_RIGHT
src/app.vala | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 4511a29..fd6c2dd 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -68,13 +68,10 @@ private class Boxes.App: GLib.Object, Boxes.UI {
return AppPage.MAIN;
}
set {
- if (value == AppPage.DISPLAY) {
- stack.transition_type = Gtk.StackTransitionType.SLIDE_RIGHT;
+ if (value == AppPage.DISPLAY)
stack.set_visible_child_name ("display-page");
- } else {
- stack.transition_type = Gtk.StackTransitionType.SLIDE_LEFT;
+ else
stack.set_visible_child_name ("main-page");
- }
}
}
@@ -534,6 +531,7 @@ private class Boxes.App: GLib.Object, Boxes.UI {
stack = new Gtk.Stack ();
stack.homogeneous = false;
+ stack.transition_type = Gtk.StackTransitionType.SLIDE_LEFT_RIGHT;
main_vbox.add (stack);
var vbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]