ffi-efl 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,16 +54,47 @@ module Efl
54
54
  end
55
55
  end
56
56
  #
57
- class ElmWin < Efl::Evas::REvasObject
57
+ class ElmObject < Efl::Evas::REvasObject
58
58
  #
59
- search_prefixes 'elm_win_', 'elm_object_'
59
+ search_prefixes 'elm_object_'
60
60
  #
61
- def initialize parent, title, type=:elm_win_basic, &block
62
- super Native.method(:elm_win_add), parent, title, type, &block
63
- end
64
61
  def smart_callback_add event_str, cb, data=FFI::MemoryPointer::NULL
65
62
  Native.evas_object_smart_callback_add @ptr, event_str, cb, data
66
63
  end
64
+ #
65
+ def text_set label
66
+ Native.elm_object_text_part_set @ptr, nil, label
67
+ end
68
+ alias :text= :text_set
69
+ #
70
+ def text_get
71
+ Native.elm_object_text_part_get @ptr, nil
72
+ end
73
+ alias :text :text_get
74
+ #
75
+ def content_set content
76
+ Native.elm_object_content_part_set @ptr, nil, content
77
+ end
78
+ alias :content= :content_set
79
+ #
80
+ def content_get
81
+ Native.elm_object_content_part_get @ptr, nil
82
+ end
83
+ alias :content :content_get
84
+ #
85
+ def content_unset
86
+ Native.elm_object_content_part_unset @ptr, nil
87
+ end
88
+ #
89
+ end
90
+ #
91
+ class ElmWin < ElmObject
92
+ #
93
+ search_prefixes 'elm_win_'
94
+ #
95
+ def initialize parent, title, type=:elm_win_basic, &block
96
+ super Native.method(:elm_win_add), parent, title, type, &block
97
+ end
67
98
  def inwin_add
68
99
  ElmInWin.new @ptr
69
100
  end
@@ -76,20 +107,27 @@ module Efl
76
107
  alias :screen_position :screen_position_get
77
108
  end
78
109
  #
79
- class ElmInWin < Efl::Evas::REvasObject
110
+ class ElmInWin < ElmObject
80
111
  #
81
- search_prefixes 'elm_win_inwin_', 'elm_win_', 'elm_object_'
112
+ search_prefixes 'elm_win_inwin_', 'elm_win_'
82
113
  #
83
114
  def initialize parent, &block
84
115
  super Native.method(:elm_win_inwin_add), parent, &block
85
116
  end
86
117
  end
87
118
  #
88
- class ElmBg < Efl::Evas::REvasObject
119
+ class ElmFrame < ElmObject
120
+ #
121
+ include Helper
122
+ search_prefixes 'elm_frame_'
123
+ constructor :elm_frame_add
124
+ end
125
+ #
126
+ class ElmBg < ElmObject
89
127
  #
90
128
  include Helper
91
129
  constructor :elm_bg_add
92
- search_prefixes 'elm_bg_', 'elm_object_'
130
+ search_prefixes 'elm_bg_'
93
131
  #
94
132
  def file_get
95
133
  f = FFI::MemoryPointer.new :pointer
@@ -108,11 +146,11 @@ module Efl
108
146
  alias :color :color_get
109
147
  end
110
148
  #
111
- class ElmLayout < Efl::Evas::REvasObject
149
+ class ElmLayout < ElmObject
112
150
  #
113
151
  include Helper
114
152
  constructor :elm_layout_add
115
- search_prefixes 'elm_layout_', 'elm_object_'
153
+ search_prefixes 'elm_layout_'
116
154
  #
117
155
  def edje_get &block
118
156
  Efl::Edje::REdje.new Native.method(:elm_layout_edje_get), @ptr, &block
@@ -120,11 +158,11 @@ module Efl
120
158
  alias :edje :edje_get
121
159
  end
122
160
  #
123
- class ElmBox < Efl::Evas::REvasObject
161
+ class ElmBox < ElmObject
124
162
  #
125
163
  include Helper
126
164
  constructor :elm_box_add
127
- search_prefixes 'elm_box_', 'elm_object_'
165
+ search_prefixes 'elm_box_'
128
166
  #
129
167
  def padding_get
130
168
  x = FFI::MemoryPointer.new :int
@@ -148,20 +186,36 @@ module Efl
148
186
  alias :children :children_get
149
187
  end
150
188
  #
