The more panel should be changed when the theme is changed.
[framework/uifw/elementary.git] / src / lib / elm_grid.c
index b7308e8..22f1b23 100644 (file)
@@ -51,7 +51,7 @@ _elm_grid_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_
                                                   dir, next);
 
    if (list_free)
-      list_free((Eina_List *)items);
+     list_free((Eina_List *)items);
 
    return ret;
 }
@@ -79,9 +79,7 @@ elm_grid_add(Evas_Object *parent)
    Widget_Data *wd;
 
    ELM_WIDGET_STANDARD_SETUP(wd, Widget_Data, parent, e, obj, NULL);
-
    ELM_SET_WIDTYPE(widtype, "grid");
-   wd->obj = obj;
    elm_widget_type_set(obj, "grid");
    elm_widget_sub_object_add(parent, obj);
    elm_widget_data_set(obj, wd);
@@ -99,7 +97,7 @@ elm_grid_add(Evas_Object *parent)
 }
 
 EAPI void
-elm_grid_size_set(Evas_Object *obj, int w, int h)
+elm_grid_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
@@ -108,7 +106,7 @@ elm_grid_size_set(Evas_Object *obj, int w, int h)
 }
 
 EAPI void
-elm_grid_size_get(Evas_Object *obj, int *w, int *h)
+elm_grid_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
@@ -117,7 +115,7 @@ elm_grid_size_get(Evas_Object *obj, int *w, int *h)
 }
 
 EAPI void
-elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h)
+elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
@@ -150,7 +148,7 @@ elm_grid_clear(Evas_Object *obj, Eina_Bool clear)
 }
 
 EAPI void
-elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h)
+elm_grid_pack_set(Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
 {
    Evas_Object *obj = elm_widget_parent_widget_get(subobj);
    ELM_CHECK_WIDTYPE(obj, widtype);
@@ -168,3 +166,12 @@ elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h)
    if (!wd) return;
    evas_object_grid_pack_get(wd->grd, subobj, x, y, w, h);
 }
+
+EAPI Eina_List *
+elm_grid_children_get(const Evas_Object *obj)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return NULL;
+   return evas_object_grid_children_get(wd->grd);
+}