#--
-# $Id: part.rb 25 2005-04-14 19:42:06Z tilman $
+# $Id: part.rb 28 2005-04-14 19:53:45Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
@id = image.id
end
+ protected
def to_eet_name
"Edje_Part_Image_Id"
end
@border = [r, r, t, b]
end
+ protected
def to_eet_properties
super.merge!(
{"image.id" => [@image.nil? ? -1 : @image.id],
end
def font=(f)
- md = f.to_str.match(/.*\.ttf/)
+ f = f.to_str.strip
+ md = f.match(/.*\.ttf$/)
unless md.nil?
found = EDJE.font_dir.find { |font| font.filename == f }
if found.nil?
end
end
- @font = f.dup
+ @font = f
end
def outline_color=(c)
@shadow_color = parse_hex_color(c)
end
+ protected
def to_eet_properties
super.merge!(
{"color2.r" => [@outline_color[0], :char],