151
- class ElmList < Efl::Evas::REvasObject
189
+ class ElmToggle < ElmObject
190
+ #
191
+ include Helper
192
+ constructor :elm_toggle_add
193
+ search_prefixes 'elm_toggle_'
194
+ #
195
+ end
196
+ #
197
+ class ElmIndex < ElmObject
198
+ #
199
+ include Helper
200
+ constructor :elm_index_add
201
+ search_prefixes 'elm_index_'
202
+ #
203
+ end
204
+ #
205
+ class ElmList < ElmObject
152
206
  #
153
207
  include Helper
154
208
  constructor :elm_list_add
155
- search_prefixes 'elm_list_', 'elm_object_'
209
+ search_prefixes 'elm_list_'
156
210
  #
157
211
  def item_append label, left_icon=nil, right_icon=nil, cb=nil, data=nil
158
212
  ElmListItem.new Native::elm_list_item_append @ptr, label, left_icon, right_icon, cb, data
159
213
  end
160
214
  end
161
215
  #
162
- class ElmListItem < Efl::Evas::REvasObject
216
+ class ElmListItem < ElmObject
163
217
  #
164
- search_prefixes 'elm_list_item_', 'elm_object'
218
+ search_prefixes 'elm_list_item_'
165
219
  #
166
220
  def data_get
167
221
  Native::elm_list_item_data_get @ptr
@@ -169,11 +223,11 @@ module Efl
169
223
  alias :data :data_get
170
224
  end
171
225
  #
172
- class ElmIcon < Efl::Evas::REvasObject
226
+ class ElmIcon < ElmObject
173
227
  #
174
228
  include Helper
175
229
  constructor :elm_icon_add
176
- search_prefixes 'elm_icon_', 'elm_object_'
230
+ search_prefixes 'elm_icon_'
177
231
  #
178
232
  def scale_set args
179
233
  Native.elm_icon_scale_set @ptr, *args
@@ -181,35 +235,35 @@ module Efl
181
235
  alias :scale= :scale_set
182
236
  end
183
237
  #
184
- class ElmLabel < Efl::Evas::REvasObject
238
+ class ElmLabel < ElmObject
185
239
  #
186
240
  include Helper
187
241
  constructor :elm_label_add
188
- search_prefixes 'elm_label_', 'elm_object_'
242
+ search_prefixes 'elm_label_'
189
243
  #
190
244
  end
191
245
  #
192
- class ElmPager < Efl::Evas::REvasObject
246
+ class ElmPager < ElmObject
193
247
  #
194
248
  include Helper
195
249
  constructor :elm_pager_add
196
- search_prefixes 'elm_pager_', 'elm_object_'
250
+ search_prefixes 'elm_pager_'
197
251
  #
198
252
  end
199
253
  #
200
- class ElmPanel < Efl::Evas::REvasObject
254
+ class ElmPanel < ElmObject
201
255
  #
202
256
  include Helper
203
257
  constructor :elm_panel_add
204
- search_prefixes 'elm_panel_', 'elm_object'
258
+ search_prefixes 'elm_panel_'
205
259
  #
206
260
  end
207
261
  #
208
- class ElmDiskSelector < Efl::Evas::REvasObject
262
+ class ElmDiskSelector < ElmObject
209
263
  #
210
264
  include Helper
211
265
  constructor :elm_diskselector_add
212
- search_prefixes 'elm_diskselector_', 'elm_object'
266
+ search_prefixes 'elm_diskselector_'
213
267
  #
214
268
  def item_selected_set it, b
215
269
  Native::elm_diskselector_item_selected_set it, b
@@ -217,9 +271,9 @@ module Efl
217
271
  alias :item_selected= :item_selected_set
218
272
  end
219
273
  #
220
- class ElmDiskSelectorItem < Efl::Evas::REvasObject
274
+ class ElmDiskSelectorItem < ElmObject
221
275
  #
222
- search_prefixes 'elm_diskselector_item_', 'elm_object'
276
+ search_prefixes 'elm_diskselector_item_'
223
277
  #
224
278
  def data_get
225
279
  Native::elm_diskselector_item_data_get @ptr
@@ -227,27 +281,27 @@ module Efl
227
281
  alias :data :data_get
228
282
  end
229
283
  #
230
- class ElmNotify < Efl::Evas::REvasObject
284
+ class ElmNotify < ElmObject
231
285
  #
232
286
  include Helper
233
287
  constructor :elm_notify_add
234
- search_prefixes 'elm_notify_', 'elm_object'
288
+ search_prefixes 'elm_notify_'
235
289
  #
236
290
  end
