[baobab] Use new transition type for GtkStack
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Use new transition type for GtkStack
- Date: Fri, 14 Jun 2013 09:40:39 +0000 (UTC)
commit 400abc66eee0b1f08d6469cc73391e6d6b0175b9
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Jun 14 11:46:11 2013 +0200
Use new transition type for GtkStack
It automatically switches between left and right sliding
depending on children ordering.
src/baobab-main-window.ui | 1 +
src/baobab-window.vala | 2 --
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index c29be1e..a0691c7 100644
--- a/src/baobab-main-window.ui
+++ b/src/baobab-main-window.ui
@@ -209,6 +209,7 @@
<object class="GtkStack" id="main_stack">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="transition_type">slide-left-right</property>
<child>
<object class="GtkGrid" id="home_page">
<property name="can_focus">False</property>
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 5ba87b4..79865fd 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -508,12 +508,10 @@ namespace Baobab {
var action = lookup_action ("reload") as SimpleAction;
action.set_enabled (false);
header_bar.set_title (_("Devices and locations"));
- main_stack.transition_type = Gtk.StackTransitionType.SLIDE_RIGHT;
} else {
var action = lookup_action ("reload") as SimpleAction;
action.set_enabled (true);
header_bar.set_title (active_location.name);
- main_stack.transition_type = Gtk.StackTransitionType.SLIDE_LEFT;
}
main_stack.visible_child = child;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]