forked from enlightenment/efl
Use profile configuration on fileselectors.
The profile now defines the default value for expand and inwin modes. The fileselectors tests were changed to reflect that. Note that the default for desktops is expand mode enabled and inwin disabled and for mobiles is the opposite. SVN revision: 53728
This commit is contained in:
parent
99191cda20
commit
61a5564850
|
@ -86,7 +86,6 @@ test_fileselector_button(void *data __UNUSED__, Evas_Object *obj __UNUSED__, voi
|
|||
fs_bt = elm_fileselector_button_add(win);
|
||||
elm_fileselector_button_label_set(fs_bt, "Select a file");
|
||||
elm_fileselector_button_icon_set(fs_bt, ic);
|
||||
elm_fileselector_button_inwin_mode_set(fs_bt, EINA_TRUE);
|
||||
|
||||
elm_box_pack_end(vbox, fs_bt);
|
||||
evas_object_show(fs_bt);
|
||||
|
|
|
@ -91,7 +91,6 @@ test_fileselector_entry(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void
|
|||
fs_en = elm_fileselector_entry_add(win);
|
||||
elm_fileselector_entry_button_label_set(fs_en, "Select a file");
|
||||
elm_fileselector_entry_button_icon_set(fs_en, ic);
|
||||
elm_fileselector_entry_inwin_mode_set(fs_en, EINA_TRUE);
|
||||
evas_object_size_hint_weight_set(fs_en, EVAS_HINT_EXPAND, 0.0);
|
||||
evas_object_size_hint_align_set(fs_en, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
|
||||
|
|
|
@ -402,7 +402,7 @@ elm_fileselector_add(Evas_Object *parent)
|
|||
|
||||
// Elementary Widget
|
||||
wd = ELM_NEW(Widget_Data);
|
||||
wd->expand = EINA_FALSE;
|
||||
wd->expand = _elm_config->fileselector_expand_enable;
|
||||
obj = elm_widget_add(evas_object_evas_get(parent));
|
||||
ELM_SET_WIDTYPE(widtype, "fileselector");
|
||||
elm_widget_type_set(obj, "fileselector");
|
||||
|
|
|
@ -235,6 +235,8 @@ elm_fileselector_button_add(Evas_Object *parent)
|
|||
wd = ELM_NEW(Widget_Data);
|
||||
wd->window_title = eina_stringshare_add(DEFAULT_WINDOW_TITLE);
|
||||
wd->fsd.path = eina_stringshare_add(getenv("HOME"));
|
||||
wd->fsd.expandable = _elm_config->fileselector_expand_enable;
|
||||
wd->inwin_mode = _elm_config->inwin_dialogs_enable;
|
||||
wd->w = 400;
|
||||
wd->h = 400;
|
||||
|
||||
|
|
|
@ -236,6 +236,8 @@ elm_fileselector_entry_add(Evas_Object *parent)
|
|||
elm_widget_sub_object_add(obj, wd->button);
|
||||
evas_object_event_callback_add
|
||||
(wd->button, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _changed_size_hints, obj);
|
||||
elm_fileselector_button_expandable_set(wd->button,
|
||||
_elm_config->fileselector_expand_enable);
|
||||
|
||||
#define SIG_FWD(name) \
|
||||
evas_object_smart_callback_add(wd->button, SIG_##name, _##name##_fwd, obj)
|
||||
|
|
Loading…
Reference in New Issue