summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm_panes.c
diff options
context:
space:
mode:
authorRajeev Ranjan <rajeev.r@samsung.com>2011-10-11 02:38:59 +0000
committerMike McCormack <mikem@ring3k.org>2011-10-11 02:38:59 +0000
commitc5fb9253e1ac8d5dddff55f91d58fc21dffbf75a (patch)
tree843d5afcc9c5486acc025040b836bcaa9d076720 /src/edje_externals/elm_panes.c
parentfa61b07792fe3f8ee4e6e72ba7a8313a5b5761e4 (diff)
elementary: Add "fixed" property to panes edje interface
Signed-off-by: Rajeev Ranjan <rajeev.r@samsung.com> Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 63974
Diffstat (limited to 'src/edje_externals/elm_panes.c')
-rw-r--r--src/edje_externals/elm_panes.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/edje_externals/elm_panes.c b/src/edje_externals/elm_panes.c
index a965d310c..c27c1bde3 100644
--- a/src/edje_externals/elm_panes.c
+++ b/src/edje_externals/elm_panes.c
@@ -12,6 +12,8 @@ struct _Elm_Params_Panes {
12 Eina_Bool horizontal; 12 Eina_Bool horizontal;
13 Eina_Bool is_left_size; 13 Eina_Bool is_left_size;
14 double left_size; 14 double left_size;
15 Eina_Bool is_fixed;
16 Eina_Bool fixed;
15}; 17};
16 18
17static void external_panes_state_set(void *data __UNUSED__, 19static void external_panes_state_set(void *data __UNUSED__,
@@ -35,6 +37,9 @@ static void external_panes_state_set(void *data __UNUSED__,
35 37
36 if(p->is_horizontal) 38 if(p->is_horizontal)
37 elm_panes_horizontal_set(obj, p->horizontal); 39 elm_panes_horizontal_set(obj, p->horizontal);
40
41 if(p->is_fixed)
42 elm_panes_fixed_set(obj, p->fixed);
38} 43}
39 44
40static Eina_Bool external_panes_param_set(void *data __UNUSED__, 45static Eina_Bool external_panes_param_set(void *data __UNUSED__,
@@ -70,6 +75,12 @@ static Eina_Bool external_panes_param_set(void *data __UNUSED__,
70 elm_panes_content_left_size_set(obj, param->d); 75 elm_panes_content_left_size_set(obj, param->d);
71 return EINA_TRUE; 76 return EINA_TRUE;
72 } 77 }
78 else if ((!strcmp(param->name, "fixed"))
79 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
80 {
81 elm_panes_fixed_set(obj, param->i);
82 return EINA_TRUE;
83 }
73 84
74 ERR("unknown parameter '%s' of type '%s'", 85 ERR("unknown parameter '%s' of type '%s'",
75 param->name, edje_external_param_type_str(param->type)); 86 param->name, edje_external_param_type_str(param->type));
@@ -102,6 +113,12 @@ static Eina_Bool external_panes_param_get(void *data __UNUSED__,
102 param->d = elm_panes_content_left_size_get(obj); 113 param->d = elm_panes_content_left_size_get(obj);
103 return EINA_TRUE; 114 return EINA_TRUE;
104 } 115 }
116 else if ((!strcmp(param->name, "fixed"))
117 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
118 {
119 param->i = elm_panes_fixed_get(obj);
120 return EINA_TRUE;
121 }
105 122
106 ERR("unknown parameter '%s' of type '%s'", 123 ERR("unknown parameter '%s' of type '%s'",
107 param->name, edje_external_param_type_str(param->type)); 124 param->name, edje_external_param_type_str(param->type));
@@ -135,6 +152,12 @@ static void * external_panes_params_parse(void *data __UNUSED__, Evas_Object *ob
135 mem->is_left_size = EINA_TRUE; 152 mem->is_left_size = EINA_TRUE;
136 mem->left_size = param->d; 153 mem->left_size = param->d;
137 } 154 }
155 else if (!strcmp(param->name, "fixed"))
156 {
157 mem->is_fixed = EINA_TRUE;
158 mem->fixed = param->i;
159 }
160
138 } 161 }
139 162
140 return mem; 163 return mem;
@@ -164,6 +187,7 @@ static Edje_External_Param_Info external_panes_params[] = {
164 EDJE_EXTERNAL_PARAM_INFO_STRING("content right"), 187 EDJE_EXTERNAL_PARAM_INFO_STRING("content right"),
165 EDJE_EXTERNAL_PARAM_INFO_BOOL("horizontal"), 188 EDJE_EXTERNAL_PARAM_INFO_BOOL("horizontal"),
166 EDJE_EXTERNAL_PARAM_INFO_DOUBLE("left size"), 189 EDJE_EXTERNAL_PARAM_INFO_DOUBLE("left size"),
190 EDJE_EXTERNAL_PARAM_INFO_BOOL("fixed"),
167 EDJE_EXTERNAL_PARAM_INFO_SENTINEL 191 EDJE_EXTERNAL_PARAM_INFO_SENTINEL
168}; 192};
169 193