aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-07-23 17:27:39 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-07-23 17:27:39 +0000
commitf2a67f5efb01b56aed5ab3c307e50f34a3bf171e (patch)
treee5250ec739e8d2febb7da1440f61e88718c3a64a /legacy/elementary/src/lib/elm_win.c
parentfix anchor bug in entry if anchor href contains commas (diff)
downloadefl-f2a67f5efb01b56aed5ab3c307e50f34a3bf171e.tar.gz
this code was too ugly to live
SVN revision: 61610
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c45
1 files changed, 18 insertions, 27 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 67aa39ba49..6ea7d05bb4 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1413,33 +1413,24 @@ elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
switch (type)
{
case ELM_WIN_INLINED_IMAGE:
- {
- if (parent)
- {
- Evas *e = evas_object_evas_get(parent);
- if (e)
- {
- Ecore_Evas *ee = ecore_evas_ecore_evas_get(e);
- if (ee)
- {
- win->img_obj = ecore_evas_object_image_new(ee);
- if (win->img_obj)
- {
- win->ee = ecore_evas_object_ecore_evas_get(win->img_obj);
- if (win->ee)
- {
- _win_inlined_image_set(win);
- }
- else
- {
- evas_object_del(win->img_obj);
- win->img_obj = NULL;
- }
- }
- }
- }
- }
- }
+ if (!parent) break;
+ {
+ Evas *e = evas_object_evas_get(parent);
+ Ecore_Evas *ee;
+ if (!e) break;
+ ee = ecore_evas_ecore_evas_get(e);
+ if (!ee) break;
+ win->img_obj = ecore_evas_object_image_new(ee);
+ if (!win->img_obj) break;
+ win->ee = ecore_evas_object_ecore_evas_get(win->img_obj);
+ if (win->ee)
+ {
+ _win_inlined_image_set(win);
+ break;
+ }
+ evas_object_del(win->img_obj);
+ win->img_obj = NULL;
+ }
break;
default:
if (ENGINE_COMPARE(ELM_SOFTWARE_X11))