33 size_hint_weight
= {1, 1},
43 box
.edjs
[i
] = ego
:edje
{
46 size_hint_min
= {32, 32},
47 size_hint_max
= {64, 64},
48 size_hint_weight
= {1, 1},
49 size_hint_align
= {0, 0},
50 size_hint_aspect
= {4, 1, 1},
52 callback_mouse_down
= function (self
, button
, x
, y
, X
, Y
)
53 if lay
.new
~= box
.imgs
[self
.id
] then
54 lay
:signal_emit ('fade,out', '')
56 lay
.new
= box
.imgs
[self
.id
]
60 box
.edjs
[i
]:resize (64, 64)
62 box
.imgs
[i
] = ego
:image
{
66 size_hint_weight
= {1, 1},
67 callback_resize
= function (self
) self
:fit () end,
70 local size
= box
.imgs
[i
].size
71 box
.imgs
[i
].size_hint_aspect
= {4, size
[1], size
[2]}
73 box
.thumbs
[i
] = ego
:image
{
77 size_hint_weight
= {1, 1},
78 size_hint_aspect
= {4, size
[1], size
[2]},
79 callback_resize
= function (self
) self
:fit () end,
82 size
= box
.thumbs
[i
].size
83 box
.edjs
[i
].content
.swallow
= box
.thumbs
[i
]
84 box
:pack (box
.edjs
[i
], i
-1, 0, 1, 1)
89 size_hint_weight
= {1, 1},
91 content_min_limit
= {false, true}
97 callback_key_down
= function (self
, key
)
98 if key
== 'Escape' then
100 elseif key
== 't' then
112 signal_callback
= function (self
, signal
, source
)
113 if signal
== 'faded,out' then
114 lay
.bg_content
:unswallow ()
115 lay
.old
.visible
= false
116 lay
.new
.visible
= true
117 lay
.bg_content
.swallow
= lay
.new
118 lay
:signal_emit ('fade,in', '')
122 lay
.new
= box
.imgs
[1]
123 lay
.new
.visible
= true
124 lay
.bg_content
.swallow
= lay
.new
126 lay
.bar_content
.swallow
= scr
127 lay
:signal_emit ('fade,in', '')