From 66601472113e894df3af6331769d800a73630876 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 13 Dec 2012 18:14:57 +0100 Subject: remove useless buttons in UI --- gg_map/gg_map.c | 68 ++------------------------------------------------------- 1 file changed, 2 insertions(+), 66 deletions(-) (limited to 'gg_map/gg_map.c') 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 @@ -286,42 +286,6 @@ _cb_show_edges(void *data, Evas_Object *obj, void *event_info) egraph_display_edges_set(_egraph, elm_check_state_get(obj)); } -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) { @@ -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); -- cgit v1.2.3-59-g8ed1b