Use EVAS_HINT_EXPAND/EVAS_HINT_FILL.
authorChristopher Michael <cpmichael1@comcast.net>
Mon, 9 Nov 2009 13:14:05 +0000 (13:14 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Mon, 9 Nov 2009 13:14:05 +0000 (13:14 +0000)
SVN revision: 43583

src/lib/elm_toolbar.c

index f2bf83079dba799ff689d8aa768a06fcbe608e2f..0a3d66e70057d09242cb7d67d2a8c29c47b560db 100644 (file)
@@ -386,8 +386,8 @@ elm_toolbar_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, voi
    elm_coords_finger_size_adjust(1, &mw, 1, &mh);
    edje_object_size_min_restricted_calc(it->base, &mw, &mh, mw, mh);
    elm_coords_finger_size_adjust(1, &mw, 1, &mh);
-   evas_object_size_hint_weight_set(it->base, -1.0, 1.0);
-   evas_object_size_hint_align_set(it->base, 0.5, -1.0);
+   evas_object_size_hint_weight_set(it->base, -1.0, EVAS_HINT_EXPAND);
+   evas_object_size_hint_align_set(it->base, 0.5, EVAS_HINT_FILL);
    evas_object_size_hint_min_set(it->base, mw, mh);
    evas_object_box_append(wd->bx, it->base);
    evas_object_show(it->base);