237
291
  #
238
- class ElmEntry < Efl::Evas::REvasObject
292
+ class ElmEntry < ElmObject
239
293
  #
240
294
  include Helper
241
295
  constructor :elm_entry_add
242
- search_prefixes 'elm_entry_', 'elm_object'
296
+ search_prefixes 'elm_entry_'
243
297
  #
244
298
  end
245
299
  #
246
- class ElmFlipSelector < Efl::Evas::REvasObject
300
+ class ElmFlipSelector < ElmObject
247
301
  #
248
302
  include Helper
249
303
  constructor :elm_flipselector_add
250
- search_prefixes 'elm_flipselector_', 'elm_object'
304
+ search_prefixes 'elm_flipselector_'
251
305
  #
252
306
  def item_append label, cb, data
253
307
  ElmFlipSelectorItem.new Native::elm_flipselector_item_append @ptr, label, cb, data
@@ -259,50 +313,50 @@ module Efl
259
313
  alias :selected_item :selected_item_get
260
314
  end
261
315
  #
262
- class ElmFlipSelectorItem < Efl::Evas::REvasObject
316
+ class ElmFlipSelectorItem < ElmObject
263
317
  #
264
- search_prefixes 'elm_flipselector_item_', 'elm_object'
318
+ search_prefixes 'elm_flipselector_item_'
265
319
  #
266
320
  end
267
321
  #
268
- class ElmHoversel < Efl::Evas::REvasObject
322
+ class ElmHoversel < ElmObject
269
323
  #
270
324
  include Helper
271
325
  constructor :elm_hoversel_add
272
- search_prefixes 'elm_hoversel_', 'elm_object'
326
+ search_prefixes 'elm_hoversel_'
273
327
  #
274
328
  def item_add label, icon_file=nil, icon_type=:elm_icon_none, cb=nil, data=nil
275
329
  ElmHoverselItem.new Native::elm_hoversel_item_add @ptr, label, icon_file, icon_type, cb, data
276
330
  end
277
331
  end
278
332
  #
279
- class ElmHoverselItem < Efl::Evas::REvasObject
333
+ class ElmHoverselItem < ElmObject
280
334
  #
281
- search_prefixes 'elm_hoversel_item_', 'elm_object'
335
+ search_prefixes 'elm_hoversel_item_'
282
336
  #
283
337
  end
284
338
  #
285
- class ElmHover < Efl::Evas::REvasObject
339
+ class ElmHover < ElmObject
286
340
  #
287
341
  include Helper
288
342
  constructor :elm_hover_add
289
- search_prefixes 'elm_hover_', 'elm_object'
343
+ search_prefixes 'elm_hover_'
290
344
  #
291
345
  end
292
346
  #
293
- class ElmButton < Efl::Evas::REvasObject
347
+ class ElmButton < ElmObject
294
348
  #
295
349
  include Helper
296
350
  constructor :elm_button_add
297
- search_prefixes 'elm_button_', 'elm_object'
351
+ search_prefixes 'elm_button_'
298
352
  #
299
353
  end
300
354
  #
301
- class ElmGenlist < Efl::Evas::REvasObject
355
+ class ElmGenlist < ElmObject
302
356
  #
303
357
  include Helper
304
358
  constructor :elm_genlist_add
305
- search_prefixes 'elm_genlist_', 'elm_object'
359
+ search_prefixes 'elm_genlist_'
306
360
  #
307
361
  end
308
362
  #
data/lib/efl.rb CHANGED
@@ -4,7 +4,11 @@
4
4
  #
5
5
  module Efl
6
6
  #
7
- VERSION = '0.0.7'
7
+ VERSION = '0.0.8'
8
+ #
9
+ PACKAGE_BIN_DIR = File.join `pkg-config --variable=exec_prefix ecore`, 'bin'
10
+ PACKAGE_LIB_DIR = File.join `pkg-config --variable=exec_prefix ecore`, 'lib'
11
+ PACKAGE_DATA_DIR = File.join `pkg-config --variable=exec_prefix ecore`, 'share'
8
12
  #
9
13
  autoload :EcoreEvas, './lib/efl/ecore_evas.rb'
10
14
  autoload :EcoreGetopt, './lib/efl/ecore_getopt.rb'
