aboutsummaryrefslogtreecommitdiffstats
path: root/gg_map/gg_map.c
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-13 18:14:57 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-13 18:14:57 +0100
commit66601472113e894df3af6331769d800a73630876 (patch)
tree228a22d44e450dd1cd8272de27cd05f6080bb837 /gg_map/gg_map.c
parentimprove gg_map UI, by using copying from egraph demoapp (diff)
downloadglouglou-66601472113e894df3af6331769d800a73630876.tar.xz
glouglou-66601472113e894df3af6331769d800a73630876.zip
remove useless buttons in UI
Diffstat (limited to '')
-rw-r--r--gg_map/gg_map.c68
1 files changed, 2 insertions, 66 deletions
diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c
index 11d19f7..15ea59b 100644
--- a/gg_map/gg_map.c
+++ b/gg_map/gg_map.c
@@ -287,42 +287,6 @@ _cb_show_edges(void *data, Evas_Object *obj, void *event_info)
}
static void
-_cb_use_animations(void *data, Evas_Object *obj, void *event_info)
-{
- if (!_egraph)
- return;
-
- egraph_use_animations_set(_egraph, elm_check_state_get(obj));
-}
-
-static void
-_cb_do_improvements(void *data, Evas_Object *obj, void *event_info)
-{
- if (!_egraph)
- return;
-
- egraph_do_improvements_set(_egraph, elm_check_state_get(obj));
-}
-
-static void
-_cb_use_theme_v(void *data, Evas_Object *obj, void *event_info)
-{
- if (!_egraph)
- return;
-
- egraph_theme_vertices_set(_egraph, elm_check_state_get(obj));
-}
-
-static void
-_cb_use_theme_e(void *data, Evas_Object *obj, void *event_info)
-{
- if (!_egraph)
- return;
-
- egraph_theme_edges_set(_egraph, elm_check_state_get(obj));
-}
-
-static void
_cb_layout_changed(void *data, Evas_Object *obj, void *event_info)
{
Elm_Object_Item *it;
@@ -379,11 +343,11 @@ elm_main(int argc, char **argv)
evas_object_show(bx);
tb = elm_toolbar_add(win);
- elm_toolbar_homogeneous_set(tb, EINA_FALSE);
+ //elm_toolbar_homogeneous_set(tb, EINA_FALSE);
elm_toolbar_horizontal_set(tb, EINA_FALSE);
elm_toolbar_shrink_mode_set(tb, ELM_TOOLBAR_SHRINK_EXPAND);
elm_toolbar_select_mode_set(tb, ELM_OBJECT_SELECT_MODE_ALWAYS);
- elm_toolbar_transverse_expanded_set(tb, EINA_TRUE);
+ //elm_toolbar_transverse_expanded_set(tb, EINA_TRUE);
elm_object_style_set(tb, "item_centered");
evas_object_size_hint_weight_set(tb, 0.0, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -433,34 +397,6 @@ elm_main(int argc, char **argv)
evas_object_smart_callback_add(ck, "changed", _cb_show_edges, NULL);
tb_it = elm_toolbar_item_append(tb, NULL, NULL, NULL, NULL);
elm_object_item_part_content_set(tb_it, "object", ck);
- ck = elm_check_add(win);
- elm_object_text_set(ck, "Use animations");
- elm_check_state_set(ck, EINA_TRUE);
- evas_object_show(ck);
- evas_object_smart_callback_add(ck, "changed", _cb_use_animations, NULL);
- tb_it = elm_toolbar_item_append(tb, NULL, NULL, NULL, NULL);
- elm_object_item_part_content_set(tb_it, "object", ck);
- ck = elm_check_add(win);
- elm_object_text_set(ck, "Do improvements");
- elm_check_state_set(ck, EINA_TRUE);
- evas_object_show(ck);
- evas_object_smart_callback_add(ck, "changed", _cb_do_improvements, NULL);
- tb_it = elm_toolbar_item_append(tb, NULL, NULL, NULL, NULL);
- elm_object_item_part_content_set(tb_it, "object", ck);
- ck = elm_check_add(win);
- elm_object_text_set(ck, "Use theme for vertices");
- elm_check_state_set(ck, EINA_TRUE);
- evas_object_show(ck);
- evas_object_smart_callback_add(ck, "changed", _cb_use_theme_v, NULL);
- tb_it = elm_toolbar_item_append(tb, NULL, NULL, NULL, NULL);
- elm_object_item_part_content_set(tb_it, "object", ck);
- ck = elm_check_add(win);
- elm_object_text_set(ck, "Use theme for edges");
- elm_check_state_set(ck, EINA_TRUE);
- evas_object_show(ck);
- evas_object_smart_callback_add(ck, "changed", _cb_use_theme_e, NULL);
- tb_it = elm_toolbar_item_append(tb, NULL, NULL, NULL, NULL);
- elm_object_item_part_content_set(tb_it, "object", ck);
//elm_toolbar_item_separator_set(elm_toolbar_item_append(tb, NULL, NULL, NULL, NULL), EINA_FALSE);
elm_toolbar_item_append(tb, "exit", "Quit",
_cb_on_done, NULL);