aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_widget_image.c
diff options
context:
space:
mode:
authorcodewarrior <codewarrior>2005-10-25 22:01:50 +0000
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-10-25 22:01:50 +0000
commit66b3b98d70739835f723893ce7c114c0304fab98 (patch)
tree8078750f4a3c3a2643a190760e69bbfeaf98c62f /src/bin/e_widget_image.c
parent- Bug, Don't crash is the assoc_apps is not initialized (diff)
downloadenlightenment-66b3b98d70739835f723893ce7c114c0304fab98.tar.gz
- more work on internal eap editor
- temporary e_entry fix SVN revision: 17960
Diffstat (limited to 'src/bin/e_widget_image.c')
-rw-r--r--src/bin/e_widget_image.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/bin/e_widget_image.c b/src/bin/e_widget_image.c
index 84f703fff..375186591 100644
--- a/src/bin/e_widget_image.c
+++ b/src/bin/e_widget_image.c
@@ -9,15 +9,15 @@
Evas_Object *
e_widget_image_add_from_object(Evas *evas, Evas_Object *object, int minw, int minh)
{
- Evas_Object *obj, *o;
+ Evas_Object *obj;
obj = e_widget_add(evas);
- evas_object_show(o);
+ evas_object_show(object);
e_widget_can_focus_set(obj, 0);
e_widget_min_size_set(obj, minw, minh);
- e_widget_sub_object_add(obj, o);
- e_widget_resize_object_set(obj, o);
+ e_widget_sub_object_add(obj, object);
+ e_widget_resize_object_set(obj, object);
return obj;
}
@@ -37,7 +37,9 @@ e_widget_image_add_from_file(Evas *evas, char *file, int minw, int minh)
e_widget_can_focus_set(obj, 0);
e_widget_min_size_set(obj, minw, minh);
e_widget_sub_object_add(obj, o);
- e_widget_resize_object_set(obj, o);
+ e_widget_resize_object_set(obj, o);
+
+ return obj;
}