[iagno] Add transitions
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Add transitions
- Date: Mon, 9 Feb 2015 19:12:42 +0000 (UTC)
commit 1320c40ade03711bbad6bede4d13b500902e70b7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Sep 24 23:30:12 2014 +0200
Add transitions
https://bugzilla.gnome.org/show_bug.cgi?id=664976
data/iagno.ui | 1 +
src/iagno.vala | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/data/iagno.ui b/data/iagno.ui
index 075c10f..01f0b41 100644
--- a/data/iagno.ui
+++ b/data/iagno.ui
@@ -57,6 +57,7 @@
<object class="GtkStack" id="main_stack">
<property name="visible">True</property>
<property name="homogeneous">True</property>
+ <property name="transition-duration">800</property>
<child>
<object class="GtkBox" id="start-box">
<property name="orientation">vertical</property>
diff --git a/src/iagno.vala b/src/iagno.vala
index 1a86404..b81e752 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -293,12 +293,14 @@ public class Iagno : Gtk.Application
private void start_game_cb ()
{
+ main_stack.set_transition_type (Gtk.StackTransitionType.SLIDE_DOWN);
back_button.visible = false;
start_game ();
}
private void back_cb ()
{
+ main_stack.set_transition_type (Gtk.StackTransitionType.SLIDE_RIGHT);
show_game_board ();
back_action.set_enabled (false);
@@ -326,6 +328,7 @@ public class Iagno : Gtk.Application
private void new_game_cb ()
{
+ main_stack.set_transition_type (Gtk.StackTransitionType.SLIDE_LEFT);
show_new_game_screen ();
headerbar.set_subtitle (null);
back_button.visible = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]