Make evas_object_table_smart_set static.

Makes no sense to export it when table is not meant to be inheritable.



SVN revision: 38516
This commit is contained in:
Iván Briano 2009-01-09 13:31:51 +00:00
parent 38240fb825
commit 8d7855081a
2 changed files with 24 additions and 29 deletions

View File

@ -1064,7 +1064,6 @@ extern "C" {
EAPI Evas_Bool evas_object_box_option_property_vget(Evas_Object *o, Evas_Object_Box_Option *opt, int property, va_list args);
EAPI void evas_object_table_smart_set(Evas_Smart_Class *sc);
EAPI Evas_Object *evas_object_table_add(Evas *evas);
EAPI Evas_Object *evas_object_table_add_to(Evas_Object *parent);
EAPI void evas_object_table_homogeneous_set(Evas_Object *o, Evas_Object_Table_Homogeneous_Mode homogeneous);

View File

@ -878,6 +878,29 @@ _evas_object_table_smart_calculate(Evas_Object *o)
_evas_object_table_smart_calculate_regular(o, priv);
}
static void
_evas_object_table_smart_set(Evas_Smart_Class *sc)
{
if (!sc)
return;
if (!_parent_sc.name)
evas_object_smart_clipped_smart_set(&_parent_sc);
sc->add = _evas_object_table_smart_add;
sc->del = _evas_object_table_smart_del;
sc->move = _parent_sc.move;
sc->resize = _evas_object_table_smart_resize;
sc->show = _parent_sc.show;
sc->hide = _parent_sc.hide;
sc->color_set = _parent_sc.color_set;
sc->clip_set = _parent_sc.clip_set;
sc->clip_unset = _parent_sc.clip_unset;
sc->calculate = _evas_object_table_smart_calculate;
sc->member_add = _parent_sc.member_add;
sc->member_del = _parent_sc.member_del;
}
static Evas_Smart *
_evas_object_table_smart_class_new(void)
{
@ -886,7 +909,7 @@ _evas_object_table_smart_class_new(void)
};
if (!_parent_sc.name)
evas_object_table_smart_set(&sc);
_evas_object_table_smart_set(&sc);
return evas_smart_class_new(&sc);
}
@ -927,33 +950,6 @@ evas_object_table_add_to(Evas_Object *parent)
return o;
}
/**
* Set the default table @a api struct (Evas_Smart_Class)
* with the default values. May be used to extend that API.
*/
void
evas_object_table_smart_set(Evas_Smart_Class *sc)
{
if (!sc)
return;
if (!_parent_sc.name)
evas_object_smart_clipped_smart_set(&_parent_sc);
sc->add = _evas_object_table_smart_add;
sc->del = _evas_object_table_smart_del;
sc->move = _parent_sc.move;
sc->resize = _evas_object_table_smart_resize;
sc->show = _parent_sc.show;
sc->hide = _parent_sc.hide;
sc->color_set = _parent_sc.color_set;
sc->clip_set = _parent_sc.clip_set;
sc->clip_unset = _parent_sc.clip_unset;
sc->calculate = _evas_object_table_smart_calculate;
sc->member_add = _parent_sc.member_add;
sc->member_del = _parent_sc.member_del;
}
/**
* Set how this table should layout children.
*