aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_widget_image.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-06-21 06:19:43 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-06-21 06:19:43 +0000
commitc3b0637802b2e735ad19947bcaba06bc2c26c4e6 (patch)
tree6329eefede76d2846dbcbd863713bc5ae9743d84 /src/bin/e_widget_image.c
parente po: Updated po files. Updated Korean translations. (diff)
downloadenlightenment-c3b0637802b2e735ad19947bcaba06bc2c26c4e6.tar.gz
e17: whitespaces--
SVN revision: 72561
Diffstat (limited to 'src/bin/e_widget_image.c')
-rw-r--r--src/bin/e_widget_image.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/bin/e_widget_image.c b/src/bin/e_widget_image.c
index 98b8235a2..bb57103b4 100644
--- a/src/bin/e_widget_image.c
+++ b/src/bin/e_widget_image.c
@@ -18,11 +18,11 @@ e_widget_image_add_from_object(Evas *evas, Evas_Object *object, int minw, int mi
Evas_Object *obj, *o;
E_Widget_Data *wd;
int mw = 0, mh = 0;
-
+
obj = e_widget_add(evas);
e_widget_del_hook_set(obj, _e_wid_del_hook);
wd = calloc(1, sizeof(E_Widget_Data));
-
+
evas_object_show(object);
o = e_icon_add(evas);
e_icon_fill_inside_set(o, 1);
@@ -39,33 +39,33 @@ e_widget_image_add_from_object(Evas *evas, Evas_Object *object, int minw, int mi
e_widget_size_min_set(obj, mw, mh);
e_widget_sub_object_add(obj, o);
e_widget_resize_object_set(obj, o);
-
+
return obj;
}
EAPI Evas_Object *
e_widget_image_add_from_file(Evas *evas, const char *file, int minw, int minh)
-{
+{
Evas_Object *obj, *o, *o2;
E_Widget_Data *wd;
-
+
obj = e_widget_add(evas);
wd = calloc(1, sizeof(E_Widget_Data));
-
+
o = e_icon_add(evas);
e_icon_fill_inside_set(o, 1);
o2 = evas_object_image_add(evas);
evas_object_image_file_set(o2, file, NULL);
e_icon_object_set(o, o2);
-
- wd->img = o;
+
+ wd->img = o;
evas_object_show(o);
- e_widget_data_set(obj, wd);
+ e_widget_data_set(obj, wd);
e_widget_can_focus_set(obj, 0);
e_widget_size_min_set(obj, minw, minh);
e_widget_sub_object_add(obj, o);
e_widget_resize_object_set(obj, o);
-
+
return obj;
}
@@ -73,7 +73,7 @@ EAPI void
e_widget_image_edje_set(Evas_Object *obj, const char *file, const char *part)
{
E_Widget_Data *wd;
-
+
wd = e_widget_data_get(obj);
e_icon_file_edje_set(wd->img, file, part);
evas_object_show(wd->img);
@@ -83,7 +83,7 @@ EAPI void
e_widget_image_file_set(Evas_Object *obj, const char *file)
{
E_Widget_Data *wd;
-
+
wd = e_widget_data_get(obj);
e_icon_file_set(wd->img, file);
evas_object_show(wd->img);
@@ -93,7 +93,7 @@ EAPI void
e_widget_image_file_key_set(Evas_Object *obj, const char *file, const char *key)
{
E_Widget_Data *wd;
-
+
wd = e_widget_data_get(obj);
e_icon_file_key_set(wd->img, file, key);
evas_object_show(wd->img);
@@ -104,7 +104,7 @@ e_widget_image_object_set(Evas_Object *obj, Evas_Object *o)
{
E_Widget_Data *wd;
int mw, mh;
-
+
wd = e_widget_data_get(obj);
e_icon_object_set(wd->img, o);
edje_object_size_min_get(o, &mw, &mh);
@@ -120,7 +120,7 @@ static void
_e_wid_del_hook(Evas_Object *obj)
{
E_Widget_Data *wd;
-
+
wd = e_widget_data_get(obj);
free(wd);
}