felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=a7c700648a779ea6a2697ff5dc51798a6a9fdded
commit a7c700648a779ea6a2697ff5dc51798a6a9fdded Author: Vitor Sousa <vitorsousasi...@gmail.com> Date: Thu Jan 14 18:17:10 2016 -0200 elm entry: Move the declaration of Elm_Cnp_Mode to elm_entry.eo Move the enumeration Elm_Cnp_Mode to elm_entry.eo to make it more accessible for binding generation. Also rename it to Elm.Cnp_Mode. --- src/lib/elm_entry.eo | 16 +++++++++++++++- src/lib/elm_entry_common.h | 12 ------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/lib/elm_entry.eo b/src/lib/elm_entry.eo index 5bdcda2..1609cb3 100644 --- a/src/lib/elm_entry.eo +++ b/src/lib/elm_entry.eo @@ -96,6 +96,20 @@ enum Elm.Input.Hints @since 1.12]] } + +enum Elm.Cnp_Mode +{ + [[ + Enum of entry's copy & paste policy. + + See also @Elm.Entry.cnp_mode.set, + @Elm.Entry.cnp_mode.get. + ]] + markup, [[ copy & paste text with markup tag ]] + no_image, [[ copy & paste text without item(image) tag ]] + plaintext, [[ copy & paste text without markup tag ]] +} + class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface, Elm.Interface_Atspi_Text, Elm.Interface_Atspi_Editable_Text, Efl.File, Evas.Selectable_Interface, Evas.Scrollable_Interface) @@ -172,7 +186,7 @@ class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface, ]] } values { - cnp_mode: Elm_Cnp_Mode; [[One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.]] + cnp_mode: Elm.Cnp_Mode; [[One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.]] } } @property file_text_format { diff --git a/src/lib/elm_entry_common.h b/src/lib/elm_entry_common.h index 82bf82b..cee2383 100644 --- a/src/lib/elm_entry_common.h +++ b/src/lib/elm_entry_common.h @@ -228,18 +228,6 @@ struct _Elm_Entry_Filter_Accept_Set EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text); /** - * Enum of entry's copy & paste policy. - * - * @see elm_entry_cnp_mode_set() - * @see elm_entry_cnp_mode_get() - */ -typedef enum { - ELM_CNP_MODE_MARKUP, /**< copy & paste text with markup tag */ - ELM_CNP_MODE_NO_IMAGE, /**< copy & paste text without item(image) tag */ - ELM_CNP_MODE_PLAINTEXT /**< copy & paste text without markup tag */ -} Elm_Cnp_Mode; - -/** * Get the text of the contextual menu item of entry. * * @param item The item to get the label --