EdjeObject *ActivityAudioListView::createRootButton(string title, string subtitle, string total, int row, int col) { EdjeObject *obj = new EdjeObject(theme, evas); obj->LoadEdje("calaos/audio/browser/button"); obj->setPartText("title", title); obj->setPartText("subtitle", subtitle); obj->setPartText("total", total); obj->Show(); int w, h; edje_object_size_min_get(obj->getEvasObject(), &w, &h); obj->Resize(w, h); evas_object_size_hint_min_set(obj->getEvasObject(), w, h); browser_root_buttons.push_back(obj); if (!edje_object_part_table_pack(browser_root->getEvasObject(), "table", obj->getEvasObject(), col, row, 1, 1)) cCritical() << "ActivityAudioListView::createRootButton(), failed to pack object into table !"; return obj; }