action_menu: draw menu area using table object
[profile/tv/apps/native/air_mediahub.git] / src / util / util.c
index ec55187..5dc631b 100644 (file)
@@ -147,6 +147,24 @@ Evas_Object *util_add_scroller(Evas_Object *base)
        return scr;
 }
 
+Evas_Object *util_add_table(Evas_Object *base, int padding_x, int padding_y)
+{
+       Evas_Object *table;
+
+       if (!base)
+               return NULL;
+
+       table = elm_table_add(base);
+       if (!table) {
+               _ERR("failed to create table object");
+               return NULL;
+       }
+
+       elm_table_padding_set(table, padding_x, padding_y);
+
+       return table;
+}
+
 void util_time_string(char *str, int size, unsigned int ms, bool full)
 {
        int sec;