summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <juyung.seo@samsung.com>2014-03-20 23:50:46 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-23 00:56:10 +0900
commit1444ad8edb6e289437ad4bb960a02236bf262480 (patch)
treefc7f050ce9f8afd3f64d0068c5595dd5878c97d7
parente40243ade5abac0310ac4b4285a215066f6a1b64 (diff)
downloadelementary-devs/seoz/focus-mode.tar.gz
working codes.devs/seoz/focus-mode
-rw-r--r--config/default/base.src1
-rw-r--r--config/mobile/base.src1
-rw-r--r--config/standard/base.src1
-rw-r--r--src/lib/elm_config.c5
-rw-r--r--src/lib/elm_widget.c2
5 files changed, 10 insertions, 0 deletions
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)
{