summaryrefslogtreecommitdiffstats
path: root/friendfinder/e_smart_map.c
diff options
context:
space:
mode:
authorPatrick Hornecker2010-02-08 13:47:07 +0100
committerPatrick Hornecker2010-02-08 13:47:07 +0100
commitb0aea6231713cfa9544a501d64b5405cb66a05af (patch)
treea90fbbcdebbfb41485772dcd6334e4120a0994a4 /friendfinder/e_smart_map.c
parentbarcode gui improvement (diff)
downloadfriendfinder-b0aea6231713cfa9544a501d64b5405cb66a05af.tar.gz
friendfinder-b0aea6231713cfa9544a501d64b5405cb66a05af.tar.xz
friendfinder-b0aea6231713cfa9544a501d64b5405cb66a05af.zip
receiver improved
Diffstat (limited to 'friendfinder/e_smart_map.c')
-rw-r--r--friendfinder/e_smart_map.c54
1 files changed, 16 insertions, 38 deletions
diff --git a/friendfinder/e_smart_map.c b/friendfinder/e_smart_map.c
index a248f2d..7f19a2e 100644
--- a/friendfinder/e_smart_map.c
+++ b/friendfinder/e_smart_map.c
@@ -49,7 +49,7 @@ struct bubble
static struct bubble *create_text_bubble(struct smart_map *smart, char *info, char *text)
{
struct bubble *bubble;
-
+
bubble = (struct bubble*)malloc(sizeof(struct bubble));
bubble->object.obj = elm_box_add(smart->win);
@@ -84,53 +84,31 @@ static struct bubble *create_text_bubble(struct smart_map *smart, char *info, ch
return bubble;
}
-void e_smart_map_overlay_set_bubble(Evas_Object *o, char *overlay, char *info, char *text, double lat, double lon, int flags, int type)
+void e_smart_map_overlay_set_bubble(Evas_Object *o, char *overlay, char *info, char *text, double lat, double lon, int flags)
{
struct smart_map *smart;
smart = evas_object_smart_data_get(o);
-
+
struct bubble *bb;
struct overlay_item *poi = malloc(sizeof(struct overlay_item));
bb = create_text_bubble(smart, info, text);
- if (type == 0)
- {
-
- poi->obj = &bb->object;
- poi->lat = lat;
- poi->lon = lon;
- poi->level_mask = flags;
+ poi->obj = &bb->object;
+ poi->lat = lat;
+ poi->lon = lon;
+ poi->level_mask = flags;
- struct map_overlay *ov = overlay_find_by_name(smart, overlay);
- if(ov == NULL)
- e_smart_map_add_overlay(o, overlay);
-
- ov = overlay_find_by_name(smart, overlay);
- if(ov == NULL)
- return;
+ struct map_overlay *ov = overlay_find_by_name(smart, overlay);
+ if(ov == NULL)
+ e_smart_map_add_overlay(o, overlay);
- overlay_add(smart, ov, poi);
- overlay_change_level(smart, smart->current_level);
- map_object_update(smart);
- }
+ ov = overlay_find_by_name(smart, overlay);
+ if(ov == NULL)
+ return;
- if (type == 1)
- {
- poi->obj = &bb->object;
- poi->lat = lat;
- poi->lon = lon;
- poi->level_mask = flags;
-
- struct map_overlay *ov = overlay_find_by_name(smart, overlay);
- if(ov == NULL)
- e_smart_map_add_overlay(o, overlay);
-
- ov = overlay_find_by_name(smart, overlay);
- if(ov == NULL)
- return;
-
- map_object_update(smart);
- }
+ overlay_add(smart, ov, poi);
+ overlay_change_level(smart, smart->current_level);
+ map_object_update(smart);
}
void e_smart_map_overlay_hide(Evas_Object *o, char *overlay)