discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fd6f6864675b62292d50f6ca679af4bc1b6c2997

commit fd6f6864675b62292d50f6ca679af4bc1b6c2997
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Thu Jul 3 10:45:59 2014 -0400

    move isedje() e_util and simplify/inline
---
 src/bin/e_menu.c  | 11 -----------
 src/bin/e_utils.h |  6 ++++++
 2 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/bin/e_menu.c b/src/bin/e_menu.c
index 3ec1dbd..4c9e1fb 100644
--- a/src/bin/e_menu.c
+++ b/src/bin/e_menu.c
@@ -724,17 +724,6 @@ e_menu_item_label_set(E_Menu_Item *mi, const char *label)
    mi->menu->changed = 1;
 }
 
-static Eina_Bool
-isedje(Evas_Object *obj)
-{
-   const char *type;
-   if (!obj) return EINA_FALSE;
-   type = evas_object_type_get(obj);
-   if (!obj) return EINA_FALSE;
-   if (!strcmp(type, "edje")) return EINA_TRUE;
-   return EINA_FALSE;
-}
-
 EAPI void
 e_menu_item_submenu_set(E_Menu_Item *mi, E_Menu *sub)
 {
diff --git a/src/bin/e_utils.h b/src/bin/e_utils.h
index 79229a8..ae5d8bc 100644
--- a/src/bin/e_utils.h
+++ b/src/bin/e_utils.h
@@ -87,5 +87,11 @@ e_util_pointer_center(const E_Client *ec)
                              y + ec->y + (ec->h / 2));
 }
 
+static inline Eina_Bool
+isedje(const Evas_Object *obj)
+{
+   return obj && !e_util_strcmp(evas_object_type_get(obj), "edje");
+}
+
 #endif
 #endif

-- 


Reply via email to