aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_object_grid.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-08-29 11:49:31 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-08-29 11:49:31 +0000
commitf8c2a95c1a5e4135399754b9c7905b7733dc070d (patch)
treec1299b4d32026af8a62cff3e13bba4b9446649cd /legacy/evas/src/lib/canvas/evas_object_grid.c
parentdont need ti check priv - macro did it anyway (diff)
downloadefl-f8c2a95c1a5e4135399754b9c7905b7733dc070d.tar.gz
ok- we'll be nice and 0 your w & h - also x, y, w, h did this too.
SVN revision: 62942
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_object_grid.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_grid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_grid.c b/legacy/evas/src/lib/canvas/evas_object_grid.c
index 0fac12ed04..ac96f044be 100644
--- a/legacy/evas/src/lib/canvas/evas_object_grid.c
+++ b/legacy/evas/src/lib/canvas/evas_object_grid.c
@@ -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;