aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Kojouharov <vkojouharov@gmail.com>2009-03-04 12:12:13 +0000
committerViktor Kojouharov <vkojouharov@gmail.com>2009-03-04 12:12:13 +0000
commit2c3c2e955c3e7585499e28dddb99a9a68e65dbbc (patch)
treea9775e9321914237c1021c4dc0ff0212bcab9cdf
parentsymlink icons back! (diff)
downloadenlightenment-2c3c2e955c3e7585499e28dddb99a9a68e65dbbc.tar.gz
its useful to know if setting a theme has failed
SVN revision: 39361
-rw-r--r--src/bin/e_scrollframe.c12
-rw-r--r--src/bin/e_scrollframe.h4
2 files changed, 10 insertions, 6 deletions
diff --git a/src/bin/e_scrollframe.c b/src/bin/e_scrollframe.c
index 4ddf09989..de3af2231 100644
--- a/src/bin/e_scrollframe.c
+++ b/src/bin/e_scrollframe.c
@@ -186,30 +186,34 @@ e_scrollframe_extern_pan_set(Evas_Object *obj, Evas_Object *pan,
evas_object_show(sd->pan_obj);
}
-EAPI void
+EAPI int
e_scrollframe_custom_theme_set(Evas_Object *obj, char *custom_category, char *custom_group)
{
API_ENTRY return;
- e_theme_edje_object_set(sd->edje_obj, custom_category, custom_group);
+ if (!e_theme_edje_object_set(sd->edje_obj, custom_category, custom_group))
+ return 0;
if (sd->pan_obj)
edje_object_part_swallow(sd->edje_obj, "e.swallow.content", sd->pan_obj);
sd->vbar_visible = !sd->vbar_visible;
sd->hbar_visible = !sd->hbar_visible;
_e_smart_scrollbar_bar_visibility_adjust(sd);
+ return 1;
}
-EAPI void
+EAPI int
e_scrollframe_custom_edje_file_set(Evas_Object *obj, char *file, char *group)
{
API_ENTRY return;
- edje_object_file_set(sd->edje_obj, file, group);
+ if (!edje_object_file_set(sd->edje_obj, file, group))
+ return 0;
if (sd->pan_obj)
edje_object_part_swallow(sd->edje_obj, "e.swallow.content", sd->pan_obj);
sd->vbar_visible = !sd->vbar_visible;
sd->hbar_visible = !sd->hbar_visible;
_e_smart_scrollbar_bar_visibility_adjust(sd);
+ return 1;
}
EAPI void
diff --git a/src/bin/e_scrollframe.h b/src/bin/e_scrollframe.h
index fd4c294c6..437abc70e 100644
--- a/src/bin/e_scrollframe.h
+++ b/src/bin/e_scrollframe.h
@@ -17,8 +17,8 @@ E_Scrollframe_Policy;
EAPI Evas_Object *e_scrollframe_add (Evas *evas);
EAPI void e_scrollframe_child_set (Evas_Object *obj, Evas_Object *child);
EAPI void e_scrollframe_extern_pan_set (Evas_Object *obj, Evas_Object *pan, void (*pan_set) (Evas_Object *obj, Evas_Coord x, Evas_Coord y), void (*pan_get) (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y), void (*pan_max_get) (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y), void (*pan_child_size_get) (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y));
-EAPI void e_scrollframe_custom_theme_set (Evas_Object *obj, char *custom_category, char *custom_group);
-EAPI void e_scrollframe_custom_edje_file_set (Evas_Object *obj, char *file, char *group);
+EAPI int e_scrollframe_custom_theme_set (Evas_Object *obj, char *custom_category, char *custom_group);
+EAPI int e_scrollframe_custom_edje_file_set (Evas_Object *obj, char *file, char *group);
EAPI void e_scrollframe_child_pos_set (Evas_Object *obj, Evas_Coord x, Evas_Coord y);
EAPI void e_scrollframe_child_pos_get (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y);
EAPI void e_scrollframe_child_region_show (Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);