summaryrefslogtreecommitdiff
path: root/src/themes/sliceLayer.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-08-19 16:25:34 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-08-19 16:25:34 +0200
commit08d469c9ea5a5bdf186a4aa11f003affac1962e4 (patch)
tree52ec76e484c8c747e6b8d6cabaa4bb5c80536d68 /src/themes/sliceLayer.vala
parent601eaec7bdaf999574df69c41e41a1383921580b (diff)
parent10af7615316fd91eef61cc66a8ede38a2bff3fdc (diff)
Merge tag 'upstream/0.6.5'
Upstream version 0.6.5
Diffstat (limited to 'src/themes/sliceLayer.vala')
-rw-r--r--src/themes/sliceLayer.vala16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/themes/sliceLayer.vala b/src/themes/sliceLayer.vala
index 17ac3bb..bd9e98b 100644
--- a/src/themes/sliceLayer.vala
+++ b/src/themes/sliceLayer.vala
@@ -48,35 +48,41 @@ public class SliceLayer : GLib.Object {
public string font {get; private set; default="";}
public int width {get; private set; default=0;}
public int height {get; private set; default=0;}
- public int position {get; private set; default=0;}
+ public int x {get; private set; default=0;}
+ public int y {get; private set; default=0;}
public Color color {get; private set; default=new Color();}
/////////////////////////////////////////////////////////////////////
/// C'tor, initializes all members of the layer.
/////////////////////////////////////////////////////////////////////
- public SliceLayer.file(string icon_file, int icon_size, bool colorize, Visibility visibility) {
+ public SliceLayer.file(string icon_file, int icon_size, int x, int y, bool colorize, Visibility visibility) {
this.layer_type = Type.FILE;
this.icon_file = icon_file;
this.colorize = colorize;
this.icon_size = icon_size;
+ this.x = x;
+ this.y = y;
this.visibility = visibility;
}
- public SliceLayer.icon(string icon_file, int icon_size, bool colorize, Visibility visibility) {
+ public SliceLayer.icon(string icon_file, int icon_size, int x, int y, bool colorize, Visibility visibility) {
this.layer_type = Type.ICON;
this.icon_file = icon_file;
this.colorize = colorize;
this.icon_size = icon_size;
+ this.x = x;
+ this.y = y;
this.visibility = visibility;
}
- public SliceLayer.caption(string font, int width, int height, int position, Color color, bool colorize, Visibility visibility) {
+ public SliceLayer.caption(string font, int width, int height, int x, int y, Color color, bool colorize, Visibility visibility) {
this.layer_type = Type.CAPTION;
this.font = font;
this.width = width;
this.height = height;
- this.position = position;
+ this.x = x;
+ this.y = y;
this.color = color;
this.visibility = visibility;
this.colorize = colorize;