[src/edje_externals/elm_panes.c] Updated the external interfaces for elm_panes.
authorRajeev Ranjan <rajeev.r@samsung.com>
Fri, 12 Nov 2010 09:23:35 +0000 (14:53 +0530)
committerRajeev Ranjan <rajeev.r@samsung.com>
Fri, 12 Nov 2010 09:23:35 +0000 (14:53 +0530)
src/edje_externals/elm_panes.c

index a965d31..45547c9 100644 (file)
@@ -12,6 +12,8 @@ struct _Elm_Params_Panes {
        Eina_Bool horizontal;
        Eina_Bool is_left_size;
        double left_size;
+       Eina_Bool is_fixed;
+       Eina_Bool fixed;
 };
 
 static void external_panes_state_set(void *data __UNUSED__,
@@ -35,6 +37,9 @@ static void external_panes_state_set(void *data __UNUSED__,
 
        if(p->is_horizontal)
                elm_panes_horizontal_set(obj, p->horizontal);
+
+       if(p->is_fixed)
+                       elm_panes_fixed_set(obj, p->fixed);
 }
 
 static Eina_Bool external_panes_param_set(void *data __UNUSED__,
@@ -70,6 +75,12 @@ static Eina_Bool external_panes_param_set(void *data __UNUSED__,
                elm_panes_content_left_size_set(obj, param->d);
                return EINA_TRUE;
        }
+        else if ((!strcmp(param->name, "fixed"))
+                        && (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
+        {
+                elm_panes_fixed_set(obj, param->i);
+                return EINA_TRUE;
+        }
 
        ERR("unknown parameter '%s' of type '%s'",
                        param->name, edje_external_param_type_str(param->type));
@@ -102,6 +113,12 @@ static Eina_Bool external_panes_param_get(void *data __UNUSED__,
                param->d = elm_panes_content_left_size_get(obj);
                return EINA_TRUE;
        }
+        else if ((!strcmp(param->name, "fixed"))
+                        && (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
+        {
+                param->i = elm_panes_fixed_get(obj);
+                return EINA_TRUE;
+        }
 
        ERR("unknown parameter '%s' of type '%s'",
                        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
                        mem->is_left_size = EINA_TRUE;
                        mem->left_size = param->d;
                }
+                else if (!strcmp(param->name, "fixed"))
+                {
+                        mem->is_fixed = EINA_TRUE;
+                        mem->fixed = param->i;
+                }
+
        }
 
        return mem;
@@ -164,6 +187,7 @@ static Edje_External_Param_Info external_panes_params[] = {
                EDJE_EXTERNAL_PARAM_INFO_STRING("content right"),
                EDJE_EXTERNAL_PARAM_INFO_BOOL("horizontal"),
                EDJE_EXTERNAL_PARAM_INFO_DOUBLE("left size"),
+               EDJE_EXTERNAL_PARAM_INFO_BOOL("fixed"),
                EDJE_EXTERNAL_PARAM_INFO_SENTINEL
 };