modify deprecated code related with
authorjypark <jypark@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 12 Mar 2012 08:07:27 +0000 (08:07 +0000)
committerjypark <jypark@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 12 Mar 2012 08:07:27 +0000 (08:07 +0000)
elm_bubble_corner_set
function

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69228 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/examples/bubble_example_01.c
src/lib/elm_bubble.c

index 0f9cc0e..b3432af 100644 (file)
@@ -9,11 +9,17 @@
 static const char *corners[] = {"top_left", "top_right",
                                 "bottom_right", "bottom_left"};
 
+
 void
 _bla(void *data, Evas_Object *obj, void *event_info)
 {
    static unsigned char corner = 0;
-   elm_bubble_corner_set(obj, corners[++corner > 3 ? corner = 0 : corner]);
+   ++corner;
+   if (corner > 3)
+     elm_bubble_pos_set(obj, ELM_BUBBLE_POS_TOP_LEFT);
+   else
+     elm_bubble_pos_set(obj, corner);
+
 }
 
 EAPI_MAIN int
index eef5c1e..1346de5 100644 (file)
@@ -347,17 +347,6 @@ elm_bubble_add(Evas_Object *parent)
    return obj;
 }
 
-EINA_DEPRECATED EAPI void
-elm_bubble_corner_set(Evas_Object *obj, const char *corner)
-{
-   int i = 0;
-   for (i=ELM_BUBBLE_POS_TOP_LEFT; i<=ELM_BUBBLE_POS_BOTTOM_RIGHT; i++)
-      {
-         if (!strcmp(corner,corner_string[i]))
-           elm_bubble_pos_set(obj, i);
-      }
-}
-
 EAPI void
 elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos)
 {
@@ -369,12 +358,6 @@ elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos)
    _theme_hook(obj);
 }
 
-EINA_DEPRECATED EAPI const char*
-elm_bubble_corner_get(const Evas_Object *obj)
-{
-   return corner_string[elm_bubble_pos_get(obj)];
-}
-
 EAPI Elm_Bubble_Pos
 elm_bubble_pos_get(const Evas_Object *obj)
 {