diff options
| author | Neil Jagdish Patel <neil.patel@canonical.com> | 2010-08-24 09:40:21 +0100 |
|---|---|---|
| committer | Neil Jagdish Patel <neil.patel@canonical.com> | 2010-08-24 09:40:21 +0100 |
| commit | 1ac0e8983b602c197a28fc3a21a70fa26481627b (patch) | |
| tree | c2fb47fb8a899ea38ea2ce70bedbfdce7c50ebe9 /unity-private | |
| parent | 06c89c18e7dcfcaa68472ac0f7918ddb31e779d2 (diff) | |
Make the setting of the glow part of the count get/set instead of get_preferred_height
(bzr r451.1.19)
Diffstat (limited to 'unity-private')
| -rw-r--r-- | unity-private/places/places-default-renderer-group.vala | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/unity-private/places/places-default-renderer-group.vala b/unity-private/places/places-default-renderer-group.vala index 6a1f11556..2dac1e1ad 100644 --- a/unity-private/places/places-default-renderer-group.vala +++ b/unity-private/places/places-default-renderer-group.vala @@ -477,6 +477,19 @@ namespace Unity.Places animate (Clutter.AnimationMode.EASE_OUT_QUAD, 200, "opacity", count == 0 ? 0:255); + + if (count > 0 && glow is Ctk.EffectGlow == false) + { + glow = new Ctk.EffectGlow (); + glow.set_factor (1.0f); + glow.set_margin (0); + bg.add_effect (glow); + } + else if (count < 1 && glow is Ctk.EffectGlow) + { + bg.remove_effect (glow); + glow = null; + } } } @@ -529,24 +542,10 @@ namespace Unity.Places { mheight = 0.0f; nheight = 0.0f; - - if (glow is Ctk.EffectGlow) - { - bg.remove_effect (glow); - glow = null; - } } else { base.get_preferred_height (for_width, out mheight, out nheight); - - if (glow is Ctk.EffectGlow == false) - { - glow = new Ctk.EffectGlow (); - glow.set_factor (1.0f); - glow.set_margin (0); - bg.add_effect (glow); - } } } |
