diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-08-19 16:25:31 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-08-19 16:25:31 +0200 |
commit | 10af7615316fd91eef61cc66a8ede38a2bff3fdc (patch) | |
tree | 0f5731b91e14dc14f0ba6f3394768222f66a31be /src/renderers/sliceRenderer.vala | |
parent | 0b56dfbf01171226a0bb035afcd13358b6477710 (diff) |
Imported Upstream version 0.6.5upstream/0.6.5
Diffstat (limited to 'src/renderers/sliceRenderer.vala')
-rw-r--r-- | src/renderers/sliceRenderer.vala | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/renderers/sliceRenderer.vala b/src/renderers/sliceRenderer.vala index dfcf512..591fbdd 100644 --- a/src/renderers/sliceRenderer.vala +++ b/src/renderers/sliceRenderer.vala @@ -46,6 +46,12 @@ public class SliceRenderer : GLib.Object { public Color color {get; private set;} ///////////////////////////////////////////////////////////////////// + /// The Action which is rendered by this SliceRenderer. + ///////////////////////////////////////////////////////////////////// + + public Action action; + + ///////////////////////////////////////////////////////////////////// /// The two Images used, when this slice is active or not. ///////////////////////////////////////////////////////////////////// @@ -59,12 +65,6 @@ public class SliceRenderer : GLib.Object { private Image hotkey; ///////////////////////////////////////////////////////////////////// - /// The Action which is rendered by this SliceRenderer. - ///////////////////////////////////////////////////////////////////// - - private Action action; - - ///////////////////////////////////////////////////////////////////// /// The PieRenderer which owns this SliceRenderer. ///////////////////////////////////////////////////////////////////// @@ -150,7 +150,7 @@ public class SliceRenderer : GLib.Object { this.hotkey = new RenderedText(hotkey_label, (int)Config.global.theme.slice_radius*2, (int)Config.global.theme.slice_radius*2, "sans 20", - Config.global.theme.caption_color, Config.global.global_scale); + new Color(), Config.global.global_scale); } ///////////////////////////////////////////////////////////////////// @@ -284,8 +284,9 @@ public class SliceRenderer : GLib.Object { ctx.paint(); // draw hotkeys if necassary - if (this.parent.show_hotkeys) + if (this.parent.show_hotkeys) { this.hotkey.paint_on(ctx, 1.0); + } ctx.restore(); } |