And use Eina_Bool return values too.
authordevilhorns <devilhorns>
Tue, 28 Sep 2010 00:25:54 +0000 (00:25 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 28 Sep 2010 00:25:54 +0000 (00:25 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@52833 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_entry.c

index 94250f8..9cd81a4 100644 (file)
@@ -2458,11 +2458,11 @@ _edje_entry_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx __UNU
    Entry *en;
    const char *str;
 
-   if (!rp) return 0;
+   if (!rp) return EINA_FALSE;
    en = rp->entry_data;
    if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
        (rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_SELECTABLE))
-      return 0;
+      return EINA_FALSE;
 
    if (text)
      {
@@ -2471,11 +2471,9 @@ _edje_entry_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx __UNU
      }
 
    if (cursor_pos)
-     {
-        *cursor_pos = evas_textblock_cursor_pos_get(en->cursor);
-     }
+     *cursor_pos = evas_textblock_cursor_pos_get(en->cursor);
 
-   return 1;
+   return EINA_TRUE;
 }
 
 static Eina_Bool