elementary: deprecate elm_toolbar_orientation_set and elm_toolbar_orientation_get...
authoryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Oct 2011 14:36:49 +0000 (14:36 +0000)
committerMike McCormack <mj.mccormack@samsung.com>
Fri, 18 Nov 2011 05:32:59 +0000 (14:32 +0900)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64562 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_toolbar.c

index 08bc735..de2bef7 100644 (file)
@@ -412,16 +412,8 @@ _sizing_eval(Evas_Object *obj)
      }
    else
      {
-      case ELM_TOOLBAR_SHRINK_MENU: /* fallthrough */
-      case ELM_TOOLBAR_SHRINK_HIDE: /* fallthrough */
-      case ELM_TOOLBAR_SHRINK_SCROLL:
         if (wd->vertical) minh = h - vh;
         else minw = w - vw;
-        break;
-      case ELM_TOOLBAR_SHRINK_NONE:
-        if (wd->vertical) minh = minh_bx + (h - vh);
-        else minw = minw_bx + (w - vw);
-        break;
      }
    minh = minh + (h - vh);
    evas_object_size_hint_min_set(obj, minw, minh);
@@ -1947,7 +1939,7 @@ elm_toolbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
-   wd->vertical = vertical;
+   wd->vertical = !horizontal;
    _sizing_eval(obj);
 }
 
@@ -1959,3 +1951,5 @@ elm_toolbar_horizontal_get(const Evas_Object *obj)
    if (!wd) return EINA_FALSE;
    return !wd->vertical;
 }
+
+