summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-08-27 19:03:43 +0200
committerBoris Faure <billiob@gmail.com>2013-08-27 19:03:43 +0200
commite93d8bab70304120e2d489aa8f4b42c88e65c6d7 (patch)
treeb60ccd79bfbe5817d06003f8e9ec22964b289aa0
parent4f78faf5c80714758a5ba50b29a55794cb2ffb8b (diff)
we're not in python here, let's use a switch/case
-rw-r--r--src/bin/main.c23
1 files 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)
1025 edje_object_part_swallow(term->bg, "terminology.popmedia", o); 1025 edje_object_part_swallow(term->bg, "terminology.popmedia", o);
1026 evas_object_show(o); 1026 evas_object_show(o);
1027 term->poptype = type; 1027 term->poptype = type;
1028 if (type == TYPE_IMG) 1028 switch (type)
1029 edje_object_signal_emit(term->bg, "popmedia,image", "terminology"); 1029 {
1030 else if (type == TYPE_SCALE) 1030 case TYPE_IMG:
1031 edje_object_signal_emit(term->bg, "popmedia,scale", "terminology"); 1031 edje_object_signal_emit(term->bg, "popmedia,image", "terminology");
1032 else if (type == TYPE_EDJE) 1032 break;
1033 edje_object_signal_emit(term->bg, "popmedia,edje", "terminology"); 1033 case TYPE_SCALE:
1034 else if (type == TYPE_MOV) 1034 edje_object_signal_emit(term->bg, "popmedia,scale", "terminology");
1035 edje_object_signal_emit(term->bg, "popmedia,movie", "terminology"); 1035 break;
1036 case TYPE_EDJE:
1037 edje_object_signal_emit(term->bg, "popmedia,edje", "terminology");
1038 break;
1039 case TYPE_MOV:
1040 edje_object_signal_emit(term->bg, "popmedia,movie", "terminology");
1041 break;
1042 }
1036} 1043}
1037 1044
1038static void 1045static void