[gnome-boxes] app, empty-boxes: Setup transitions on all Gtk.Stack instances
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app, empty-boxes: Setup transitions on all Gtk.Stack instances
- Date: Sun, 23 Feb 2014 15:20:40 +0000 (UTC)
commit 5b83576e61b12254886fbc61a7f5f19657e364f2
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Feb 23 15:00:43 2014 +0000
app,empty-boxes: Setup transitions on all Gtk.Stack instances
We want nice looking transitions for each view change.
data/ui/empty-boxes.ui | 1 +
src/app.vala | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/empty-boxes.ui b/data/ui/empty-boxes.ui
index 27b6517..f7f2f56 100644
--- a/data/ui/empty-boxes.ui
+++ b/data/ui/empty-boxes.ui
@@ -7,6 +7,7 @@
<property name="vexpand">True</property>
<property name="halign">fill</property>
<property name="valign">fill</property>
+ <property name="transition-type">crossfade</property>
<style>
<class name="dim-label"/>
</style>
diff --git a/src/app.vala b/src/app.vala
index fd6c2dd..51fc4f3 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -588,6 +588,7 @@ private class Boxes.App: GLib.Object, Boxes.UI {
below_bin.add_named (below_bin_hbox, "below-bin-hbox");
content_bin = new Gtk.Stack ();
+ content_bin.transition_type = Gtk.StackTransitionType.SLIDE_LEFT;
content_bin.homogeneous = false;
content_bin.vexpand = true;
content_bin.hexpand = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]