X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=bin%2Fembrace;h=22e9be6513d06d81cc36ac71c86887a326eb29f5;hb=6ae83f23ff8209112106c096f65ad3ab904f6b83;hp=c657e7d6e3fc24166a654b592505e88bba3d8eb3;hpb=51ce043e8007319aae5b7eccffb85a060bb94bda;p=embrace.git diff --git a/bin/embrace b/bin/embrace index c657e7d..22e9be6 100755 --- a/bin/embrace +++ b/bin/embrace @@ -159,18 +159,6 @@ module Embrace @img = @label = @alpha_anim = nil end - def on_layer_set(layer) - @objects.each { |o| o.layer = layer } - end - - def on_stack_above(other) - @objects.each { |o| o.stack_above = other } - end - - def on_stack_below(other) - @objects.each { |o| o.stack_below = other } - end - def on_move(x, y) @objects.each { |o| o.move(x, y) } @@ -303,18 +291,6 @@ module Embrace @bg = nil end - def on_layer_set(layer) - @bg.layer = layer - end - - def on_stack_above(other) - @bg.stack_above = other - end - - def on_stack_below(other) - @bg.stack_below = other - end - def on_move(x, y) @bg.move(x, y) end @@ -341,12 +317,12 @@ module Embrace def initialize super - self.title = "blah" + self.title = "Embrace" self.borderless = true @icon_dim = IO.read(ICON_FILE, 8, 16).unpack("NN") - self.on_resize { @container.resize(*geometry[2, 3]) } + on_resize { @container.resize(*geometry[2, 3]) } @container = Container.new(evas) @container.move(0, 0)