billiob pushed a commit to branch master.
commit e93d8bab70304120e2d489aa8f4b42c88e65c6d7
Author: Boris Faure <[email protected]>
Date: Tue Aug 27 19:03:43 2013 +0200
we're not in python here, let's use a switch/case
---
src/bin/main.c | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/src/bin/main.c b/src/bin/main.c
index 974566c..c0e11d1 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1025,14 +1025,21 @@ _popmedia_show(Term *term, const char *src)
edje_object_part_swallow(term->bg, "terminology.popmedia", o);
evas_object_show(o);
term->poptype = type;
- if (type == TYPE_IMG)
- edje_object_signal_emit(term->bg, "popmedia,image", "terminology");
- else if (type == TYPE_SCALE)
- edje_object_signal_emit(term->bg, "popmedia,scale", "terminology");
- else if (type == TYPE_EDJE)
- edje_object_signal_emit(term->bg, "popmedia,edje", "terminology");
- else if (type == TYPE_MOV)
- edje_object_signal_emit(term->bg, "popmedia,movie", "terminology");
+ switch (type)
+ {
+ case TYPE_IMG:
+ edje_object_signal_emit(term->bg, "popmedia,image", "terminology");
+ break;
+ case TYPE_SCALE:
+ edje_object_signal_emit(term->bg, "popmedia,scale", "terminology");
+ break;
+ case TYPE_EDJE:
+ edje_object_signal_emit(term->bg, "popmedia,edje", "terminology");
+ break;
+ case TYPE_MOV:
+ edje_object_signal_emit(term->bg, "popmedia,movie", "terminology");
+ break;
+ }
}
static void
--
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk