summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorsangho park <gouache95@gmail.com>2010-12-21 09:14:47 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-12-21 09:14:47 +0000
commit5c199c5748e82042b24db0125a785baac33eb807 (patch)
treed2321e3ca0f4878e7d61cad12e507bbc5dc461bb /src/bin
parenta651fa411781533809dae3ca5f9ff5075c5256d4 (diff)
From: sangho park <gouache95@gmail.com>
Subject: [E-devel] [Patch] elm_map module patch This is a patch for elm_map module. when app developers or companies want to use specific license map (i.e google map), module is needed. - add new map provider for module "ELM_MAP_SOURCE_MODULE". - add test_map module. - add test code for module provider. - add my name to AUTHORS. SVN revision: 55684
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_map.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/test_map.c b/src/bin/test_map.c
index 155f18666..1d3e00686 100644
--- a/src/bin/test_map.c
+++ b/src/bin/test_map.c
@@ -216,6 +216,12 @@ my_bt_source_maplint(void *data, Evas_Object *obj __UNUSED__, void *event_info _
216} 216}
217 217
218static void 218static void
219my_bt_source_module(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
220{
221 elm_map_source_set(data, ELM_MAP_SOURCE_MODULE);
222}
223
224static void
219my_bt_add(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 225my_bt_add(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
220{ 226{
221 int i; 227 int i;
@@ -584,6 +590,14 @@ test_map(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __
584 evas_object_size_hint_align_set(bt, 1.0, 0.9); 590 evas_object_size_hint_align_set(bt, 1.0, 0.9);
585 evas_object_show(bt); 591 evas_object_show(bt);
586 elm_box_pack_end(bx, bt); 592 elm_box_pack_end(bx, bt);
593
594 bt = elm_button_add(win);
595 elm_button_label_set(bt, "Module");
596 evas_object_smart_callback_add(bt, "clicked", my_bt_source_module, map);
597 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
598 evas_object_size_hint_align_set(bt, 1.0, 0.9);
599 evas_object_show(bt);
600 elm_box_pack_end(bx, bt);
587 // 601 //
588 602
589 evas_object_show(tb2); 603 evas_object_show(tb2);