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
> [email protected] <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
Index: src/lib/edje_util.c
===================================================================
--- src/lib/edje_util.c (revision 66854)
+++ src/lib/edje_util.c (working copy)
@@ -1748,14 +1748,14 @@ edje_object_part_text_input_panel_layout_get(const
    Edje_Real_Part *rp;
 
    ed = _edje_fetch(obj);
-   if ((!ed) || (!part)) return EDJE_INPUT_PANEL_LAYOUT_INVALID;
+   if ((!ed) || (!part)) return EDJE_INPUT_PANEL_LAYOUT_NORMAL;
    rp = _edje_real_part_recursive_get(ed, part);
    if (!rp) return EINA_FALSE;
    if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
      {
         return _edje_entry_input_panel_layout_get(rp);
      }
-   return EDJE_INPUT_PANEL_LAYOUT_INVALID;
+   return EDJE_INPUT_PANEL_LAYOUT_NORMAL;
 }
 
 EAPI void
Index: src/lib/edje_entry.c
===================================================================
--- src/lib/edje_entry.c        (revision 66854)
+++ src/lib/edje_entry.c        (working copy)
@@ -2844,13 +2844,13 @@ Edje_Input_Panel_Layout
 _edje_entry_input_panel_layout_get(Edje_Real_Part *rp)
 {
    Entry *en = rp->entry_data;
-   if (!en) return EDJE_INPUT_PANEL_LAYOUT_INVALID;
+   if (!en) return EDJE_INPUT_PANEL_LAYOUT_NORMAL;
 #ifdef HAVE_ECORE_IMF
    if (en->imf_context)
      return ecore_imf_context_input_panel_layout_get(en->imf_context);
 #endif
 
-   return EDJE_INPUT_PANEL_LAYOUT_INVALID;
+   return EDJE_INPUT_PANEL_LAYOUT_NORMAL;
 }
 
 static void
Index: src/lib/ecore_imf/ecore_imf_context.c
===================================================================
--- src/lib/ecore_imf/ecore_imf_context.c       (revision 66854)
+++ src/lib/ecore_imf/ecore_imf_context.c       (working copy)
@@ -1134,7 +1134,7 @@ ecore_imf_context_input_panel_layout_get (Ecore_IM
      {
         ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
                          "ecore_imf_context_input_panel_layout_get");
-        return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
+        return ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
      }
 
    if (ctx->klass->input_panel_layout_get)
@@ -1142,7 +1142,7 @@ ecore_imf_context_input_panel_layout_get (Ecore_IM
         return ctx->input_panel_layout;
      }
    else
-     return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
+     return ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
 }
 
 /**
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to