@@ -0,0 +1,243 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl'
5
+ #
6
+ include Efl;
7
+ #
8
+ TESTS = [
9
+ [ 'Bg Plain', :test_bg_plain ],
10
+ [ 'Bg Image', :test_bg_image ],
11
+ [ 'Bg Options', :test_bg_options ],
12
+ [ 'Icon Transparent', :test_icon ],
13
+ [ 'Icon Animation', :test_icon_animated ],
14
+ [ 'Box Vert', :test_box_vert ],
15
+ [ 'Box Vert 2', :test_box_vert2 ],
16
+ [ 'Box Horiz', :test_box_horiz ],
17
+ [ 'Box Transition', :test_box_transition ],
18
+ [ 'Buttons', :test_button ],
19
+ [ 'Transit', :test_transit ],
20
+ [ 'Transit 2', :test_transit2 ],
21
+ [ 'Transit 3', :test_transit3 ],
22
+ [ 'Transit 4', :test_transit4 ],
23
+ [ 'Transit 5', :test_transit5 ],
24
+ [ 'Transit 6', :test_transit6 ],
25
+ [ 'Transit 7', :test_transit7 ],
26
+ [ 'Transit 8', :test_transit8 ],
27
+ [ 'Transit 9', :test_transit9 ],
28
+ [ 'File Selector Button', :test_fileselector_button ],
29
+ [ 'File Selector Entry', :test_fileselector_entry ],
30
+ [ 'Toggles', :test_toggle ],
31
+ [ 'Table', :test_table ],
32
+ [ 'Table Homogeneous', :test_table2 ],
33
+ [ 'Table 3', :test_table3 ],
34
+ [ 'Table 4', :test_table4 ],
35
+ [ 'Table 5', :test_table5 ],
36
+ [ 'Table 6', :test_table6 ],
37
+ [ 'Clock', :test_clock ],
38
+ [ 'Clock 2', :test_clock2 ],
39
+ [ 'Layout', :test_layout ],
40
+ [ 'Hover', :test_hover ],
41
+ [ 'Hover 2', :test_hover2 ],
42
+ [ 'Entry', :test_entry ],
43
+ [ 'Entry Scrolled', :test_entry_scrolled ],
44
+ [ 'Entry 3', :test_entry3 ],
45
+ [ 'Entry 4', :test_entry4 ],
46
+ [ 'Entry 5', :test_entry5 ],
47
+ [ 'Entry Notepad', :test_entry_notepad ],
48
+ [ 'Anchorview', :test_anchorview ],
49
+ [ 'Anchorblock', :test_anchorblock ],
50
+ [ 'Toolbar', :test_toolbar ],
51
+ [ 'Toolbar 2', :test_toolbar2 ],
52
+ [ 'Toolbar 3', :test_toolbar3 ],
53
+ [ 'Toolbar 4', :test_toolbar4 ],
54
+ [ 'Toolbar 5', :test_toolbar5 ],
55
+ [ 'Toolbar 6', :test_toolbar6 ],
56
+ [ 'Hoversel', :test_hoversel ],
57
+ [ 'List', :test_list ],
58
+ [ 'List - Horizontal', :test_list_horizontal ],
59
+ [ 'List 2', :test_list2 ],
60
+ [ 'List 3', :test_list3 ],
61
+ [ 'List 4', :test_list4 ],
62
+ [ 'List 5', :test_list5 ],
63
+ [ 'Inwin', :test_inwin ],
64
+ [ 'Inwin 2', :test_inwin2 ],
65
+ [ 'Scaling', :test_scaling ],
66
+ [ 'Scaling 2', :test_scaling2 ],
67
+ [ 'Slider', :test_slider ],
68
+ [ 'Actionslider', :test_actionslider ],
69
+ [ 'Genlist', :test_genlist ],
70
+ [ 'Genlist 2', :test_genlist2 ],
71
+ [ 'Genlist 3', :test_genlist3 ],
72
+ [ 'Genlist 4', :test_genlist4 ],
73
+ [ 'Genlist 5', :test_genlist5 ],
74
+ [ 'Genlist 7', :test_genlist7 ],
75
+ [ 'Genlist Tree', :test_genlist6 ],
76
+ [ 'Genlist Group', :test_genlist8 ],
77
+ [ 'Genlist Group Tree', :test_genlist9 ],
78
+ [ 'Genlist Mode', :test_genlist10 ],
79
+ [ 'Genlist Reorder Mode', :test_genlist11 ],
80
+ [ 'Genlist Eio', :test_eio ],
81
+ [ 'GenGrid', :test_gengrid ],
82
+ [ 'GenGrid 2', :test_gengrid2 ],
83
+ [ 'Checks', :test_check ],
84
+ [ 'Radios', :test_radio ],
85
+ [ 'Pager', :test_pager ],
86
+ [ 'Pager Slide', :test_pager_slide ],
87
+ [ 'Window States', :test_win_state ],
88
+ [ 'Window States 2', :test_win_state2 ],
89
+ [ 'Progressbar', :test_progressbar ],
90
+ [ 'File Selector', :test_fileselector ],
91
+ [ 'Separator', :test_separator ],
92
+ [ 'Scroller', :test_scroller ],
93
+ [ 'Scroller 2', :test_scroller2 ],
94
+ [ 'Spinner', :test_spinner ],
95
+ [ 'Index', :test_index ],
96
+ [ 'Index 2', :test_index2 ],
97
+ [ 'Photocam', :test_photocam ],
98
+ [ 'Photo', :test_photo ],
99
+ [ 'Thumb', :test_thumb ],
100
+ [ 'Icon Desktops', :test_icon_desktops ],
101
+ [ 'Notify', :test_notify ],
102
+ [ 'Slideshow', :test_slideshow ],
103
+ [ 'Menu', :test_menu ],
104
+ [ 'Panel', :test_panel ],
105
+ [ 'Panes', :test_panes ],
106
+ [ 'Map', :test_map ],
107
+ [ 'Weather', :test_weather ],
108
+ [ 'Flip', :test_flip ],
109
+ [ 'Flip 2', :test_flip2 ],
110
+ [ 'Flip 3', :test_flip3 ],
111
+ [ 'Flip Interactive', :test_flip4 ],
112
+ [ 'Flip Page', :test_flip_page ],
113
+ [ 'Label', :test_label ],
114
+ [ 'Conformant', :test_conformant ],
115
+ [ 'Conformant 2', :test_conformant2 ],
116
+ [ 'Multi Touch', :test_multi ],
117
+ [ 'Floating Objects', :test_floating ],
118
+ [ 'Launcher', :test_launcher ],
119
+ [ 'Launcher 2', :test_launcher2 ],
120
+ [ 'Launcher 3', :test_launcher3 ],
121
+ [ 'Animation', :test_anim ],
122
+ [ 'Calendar', :test_calendar ],
123
+ [ 'Calendar 2', :test_calendar2 ],
124
+ [ 'Tooltip', :test_tooltip ],
125
+ [ 'Tooltip2', :test_tooltip2 ],
126
+ [ 'Cursor', :test_cursor ],
127
+ [ 'Cursor 2', :test_cursor2 ],
128
+ [ 'Cursor 3', :test_cursor3 ],
129
+ [ 'Focus', :test_focus ],
130
+ [ 'Focus 2', :test_focus2 ],
131
+ [ 'Focus 3', :test_focus3 ],
132
+ [ 'Flip Selector', :test_flipselector ],
133
+ [ 'Disk Selector', :test_diskselector ],
134
+ [ 'Color Selector', :test_colorselector ],
135
+ [ 'Ctxpopup', :test_ctxpopup ],
136
+ [ 'Bubble', :test_bubble ],
137
+ [ 'Segment Control', :test_segment_control ],
138
+ [ 'Store', :test_store ],
139
+ [ 'Window Inline', :test_win_inline ],
140
+ [ 'Grid', :test_grid ],
141
+ [ 'GLViewSimple', :test_glview_simple ],
142
+ [ 'GLView', :test_glview ],
143
+ [ '3D', :test_3d ],
144
+ [ 'Gesture Layer', :test_gesture_layer ],
145
+ [ 'Naviframe', :test_naviframe ],
146
+ [ 'Factory', :test_factory ],
147
+ ]
148
+ #
149
+ class TestWin < Elm::ElmWin
150
+ #
151
+ def initialize name, title
152
+ super FFI::MemoryPointer::NULL, name
153
+ title = title
154
+ feed
155
+ smart_callback_add 'delete,request', method(:on_delete)
156
+ end
157
+ #
158
+ def feed
159
+ @bg = Elm::ElmBg.new self do |bg|
160
+ bg.size_hint_weight_expand
161
+ resize_object_add bg
162
+ bg.show
163
+ end
164
+ @bx0 = Elm::ElmBox.new self do |bx|
165
+ bx.size_hint_weight_expand
166
+ resize_object_add bx
167
+ bx.show
168
+ end
169
+ @fr = Elm::ElmFrame.new self do |fr|
170
+ fr.text = 'Information'
171
+ @bx0.pack_end fr
172
+ fr.show
173
+ end
174
+ Elm::ElmLabel.new self do |lb|
175
+ lb.text = 'Please select a test from the list below<br>by clicking the test button to show the<br>test window.'
176
+ @fr.content = lb
177
+ lb.show
178
+ end
179
+ Elm::ElmToggle.new self do |tg|
180
+ tg.text = 'UI-Mirroring:'
181
+ tg.state = Native.elm_mirrored_get
182
+ tg.smart_callback_add 'changed', method(:tg_changed)
183
+ @bx0.pack_end tg
184
+ tg.show
185
+ end
186
+ @li = Elm::ElmList.new self do |li|
187
+ li.always_select_mode = true
188
+ li.size_hint_weight_expand
189
+ li.size_hint_align_set_fill
190
+ @bx0.pack_end li
191
+ li.show
192
+ end
193
+ @idx = Elm::ElmIndex.new self do |idx|
194
+ idx.smart_callback_add 'delay,changed', method(:index_changed)
195
+ idx.size_hint_weight_expand
196
+ resize_object_add idx
197
+ idx.show
198
+ end
199
+ ch = nil
200
+ TESTS.each do |l,m|
201
+ it = @li.item_append l, nil, nil, method(:fake)
202
+ if l[0]!=ch
203
+ ch = l[0]
204
+ @idx.item_append ch, it
205
+ end
206
+ end
207
+ @idx.item_go 0
208
+ @li.go
209
+ end
210
+ #
211
+ def fake data, evas_obj, event_info
212
+ puts 'FAKE'
213
+ end
214
+ #
215
+ def tg_changed data, evas_obj, event_info
216
+ Native.elm_mirrored_set Native.elm_toggle_state_get evas_obj
217
+ end
218
+ #
219
+ def index_changed data, evas_obj, event_info
220
+ Native.elm_list_item_show event_info
221
+ end
222
+ #
223
+ def on_delete data, evas_object, event_info
224
+ Elm.exit
225
+ end
226
+ end
227
+ #
228
+ def elm_main
229
+ win = TestWin.new 'test_elementare', 'Elementary Tests'
230
+ win.evas_object_resize 320, 480
231
+ win.show
232
+ end
233
+ #
234
+ Elm.init
235
+ #
236
+ Native.elm_app_info_set elm_main, 'elementary', 'images/logo.png'
237
+ Native.elm_app_compile_bin_dir_set PACKAGE_BIN_DIR
238
+ Native.elm_app_compile_data_dir_set PACKAGE_DATA_DIR
239
+ #
240
+ Elm.run
241
+ Elm.shutdown
242
+ #
243
+ # EOF
@@ -22,7 +22,7 @@ elm_win_resize_object_add win, bg
22
22
  evas_object_show bg
