From 1fcc5a2081da0956980f6369f7b2239a025150c1 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 24 Nov 2011 16:11:03 +0900 Subject: [PATCH] [navigationbar] Remove external --- src/edje_externals/Makefile.am | 1 - src/edje_externals/elm_navigationbar.c | 110 --------------------------------- src/edje_externals/modules.inc | 1 - 3 files changed, 112 deletions(-) delete mode 100644 src/edje_externals/elm_navigationbar.c diff --git a/src/edje_externals/Makefile.am b/src/edje_externals/Makefile.am index c69dfb9..eec2334 100644 --- a/src/edje_externals/Makefile.am +++ b/src/edje_externals/Makefile.am @@ -53,7 +53,6 @@ elm_label.c \ elm_list.c \ elm_map.c \ elm_multibuttonentry.c \ -elm_navigationbar.c \ elm_navigationbar_ex.c \ elm_nocontents.c \ elm_notify.c \ diff --git a/src/edje_externals/elm_navigationbar.c b/src/edje_externals/elm_navigationbar.c deleted file mode 100644 index 16105b3..0000000 --- a/src/edje_externals/elm_navigationbar.c +++ /dev/null @@ -1,110 +0,0 @@ -#include - -#include "private.h" - -typedef struct _Elm_Params_Navigationbar -{ - Eina_Bool disable_animation_exists:1; - Eina_Bool disable_animation:1; - Eina_Bool hidden_exists:1; - Eina_Bool hidden:1; -} Elm_Params_Navigationbar; - - -static void -external_navigationbar_state_set(void *data __UNUSED__, Evas_Object *obj, const void *from_params, const void *to_params, float pos __UNUSED__) -{ - const Elm_Params_Navigationbar *p; - - if (to_params) p = to_params; - else if (from_params) p = from_params; - else return; - - if(p->disable_animation_exists) elm_navigationbar_animation_disabled_set(obj, p->disable_animation); - if(p->hidden_exists) elm_navigationbar_hidden_set(obj, p->hidden); -} - -static Eina_Bool -external_navigationbar_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_External_Param *param) -{ - if (!strcmp(param->name, "disable animation")) - { - if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) - { - elm_navigationbar_animation_disabled_set(obj, param->i); - return EINA_TRUE; - } - } - else if (!strcmp(param->name, "hidden")) - { - if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) - { - elm_navigationbar_hidden_set(obj, param->i); - return EINA_TRUE; - } - } - ERR("unknown parameter '%s' of type '%s'", - param->name, edje_external_param_type_str(param->type)); - - return EINA_FALSE; -} - -static Eina_Bool -external_navigationbar_param_get(void *data __UNUSED__, const Evas_Object *obj __UNUSED__, Edje_External_Param *param) -{ - ERR("unknown parameter '%s' of type '%s'", - param->name, edje_external_param_type_str(param->type)); - - return EINA_FALSE; -} - -static void * -external_navigationbar_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const Eina_List *params) -{ - Elm_Params_Navigationbar *mem; - Edje_External_Param *param; - const Eina_List *l; - - mem = calloc(1, sizeof(Elm_Params_Navigationbar)); - if (!mem) - return NULL; - - EINA_LIST_FOREACH(params, l, param) - { - if (!strcmp(param->name, "disable animation")) - { - mem->disable_animation = !!param->i; - mem->disable_animation_exists = EINA_TRUE; - } - else if (!strcmp(param->name, "hidden")) - { - mem->hidden = !!param->i; - mem->hidden_exists = EINA_TRUE; - } - } - - return mem; -} - -static Evas_Object *external_navigationbar_content_get(void *data __UNUSED__, - const Evas_Object *obj __UNUSED__, const char *content __UNUSED__) -{ - ERR("so content"); - return NULL; -} - -static void -external_navigationbar_params_free(void *params) -{ - Elm_Params_Navigationbar* mem = params; - free(mem); -} - -static Edje_External_Param_Info external_navigationbar_params[] = { - EDJE_EXTERNAL_PARAM_INFO_BOOL("disable animation"), - EDJE_EXTERNAL_PARAM_INFO_BOOL("hidden"), - EDJE_EXTERNAL_PARAM_INFO_SENTINEL -}; - -DEFINE_EXTERNAL_ICON_ADD(navigationbar, "navigationbar"); -DEFINE_EXTERNAL_TYPE_SIMPLE(navigationbar, "Navigationbar"); diff --git a/src/edje_externals/modules.inc b/src/edje_externals/modules.inc index 4bf70a7..6e7aa13 100644 --- a/src/edje_externals/modules.inc +++ b/src/edje_externals/modules.inc @@ -19,7 +19,6 @@ DEFINE_TYPE(hoversel) DEFINE_TYPE(list) DEFINE_TYPE(map) DEFINE_TYPE(multibuttonentry) -DEFINE_TYPE(navigationbar) DEFINE_TYPE(navigationbar_ex) DEFINE_TYPE(nocontents) DEFINE_TYPE(page_control) -- 2.7.4