diff options
author | Vitor Sousa <vitorsousasilva@gmail.com> | 2016-01-14 18:17:10 -0200 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2016-02-09 13:34:37 -0200 |
commit | a7c700648a779ea6a2697ff5dc51798a6a9fdded (patch) | |
tree | f9f1ebdad9002c26ceb9d26750da3a6ed086d203 | |
parent | 888103a1465e927fea1bb203ba2628fe9e2ab37f (diff) | |
download | elementary-a7c700648a779ea6a2697ff5dc51798a6a9fdded.tar.gz |
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.
-rw-r--r-- | src/lib/elm_entry.eo | 16 | ||||
-rw-r--r-- | 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 5bdcda212..1609cb3ed 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 82bf82bb4..cee23836c 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 |