23
23
  #
24
24
  lb = elm_label_add win
25
- elm_label_label_set lb, "Hello World!"
25
+ elm_object_text_part_set lb, nil, "Hello World"
26
26
  evas_object_size_hint_weight_set lb, 1.0, 1.0
27
27
  elm_win_resize_object_add win, lb
28
28
  evas_object_show lb
data/test/test_elm_win.rb CHANGED
@@ -22,7 +22,7 @@ class MyWin < Elm::ElmWin
22
22
  end
23
23
  resize_object_add @bg
24
24
  @lb = Elm::ElmLabel.new(self) do |lb|
25
- lb.label = "Hello World!"
25
+ lb.text = "Hello World!"
26
26
  lb.size_hint_align_fill
27
27
  lb.size_hint_weight_expand
28
28
  end
@@ -48,4 +48,3 @@ Elm.run
48
48
  Elm.shutdown
49
49
  #
50
50
  # EOF
51
-
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ffi-efl
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.7
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - "J\xC3\xA9r\xC3\xA9my Zurcher"
@@ -116,6 +116,7 @@ files:
116
116
  - tasks/svn.rake
117
117
  - tasks/test.rake
118
118
  - test/test_edje.rb
119
+ - test/test_elementary.rb
119
120
  - test/test_elm_win-native.rb
120
121
  - test/test_elm_win.rb
121
122
  - test/test_evas.rb
@@ -150,6 +151,7 @@ signing_key:
150
151
  specification_version: 3
151
152
  summary: A ruby-ffi binding to efl libraries (Enlightenment Foundation Libraries)
152
153
  test_files:
154
+ - test/test_elementary.rb
153
155
  - test/test_elm_win.rb
154
156
  - test/test_evas.rb
155
157
  - test/test_edje.rb