summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals/elm_fileselector_button.c
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2014-01-21 22:50:35 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2014-01-21 22:50:35 +0900
commit26dd1db99c95c7c3b03429e3a57959c2d8bc195b (patch)
treecbb789c8302e0f7396deec5c664ff87238c69fa5 /legacy/elementary/src/edje_externals/elm_fileselector_button.c
parent5d45fc195f95341500178c80728a625d00ad7076 (diff)
Introduce fileselector interface and applied to elm_fileselector.
Summary: fileselector_button and fileselector_entry should have almost same interfaces with fileselector. Previously , we exposed them individually such as elm_fileselector_is_save_set(). Instead of adding the same APIs three times, we can reuse one fileselector's API using Eo interface. This patch introduced fileselector interface and applied it to elm_fileselector. Reviewers: seoz, raster Reviewed By: raster Differential Revision: https://phab.enlightenment.org/D475
Diffstat (limited to 'legacy/elementary/src/edje_externals/elm_fileselector_button.c')
-rw-r--r--legacy/elementary/src/edje_externals/elm_fileselector_button.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_fileselector_button.c b/legacy/elementary/src/edje_externals/elm_fileselector_button.c
index 6b74fba..5b485f6 100644
--- a/legacy/elementary/src/edje_externals/elm_fileselector_button.c
+++ b/legacy/elementary/src/edje_externals/elm_fileselector_button.c
@@ -31,13 +31,13 @@ external_fileselector_button_state_set(void *data EINA_UNUSED, Evas_Object *obj,
31 if (p->label) 31 if (p->label)
32 elm_object_text_set(obj, p->label); 32 elm_object_text_set(obj, p->label);
33 if (p->icon) elm_object_part_content_set(obj, "icon", p->icon); 33 if (p->icon) elm_object_part_content_set(obj, "icon", p->icon);
34 if (p->fs.path) elm_fileselector_button_path_set(obj, p->fs.path); 34 if (p->fs.path) elm_fileselector_path_set(obj, p->fs.path);
35 if (p->fs.is_save_set) 35 if (p->fs.is_save_set)
36 elm_fileselector_button_is_save_set(obj, p->fs.is_save); 36 elm_fileselector_is_save_set(obj, p->fs.is_save);
37 if (p->fs.folder_only_set) 37 if (p->fs.folder_only_set)
38 elm_fileselector_button_folder_only_set(obj, p->fs.folder_only); 38 elm_fileselector_folder_only_set(obj, p->fs.folder_only);
39 if (p->fs.expandable_set) 39 if (p->fs.expandable_set)
40 elm_fileselector_button_expandable_set(obj, p->fs.expandable); 40 elm_fileselector_expandable_set(obj, p->fs.expandable);
41 if (p->fs.inwin_mode_set) 41 if (p->fs.inwin_mode_set)
42 elm_fileselector_button_inwin_mode_set(obj, p->fs.inwin_mode); 42 elm_fileselector_button_inwin_mode_set(obj, p->fs.inwin_mode);
43} 43}
@@ -67,7 +67,7 @@ external_fileselector_button_param_set(void *data EINA_UNUSED, Evas_Object *obj,
67 { 67 {
68 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 68 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
69 { 69 {
70 elm_fileselector_button_path_set(obj, param->s); 70 elm_fileselector_path_set(obj, param->s);
71 return EINA_TRUE; 71 return EINA_TRUE;
72 } 72 }
73 } 73 }
@@ -75,7 +75,7 @@ external_fileselector_button_param_set(void *data EINA_UNUSED, Evas_Object *obj,
75 { 75 {
76 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 76 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
77 { 77 {
78 elm_fileselector_button_is_save_set(obj, param->i); 78 elm_fileselector_is_save_set(obj, param->i);
79 return EINA_TRUE; 79 return EINA_TRUE;
80 } 80 }
81 } 81 }
@@ -83,7 +83,7 @@ external_fileselector_button_param_set(void *data EINA_UNUSED, Evas_Object *obj,
83 { 83 {
84 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 84 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
85 { 85 {
86 elm_fileselector_button_folder_only_set(obj, param->i); 86 elm_fileselector_folder_only_set(obj, param->i);
87 return EINA_TRUE; 87 return EINA_TRUE;
88 } 88 }
89 } 89 }
@@ -91,7 +91,7 @@ external_fileselector_button_param_set(void *data EINA_UNUSED, Evas_Object *obj,
91 { 91 {
92 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 92 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
93 { 93 {
94 elm_fileselector_button_expandable_set(obj, param->i); 94 elm_fileselector_expandable_set(obj, param->i);
95 return EINA_TRUE; 95 return EINA_TRUE;
96 } 96 }
97 } 97 }
@@ -130,7 +130,7 @@ external_fileselector_button_param_get(void *data EINA_UNUSED, const Evas_Object
130 { 130 {
131 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 131 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
132 { 132 {
133 param->s = elm_fileselector_button_path_get(obj); 133 param->s = elm_fileselector_path_get(obj);
134 return EINA_TRUE; 134 return EINA_TRUE;
135 } 135 }
136 } 136 }
@@ -138,7 +138,7 @@ external_fileselector_button_param_get(void *data EINA_UNUSED, const Evas_Object
138 { 138 {
139 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 139 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
140 { 140 {
141 param->i = elm_fileselector_button_is_save_get(obj); 141 param->i = elm_fileselector_is_save_get(obj);
142 return EINA_TRUE; 142 return EINA_TRUE;
143 } 143 }
144 } 144 }
@@ -146,7 +146,7 @@ external_fileselector_button_param_get(void *data EINA_UNUSED, const Evas_Object
146 { 146 {
147 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 147 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
148 { 148 {
149 param->i = elm_fileselector_button_folder_only_get(obj); 149 param->i = elm_fileselector_folder_only_get(obj);
150 return EINA_TRUE; 150 return EINA_TRUE;
151 } 151 }
152 } 152 }
@@ -154,7 +154,7 @@ external_fileselector_button_param_get(void *data EINA_UNUSED, const Evas_Object
154 { 154 {
155 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 155 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
156 { 156 {
157 param->i = elm_fileselector_button_expandable_get(obj); 157 param->i = elm_fileselector_expandable_get(obj);
158 return EINA_TRUE; 158 return EINA_TRUE;
159 } 159 }
160 } 160 }