change default return value of input_panel_layout_get
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 3 Jan 2012 10:33:35 +0000 (19:33 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 3 Jan 2012 10:33:50 +0000 (19:33 +0900)
Change-Id: I0be71d16e21cfa863c36bf348272ae5a1fdb8404

src/lib/ecore_imf/Ecore_IMF.h
src/lib/ecore_imf/ecore_imf_context.c

index 9e671f4..a5f0919 100644 (file)
@@ -43,8 +43,7 @@ typedef enum
    ECORE_IMF_INPUT_PANEL_SHIFT_MODE_EVENT,         /**< Input Panel SHIFT MODE */
    ECORE_IMF_INPUT_PANEL_PREEDIT_MODE_EVENT,       /**< Input Panel PREEDIT MODE */
    ECORE_IMF_INPUT_PANEL_COMPLETION_MODE_EVENT,    /**< Input Panel COMPLETION MODE */
-   ECORE_IMF_INPUT_PANEL_CUSTOM_INPUT_MODE_EVENT,  /**< Input Panel CUSTOM INPUT MODE */
-   ECORE_IMF_INPUT_PANEL_EVENT_INVALID
+   ECORE_IMF_INPUT_PANEL_CUSTOM_INPUT_MODE_EVENT   /**< Input Panel CUSTOM INPUT MODE */
 } Ecore_IMF_Input_Panel_Event;
 
 typedef enum
@@ -183,8 +182,7 @@ typedef enum
    ECORE_IMF_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
    ECORE_IMF_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
    ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
-   ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
-   ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID
+   ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY       /**< Number Only layout */
 } Ecore_IMF_Input_Panel_Layout;
 
 typedef enum
index 4af61a3..a2e796b 100644 (file)
@@ -1151,7 +1151,7 @@ ecore_imf_context_input_panel_layout_get (Ecore_IMF_Context *ctx)
      {
         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)
@@ -1159,7 +1159,7 @@ ecore_imf_context_input_panel_layout_get (Ecore_IMF_Context *ctx)
         return ctx->input_panel_layout;
      }
    else
-     return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
+     return ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
 }
 
 /**