From 1444ad8edb6e289437ad4bb960a02236bf262480 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 20 Mar 2014 23:50:46 +0900 Subject: working codes. --- config/default/base.src | 1 + config/mobile/base.src | 1 + config/standard/base.src | 1 + src/lib/elm_config.c | 5 +++++ src/lib/elm_widget.c | 2 ++ 5 files changed, 10 insertions(+) diff --git a/config/default/base.src b/config/default/base.src index 1f274e175..c7860496c 100644 --- a/config/default/base.src +++ b/config/default/base.src @@ -45,6 +45,7 @@ group "Elm_Config" struct { value "focus_highlight_enable" uchar: 0; value "focus_highlight_animate" uchar: 0; value "focus_highlight_clip_disable" uchar: 0; + value "focus_move_policy" uchar: 0; value "toolbar_shrink_mode" int: 3; value "fileselector_expand_enable" uchar: 0; value "inwin_dialogs_enable" uchar: 1; diff --git a/config/mobile/base.src b/config/mobile/base.src index 9fa752099..60a152129 100644 --- a/config/mobile/base.src +++ b/config/mobile/base.src @@ -45,6 +45,7 @@ group "Elm_Config" struct { value "focus_highlight_enable" uchar: 0; value "focus_highlight_animate" uchar: 0; value "focus_highlight_clip_disable" uchar: 0; + value "focus_move_policy" uchar: 0; value "toolbar_shrink_mode" int: 3; value "fileselector_expand_enable" uchar: 0; value "inwin_dialogs_enable" uchar: 1; diff --git a/config/standard/base.src b/config/standard/base.src index e09e857fa..838d95804 100644 --- a/config/standard/base.src +++ b/config/standard/base.src @@ -45,6 +45,7 @@ group "Elm_Config" struct { value "focus_highlight_enable" uchar: 0; value "focus_highlight_animate" uchar: 0; value "focus_highlight_clip_disable" uchar: 1; + value "focus_move_policy" uchar: 0; value "toolbar_shrink_mode" int: 3; value "fileselector_expand_enable" uchar: 1; value "fileselector_double_tap_navigation_enable" uchar: 1; diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index dea64cefc..0f6fb084d 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -505,6 +505,7 @@ _desc_init(void) ELM_CONFIG_VAL(D, T, focus_highlight_enable, T_UCHAR); ELM_CONFIG_VAL(D, T, focus_highlight_animate, T_UCHAR); ELM_CONFIG_VAL(D, T, focus_highlight_clip_disable, T_UCHAR); + ELM_CONFIG_VAL(D, T, focus_move_policy, T_UCHAR); ELM_CONFIG_VAL(D, T, toolbar_shrink_mode, T_INT); ELM_CONFIG_VAL(D, T, fileselector_expand_enable, T_UCHAR); ELM_CONFIG_VAL(D, T, fileselector_double_tap_navigation_enable, T_UCHAR); @@ -1504,6 +1505,7 @@ _config_load(void) _elm_config->focus_highlight_enable = EINA_FALSE; _elm_config->focus_highlight_animate = EINA_TRUE; _elm_config->focus_highlight_clip_disable = EINA_FALSE; + _elm_config->focus_move_policy = ELM_FOCUS_MOVE_POLICY_CLICK; _elm_config->toolbar_shrink_mode = 2; _elm_config->fileselector_expand_enable = EINA_FALSE; _elm_config->fileselector_double_tap_navigation_enable = EINA_FALSE; @@ -2032,6 +2034,9 @@ _env_get(void) s = getenv("ELM_FOCUS_HIGHLIGHT_CLIP_DISABLE"); if (s) _elm_config->focus_highlight_clip_disable = !!atoi(s); + s = getenv("ELM_FOCUS_MOVE_POLICY"); + if (s) _elm_config->focus_move_policy = !!atoi(s); + s = getenv("ELM_TOOLBAR_SHRINK_MODE"); if (s) _elm_config->toolbar_shrink_mode = atoi(s); diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 973b113a7..9d224418f 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -271,6 +271,8 @@ _elm_widget_evas_smart_add(Eo *obj, Elm_Widget_Smart_Data *priv) _obj_mouse_move, obj); evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_UP, _obj_mouse_up, obj); + evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_UP, + _obj_mouse_up, obj); /* just a helper for inheriting classes */ if (priv->resize_obj) { -- cgit v1.2.1