forked from enlightenment/efl
Use toggle instead of button. It is appropriate for this example.
SVN revision: 64067
This commit is contained in:
parent
971284e7f6
commit
e2f3ddea3a
|
@ -104,27 +104,28 @@ test_fileselector_button(void *data __UNUSED__,
|
||||||
elm_box_pack_end(vbox, hbox);
|
elm_box_pack_end(vbox, hbox);
|
||||||
evas_object_show(hbox);
|
evas_object_show(hbox);
|
||||||
|
|
||||||
bt = elm_button_add(win);
|
bt = elm_toggle_add(win);
|
||||||
elm_object_text_set(bt, "Toggle current selection text entry");
|
elm_object_text_set(bt, "current selection text entry");
|
||||||
evas_object_smart_callback_add(bt, "clicked", _current_sel_toggle, fs_bt);
|
evas_object_smart_callback_add(bt, "changed", _current_sel_toggle, fs_bt);
|
||||||
elm_box_pack_end(hbox, bt);
|
elm_box_pack_end(hbox, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
|
||||||
bt = elm_button_add(win);
|
bt = elm_toggle_add(win);
|
||||||
elm_object_text_set(bt, "Toggle inwin mode");
|
elm_object_text_set(bt, "Inwin mode");
|
||||||
evas_object_smart_callback_add(bt, "clicked", _inwin_mode_toggle, fs_bt);
|
elm_toggle_state_set (bt, EINA_TRUE);
|
||||||
|
evas_object_smart_callback_add(bt, "changed", _inwin_mode_toggle, fs_bt);
|
||||||
elm_box_pack_end(hbox, bt);
|
elm_box_pack_end(hbox, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
|
||||||
bt = elm_button_add(win);
|
bt = elm_toggle_add(win);
|
||||||
elm_object_text_set(bt, "Toggle folder only mode");
|
elm_object_text_set(bt, "Folder only mode");
|
||||||
evas_object_smart_callback_add(bt, "clicked", _folder_only_toggle, fs_bt);
|
evas_object_smart_callback_add(bt, "changed", _folder_only_toggle, fs_bt);
|
||||||
elm_box_pack_end(hbox, bt);
|
elm_box_pack_end(hbox, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
|
||||||
bt = elm_button_add(win);
|
bt = elm_toggle_add(win);
|
||||||
elm_object_text_set(bt, "Toggle expandable mode");
|
elm_object_text_set(bt, "Expandable mode");
|
||||||
evas_object_smart_callback_add(bt, "clicked", _expandable_toggle, fs_bt);
|
evas_object_smart_callback_add(bt, "changed", _expandable_toggle, fs_bt);
|
||||||
elm_box_pack_end(hbox, bt);
|
elm_box_pack_end(hbox, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue