Better name(s) for the bg option enum.

SVN revision: 53302
This commit is contained in:
Christopher Michael 2010-10-12 10:30:32 +00:00
parent c178a21aca
commit 4595005550
2 changed files with 5 additions and 5 deletions

View File

@ -448,8 +448,8 @@ extern "C" {
*/
typedef enum _Elm_Bg_Option
{
ELM_BG_SCALE,
ELM_BG_TILE
ELM_BG_OPTION_SCALE,
ELM_BG_OPTION_TILE
} Elm_Bg_Option;
EAPI Evas_Object *elm_bg_add(Evas_Object *parent);

View File

@ -62,7 +62,7 @@ _custom_resize(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_inf
evas_object_image_size_get(obj, &iw, &ih);
if ((iw < 1) || (ih < 1)) return;
if (wd->option == ELM_BG_SCALE)
if (wd->option == ELM_BG_OPTION_SCALE)
{
w = ow;
h = (ih * w) / iw;
@ -74,7 +74,7 @@ _custom_resize(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_inf
x = (ow - w) / 2;
y = (oh - h) / 2;
}
else if (wd->option == ELM_BG_TILE)
else if (wd->option == ELM_BG_OPTION_TILE)
{
x = y = 0;
w = iw;
@ -113,7 +113,7 @@ elm_bg_add(Evas_Object *parent)
_elm_theme_object_set(obj, wd->base, "bg", "base", "default");
elm_widget_resize_object_set(obj, wd->base);
wd->option = ELM_BG_SCALE;
wd->option = ELM_BG_OPTION_SCALE;
return obj;
}