summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2020-01-09 13:44:50 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-01-09 13:44:50 +0900
commit622f0b188f165e5b561eb3acae9721a62e731333 (patch)
treeb44c42b5472836115670fb5241d9f393575f3464
parentad3e3bba3bf8bb6080f0ad49992df81b05eb4187 (diff)
efl.ui.textbox: rename selection_handler to selection_handles
Summary: efl.ui.textbox: rename selection_handler to selection_handles Reviewers: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8522 Differential Revision: https://phab.enlightenment.org/D11042
-rw-r--r--src/lib/elementary/efl_ui_textbox.c16
-rw-r--r--src/lib/elementary/efl_ui_textbox.eo2
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/elementary/efl_ui_textbox.c b/src/lib/elementary/efl_ui_textbox.c
index dd25e39419..507d7866a8 100644
--- a/src/lib/elementary/efl_ui_textbox.c
+++ b/src/lib/elementary/efl_ui_textbox.c
@@ -89,7 +89,7 @@ struct _Efl_Ui_Textbox_Data
89 Eina_Future *primary; 89 Eina_Future *primary;
90 Eina_Future *clipboard; 90 Eina_Future *clipboard;
91 } sel_future; 91 } sel_future;
92 Eina_Bool sel_handler_enabled : 1; 92 Eina_Bool sel_handles_enabled : 1;
93 Eina_Bool start_handler_down : 1; 93 Eina_Bool start_handler_down : 1;
94 Eina_Bool start_handler_shown : 1; 94 Eina_Bool start_handler_shown : 1;
95 Eina_Bool end_handler_down : 1; 95 Eina_Bool end_handler_down : 1;
@@ -428,7 +428,7 @@ _update_selection_handler(Eo *obj)
428 return; 428 return;
429 } 429 }
430 430
431 if (sd->sel_handler_enabled) 431 if (sd->sel_handles_enabled)
432 { 432 {
433 Eina_Rect rect; 433 Eina_Rect rect;
434 Eina_Position2D off; 434 Eina_Position2D off;
@@ -1886,7 +1886,7 @@ _efl_ui_textbox_efl_object_constructor(Eo *obj, Efl_Ui_Textbox_Data *sd)
1886 efl_text_interactive_selection_allowed_set(obj, EINA_TRUE); 1886 efl_text_interactive_selection_allowed_set(obj, EINA_TRUE);
1887 sd->drop_format = EFL_UI_SELECTION_FORMAT_MARKUP | EFL_UI_SELECTION_FORMAT_IMAGE; 1887 sd->drop_format = EFL_UI_SELECTION_FORMAT_MARKUP | EFL_UI_SELECTION_FORMAT_IMAGE;
1888 sd->last.scroll = EINA_SIZE2D(0, 0); 1888 sd->last.scroll = EINA_SIZE2D(0, 0);
1889 sd->sel_handler_enabled = EINA_FALSE; 1889 sd->sel_handles_enabled = EINA_FALSE;
1890 1890
1891 return obj; 1891 return obj;
1892} 1892}
@@ -2089,16 +2089,16 @@ _efl_ui_textbox_selection_get(const Eo *obj, Efl_Ui_Textbox_Data *sd EINA_UNUSED
2089} 2089}
2090 2090
2091EOLIAN static void 2091EOLIAN static void
2092_efl_ui_textbox_selection_handler_enabled_set(Eo *obj EINA_UNUSED, Efl_Ui_Textbox_Data *sd, Eina_Bool enabled) 2092_efl_ui_textbox_selection_handles_enabled_set(Eo *obj EINA_UNUSED, Efl_Ui_Textbox_Data *sd, Eina_Bool enabled)
2093{ 2093{
2094 if (sd->sel_handler_enabled == enabled) return; 2094 if (sd->sel_handles_enabled == enabled) return;
2095 sd->sel_handler_enabled = enabled; 2095 sd->sel_handles_enabled = enabled;
2096} 2096}
2097 2097
2098EOLIAN static Eina_Bool 2098EOLIAN static Eina_Bool
2099_efl_ui_textbox_selection_handler_enabled_get(const Eo *obj EINA_UNUSED, Efl_Ui_Textbox_Data *sd) 2099_efl_ui_textbox_selection_handles_enabled_get(const Eo *obj EINA_UNUSED, Efl_Ui_Textbox_Data *sd)
2100{ 2100{
2101 return sd->sel_handler_enabled; 2101 return sd->sel_handles_enabled;
2102} 2102}
2103 2103
2104static void 2104static void
diff --git a/src/lib/elementary/efl_ui_textbox.eo b/src/lib/elementary/efl_ui_textbox.eo
index b723c59e44..3f8097a90a 100644
--- a/src/lib/elementary/efl_ui_textbox.eo
+++ b/src/lib/elementary/efl_ui_textbox.eo
@@ -45,7 +45,7 @@ class @beta Efl.Ui.Textbox extends Efl.Ui.Layout_Base implements Efl.Input.Click
45 format: Efl.Ui.Selection_Format; [[Format for copy & paste.]] 45 format: Efl.Ui.Selection_Format; [[Format for copy & paste.]]
46 } 46 }
47 } 47 }
48 @property selection_handler_enabled { 48 @property selection_handles_enabled {
49 [[This enables or disables the entry's selection handlers.]] 49 [[This enables or disables the entry's selection handlers.]]
50 set { 50 set {
51 } 51 }