On Wed, 4 Jan 2012 16:58:35 +0900 Jihoon Kim <imfin...@gmail.com> said:
i just made elm return invalid again > Raster, would you please change the return value as 'normal' of > ecore_imf_context_input_panel_layout_get and > edje_object_part_text_input_panel_layout_get like > elm_entry_input_panel_layout_get? > > I've attached the patch. > > Thanks. > > On Monday, January 2, 2012, Enlightenment SVN wrote: > > > Log: > > get rid of invalid panel layout and add hex and terminal. > > > > > > > > Author: raster > > Date: 2012-01-02 03:53:26 -0800 (Mon, 02 Jan 2012) > > New Revision: 66749 > > Trac: http://trac.enlightenment.org/e/changeset/66749 > > > > Modified: > > trunk/elementary/src/lib/elm_entry.c trunk/elementary/src/lib/elm_entry.h > > > > Modified: trunk/elementary/src/lib/elm_entry.c > > =================================================================== > > --- trunk/elementary/src/lib/elm_entry.c 2012-01-02 11:46:32 UTC > > (rev 66748) > > +++ trunk/elementary/src/lib/elm_entry.c 2012-01-02 11:53:26 UTC > > (rev 66749) > > @@ -3431,9 +3431,9 @@ > > EAPI Elm_Input_Panel_Layout > > elm_entry_input_panel_layout_get(Evas_Object *obj) > > { > > - ELM_CHECK_WIDTYPE(obj, widtype) ELM_INPUT_PANEL_LAYOUT_INVALID; > > + ELM_CHECK_WIDTYPE(obj, widtype) ELM_INPUT_PANEL_LAYOUT_NORMAL; > > Widget_Data *wd = elm_widget_data_get(obj); > > - if (!wd) return ELM_INPUT_PANEL_LAYOUT_INVALID; > > + if (!wd) return ELM_INPUT_PANEL_LAYOUT_NORMAL; > > > > return wd->input_panel_layout; > > } > > > > Modified: trunk/elementary/src/lib/elm_entry.h > > =================================================================== > > --- trunk/elementary/src/lib/elm_entry.h 2012-01-02 11:46:32 UTC > > (rev 66748) > > +++ trunk/elementary/src/lib/elm_entry.h 2012-01-02 11:53:26 UTC > > (rev 66749) > > @@ -26,8 +26,9 @@ > > ELM_INPUT_PANEL_LAYOUT_IP, /**< IP layout */ > > ELM_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */ > > ELM_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */ > > - ELM_INPUT_PANEL_LAYOUT_INVALID // XXX: remove this so we can expand > > -} Elm_Input_Panel_Layout; /**< Type of input panel (virtual keyboard) to > > use */ > > + ELM_INPUT_PANEL_LAYOUT_HEX, /**< Hexadecimal layout */ > > + ELM_INPUT_PANEL_LAYOUT_TERMINAL, /**< Command-line terminal layout */ > > +} Elm_Input_Panel_Layout; /**< Type of input panel (virtual keyboard) to > > use - this is a hint and may not provide exactly what is desired. */ > > > > typedef enum > > { > > @@ -871,8 +872,7 @@ > > * @param s The string (in markup) to be converted > > * @return The converted string (in UTF-8). It should be freed. > > */ > > -EAPI char *elm_entry_markup_to_utf8(const char *s) > > -EINA_MALLOC EINA_WARN_UNUSED_RESULT; > > +EAPI char *elm_entry_markup_to_utf8(const char *s); > > > > /** > > * This converts a UTF-8 string into markup (HTML-like). > > @@ -883,8 +883,7 @@ > > * @param s The string (in UTF-8) to be converted > > * @return The converted string (in markup). It should be freed. > > */ > > -EAPI char *elm_entry_utf8_to_markup(const char *s) > > -EINA_MALLOC EINA_WARN_UNUSED_RESULT; > > +EAPI char *elm_entry_utf8_to_markup(const char *s); > > > > /** > > * This sets the file (and implicitly loads it) for the text to display and > > @@ -1008,6 +1007,7 @@ > > * @param obj The scrolled entry object > > * @return the left widget inside the scroller > > */ > > +// XXX: deprecate - used elm_object_content_set() > > EAPI Evas_Object *elm_entry_icon_get(const Evas_Object *obj); > > > > /** > > @@ -1020,6 +1020,7 @@ > > * > > * @see elm_entry_icon_set() > > */ > > +// XXX: deprecate - used elm_object_content_set() > > EAPI Evas_Object *elm_entry_icon_unset(Evas_Object *obj); > > > > /** > > @@ -1045,6 +1046,7 @@ > > * > > * @see elm_entry_icon_set > > */ > > +// XXX: deprecate - used elm_object_content_set() > > EAPI void elm_entry_end_set(Evas_Object *obj, Evas_Object > > *end); > > > > /** > > @@ -1054,6 +1056,7 @@ > > * @param obj The scrolled entry object > > * @return the right widget inside the scroller > > */ > > +// XXX: deprecate - used elm_object_content_set() > > EAPI Evas_Object *elm_entry_end_get(const Evas_Object *obj); > > > > /** > > @@ -1066,6 +1069,7 @@ > > * > > * @see elm_entry_icon_set() > > */ > > +// XXX: deprecate - used elm_object_content_set() > > EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj); > > > > /** > > @@ -1113,7 +1117,58 @@ > > */ > > EAPI void elm_entry_bounce_get(const Evas_Object *obj, > > Eina_Bool *h_bounce, Eina_Bool *v_bounce); > > > > +/** > > + * Set the input panel layout of the entry > > + * > > + * @param obj The entry object > > + * @param layout layout type > > + */ > > +EAPI void elm_entry_input_panel_layout_set(Evas_Object > > *obj, Elm_Input_Panel_Layout layout); > > + > > +/** > > + * Get the input panel layout of the entry > > + * > > + * @param obj The entry object > > + * @return layout type > > + * > > + * @see elm_entry_input_panel_layout_set > > + */ > > +EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object > > *obj); > > + > > +/** > > + * Set the autocapitalization type on the immodule. > > + * > > + * @param obj The entry object > > + * @param autocapital_type The type of autocapitalization > > + */ > > +EAPI void elm_entry_autocapital_type_set(Evas_Object > > *obj, Elm_Autocapital_Type autocapital_type); > > + > > +/** > > + * Retrieve the autocapitalization type on the immodule. > > + * > > + * @param obj The entry object > > + * @return autocapitalization type > > + */ > > +EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object > > *obj); > > + > > +/** > > + * Sets the attribute to show the input panel automatically. > > + * > > + * @param obj The entry object > > + * @param enabled If true, the input panel is appeared when entry is > > clicked or has a focus > > + */ > > +EAPI void elm_entry_input_panel_enabled_set(Evas_Object > > *obj, Eina_Bool enabled); > > + > > +/** > > + * Retrieve the attribute to show the input panel automatically. > > + * > > + * @param obj The entry object > > + * @return EINA_TRUE if input panel will be appeared when the entry is > > clicked or has a focus, EINA_FALSE otherwise > > + */ > > +EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object > > *obj); > > + > > /* pre-made filters for entries */ > > + > > /** > > * @typedef Elm_Entry_Filter_Limit_Size > > * > > @@ -1193,56 +1248,7 @@ > > * directly with elm_object_text_set() > > */ > > EAPI void elm_entry_filter_accept_set(void *data, > > Evas_Object *entry, char **text); > > -/** > > - * Set the input panel layout of the entry > > - * > > - * @param obj The entry object > > - * @param layout layout type > > - */ > > -EAPI void elm_entry_input_panel_layout_set(Evas_Object > > *obj, Elm_Input_Panel_Layout layout); > > > > /** > > - * Get the input panel layout of the entry > > - * > > - * @param obj The entry object > > - * @return layout type > > - * > > - * @see elm_entry_input_panel_layout_set > > - */ > > -EAPI Elm_Input_Panel_Layout elm_entry_input_panel_layout_get(Evas_Object > > *obj); > > - > > -/** > > - * Set the autocapitalization type on the immodule. > > - * > > - * @param obj The entry object > > - * @param autocapital_type The type of autocapitalization > > - */ > > -EAPI void elm_entry_autocapital_type_set(Evas_Object > > *obj, Elm_Autocapital_Type autocapital_type); > > - > > -/** > > - * Retrieve the autocapitalization type on the immodule. > > - * > > - * @param obj The entry object > > - * @return autocapitalization type > > - */ > > -EAPI Elm_Autocapital_Type elm_entry_autocapital_type_get(Evas_Object > > *obj); > > - > > -/** > > - * Sets the attribute to show the input panel automatically. > > - * > > - * @param obj The entry object > > - * @param enabled If true, the input panel is appeared when entry is > > clicked or has a focus > > - */ > > -EAPI void elm_entry_input_panel_enabled_set(Evas_Object > > *obj, Eina_Bool enabled); > > - > > -/** > > - * Retrieve the attribute to show the input panel automatically. > > - * > > - * @param obj The entry object > > - * @return EINA_TRUE if input panel will be appeared when the entry is > > clicked or has a focus, EINA_FALSE otherwise > > - */ > > -EAPI Eina_Bool elm_entry_input_panel_enabled_get(Evas_Object > > *obj); > > - > > -/** > > * @} > > */ > > > > > > > > ------------------------------------------------------------------------------ > > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > > infrastructure or vast IT resources to deliver seamless, secure access to > > virtual desktops. With this all-in-one solution, easily deploy virtual > > desktops for less than the cost of PCs and save 60% on VDI infrastructure > > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > _______________________________________________ > > enlightenment-svn mailing list > > enlightenment-...@lists.sourceforge.net <javascript:;> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel