summaryrefslogtreecommitdiff
path: root/unity-private
diff options
authorGord Allott <gord.allott@canonical.com>2010-08-26 16:34:34 +0100
committerGord Allott <gord.allott@canonical.com>2010-08-26 16:34:34 +0100
commitbabd675eab173b42e5c8a35392a72bf5146f640c (patch)
tree53c9292bdd4800928233c9a8cd6260af7f50264f /unity-private
parentca43ad3499e4322c7d354792c56fdbab9bf7a9a5 (diff)
parentf3ff9e94de50ee55a9f199939dd5bd9dc9b76adc (diff)
merged in a fix for launcher not unfolding on startup
(bzr r467)
Diffstat (limited to 'unity-private')
-rw-r--r--unity-private/launcher/scroller-view.vala2
-rw-r--r--unity-private/testing/test-window.vala3
2 files changed, 4 insertions, 1 deletions
diff --git a/unity-private/launcher/scroller-view.vala b/unity-private/launcher/scroller-view.vala
index 18abbc571..df5d95331 100644
--- a/unity-private/launcher/scroller-view.vala
+++ b/unity-private/launcher/scroller-view.vala
@@ -1275,7 +1275,7 @@ namespace Unity.Launcher
float position, float rotation,
bool immediate = false)
{
- if (immediate)
+ if (immediate || global_shell.is_starting)
{
child.position = position;
child.force_rotation_jump (rotation);
diff --git a/unity-private/testing/test-window.vala b/unity-private/testing/test-window.vala
index 8dcaa7c3e..b65ded3dd 100644
--- a/unity-private/testing/test-window.vala
+++ b/unity-private/testing/test-window.vala
@@ -27,6 +27,7 @@ namespace Unity.Testing
{
public bool menus_swallow_events { get { return true; } }
public bool super_key_active {get; set;}
+ public bool is_starting {get; set;}
public bool is_popup { get; construct; }
public int popup_width { get; construct; }
public int popup_height { get; construct; }
@@ -54,6 +55,7 @@ namespace Unity.Testing
construct
{
+ is_starting = true;
START_FUNCTION ();
Unity.global_shell = this;
this.workarea_size = new Workarea ();
@@ -159,6 +161,7 @@ namespace Unity.Testing
gesture_dispatcher = new Gesture.XCBDispatcher ();
+ GLib.Idle.add (() => { is_starting = false; return false;});
END_FUNCTION ();
}