ok- we'll be nice and 0 your w & h - also x, y, w, h did this too.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 29 Aug 2011 11:49:31 +0000 (11:49 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 29 Aug 2011 11:49:31 +0000 (11:49 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@62942 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_grid.c

index 0fac12e..ac96f04 100644 (file)
@@ -266,6 +266,8 @@ evas_object_grid_size_set(Evas_Object *o, int w, int h)
 EAPI void
 evas_object_grid_size_get(const Evas_Object *o, int *w, int *h)
 {
+   if (w) *w = 0;
+   if (h) *h = 0;
    EVAS_OBJECT_GRID_DATA_GET_OR_RETURN(o, priv);
    if (w) *w = priv->size.w;
    if (h) *h = priv->size.h;
@@ -367,6 +369,10 @@ evas_object_grid_pack_get(Evas_Object *o, Evas_Object *child, int *x, int *y, in
 {
    Evas_Object_Grid_Option *opt;
 
+   if (x) *x = 0;
+   if (y) *y = 0;
+   if (w) *w = 0;
+   if (h) *h = 0;
    EVAS_OBJECT_GRID_DATA_GET_OR_RETURN_VAL(o, priv, 0);
    opt = _evas_object_grid_option_get(child);
    if (!opt) return 0;