[gnome-boxes/gnome-3-4] notificationbar: make it look sharp again
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-4] notificationbar: make it look sharp again
- Date: Fri, 8 Jun 2012 16:38:17 +0000 (UTC)
commit 167e62a561799b0ef1f9abff5a9fc5e2648f4478
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Fri May 18 16:16:18 2012 +0200
notificationbar: make it look sharp again
It seems the depth property make the renderning blurry.
I am not sure why it is needed, as I can't see an overlapped
case. Perhaps a clutter_actor_raise() instead where needed?
https://bugzilla.gnome.org/show_bug.cgi?id=674794
src/notificationbar.vala | 2 +-
vapi/upstream/clutter-1.0.vapi | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index 5d507ab..a20cb9d 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -130,10 +130,10 @@ private class Boxes.Notificationbar: GLib.Object {
app.stage.add (actor);
actor.hide ();
actor.scale_y = 0f;
- actor.depth = 1f; // Apear above every view
}
private void show () {
+ app.stage.set_child_above_sibling (actor, null);
actor.show ();
actor.queue_redraw ();
actor.animate (Clutter.AnimationMode.LINEAR, app.duration, "scale-y", 1f);
diff --git a/vapi/upstream/clutter-1.0.vapi b/vapi/upstream/clutter-1.0.vapi
index 11d7ae9..f42c523 100644
--- a/vapi/upstream/clutter-1.0.vapi
+++ b/vapi/upstream/clutter-1.0.vapi
@@ -198,6 +198,7 @@ namespace Clutter {
public void reparent (Clutter.Actor new_parent);
public void set_anchor_point (float anchor_x, float anchor_y);
public void set_anchor_point_from_gravity (Clutter.Gravity gravity);
+ public void set_child_above_sibling (Clutter.Actor child, Clutter.Actor? sibling);
public void set_clip (float xoff, float yoff, float width, float height);
public void set_clip_to_allocation (bool clip_set);
public void set_depth (float depth);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]