[gnome-boxes] Initialize 'transition-duration' from .ui files
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Initialize 'transition-duration' from .ui files
- Date: Mon, 10 Mar 2014 15:12:18 +0000 (UTC)
commit 19ed6bbed5d5369403d29f1af81188b2f823cdfa
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Mar 10 15:12:31 2014 +0000
Initialize 'transition-duration' from .ui files
Both for GtkStack and GtkRevealer widgets.
data/ui/app-window.ui | 2 ++
data/ui/empty-boxes.ui | 1 +
data/ui/selectionbar.ui | 1 +
data/ui/sidebar.ui | 1 +
src/app-window.vala | 8 --------
5 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/data/ui/app-window.ui b/data/ui/app-window.ui
index cb6c6dd..e934cd0 100644
--- a/data/ui/app-window.ui
+++ b/data/ui/app-window.ui
@@ -78,6 +78,7 @@
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="transition-type">crossfade</property>
+ <property name="transition-duration">400</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
@@ -119,6 +120,7 @@
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="transition-type">slide-left-right</property>
+ <property name="transition-duration">400</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
diff --git a/data/ui/empty-boxes.ui b/data/ui/empty-boxes.ui
index f7f2f56..4c5add7 100644
--- a/data/ui/empty-boxes.ui
+++ b/data/ui/empty-boxes.ui
@@ -8,6 +8,7 @@
<property name="halign">fill</property>
<property name="valign">fill</property>
<property name="transition-type">crossfade</property>
+ <property name="transition-duration">400</property>
<style>
<class name="dim-label"/>
</style>
diff --git a/data/ui/selectionbar.ui b/data/ui/selectionbar.ui
index e67d839..48b506d 100644
--- a/data/ui/selectionbar.ui
+++ b/data/ui/selectionbar.ui
@@ -4,6 +4,7 @@
<template class="BoxesSelectionbar" parent="GtkRevealer">
<property name="visible">True</property>
<property name="transition-type">slide-up</property>
+ <property name="transition-duration">400</property>
<child>
<object class="GtkActionBar" id="actionbar">
diff --git a/data/ui/sidebar.ui b/data/ui/sidebar.ui
index 459f3f6..ffc5054 100644
--- a/data/ui/sidebar.ui
+++ b/data/ui/sidebar.ui
@@ -6,6 +6,7 @@
<property name="visible">True</property>
<property name="width-request">100</property>
<property name="transition-type">slide-right</property>
+ <property name="transition-duration">400</property>
<property name="vexpand">True</property>
<property name="hexpand">False</property>
<property name="halign">start</property>
diff --git a/src/app-window.vala b/src/app-window.vala
index 4aefe08..ce59a50 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -45,8 +45,6 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
private Gtk.Box below_bin_hbox;
[GtkChild]
public CollectionView view;
- [GtkChild]
- public Selectionbar selectionbar;
public GLib.Settings settings;
@@ -87,12 +85,6 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
move (x, y);
}
-
- below_bin.transition_duration = TRANSITION_DURATION;
- content_bin.transition_duration = TRANSITION_DURATION;
- empty_boxes.transition_duration = TRANSITION_DURATION;
- sidebar.transition_duration = TRANSITION_DURATION;
- selectionbar.transition_duration = TRANSITION_DURATION;
}
public void setup_ui () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]