summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYossi Kantor <yossi.kantor@samsung.com>2014-10-28 15:06:27 +0200
committerYossi Kantor <yossi.kantor@samsung.com>2014-10-28 15:30:08 +0200
commit0338ff85f49d027655dc9111052a0bda8d421b88 (patch)
tree46e19b14ce788805d735e5cdcccd2415f481fcf9
parent0ef95bff61721d2257fb223b1a4b7463800704ed (diff)
Up/down icons on the relevant contentview and callbacksview buttons
-rw-r--r--src/bin/egui_gui/egui_layout.json4
-rw-r--r--src/bin/egui_gui/egui_logic.c17
2 files changed, 17 insertions, 4 deletions
diff --git a/src/bin/egui_gui/egui_layout.json b/src/bin/egui_gui/egui_layout.json
index 2a74666..fcdefd7 100644
--- a/src/bin/egui_gui/egui_layout.json
+++ b/src/bin/egui_gui/egui_layout.json
@@ -2626,7 +2626,6 @@
2626 }, 2626 },
2627 "Properties": 2627 "Properties":
2628 { 2628 {
2629 "Elm_Widget.part_text":[null, "Up"],
2630 "Evas.Object.visibility":[true] 2629 "Evas.Object.visibility":[true]
2631 }, 2630 },
2632 "Callbacks": 2631 "Callbacks":
@@ -2644,7 +2643,6 @@
2644 }, 2643 },
2645 "Properties": 2644 "Properties":
2646 { 2645 {
2647 "Elm_Widget.part_text":[null, "Down"],
2648 "Evas.Object.visibility":[true] 2646 "Evas.Object.visibility":[true]
2649 }, 2647 },
2650 "Callbacks": 2648 "Callbacks":
@@ -2746,7 +2744,6 @@
2746 }, 2744 },
2747 "Properties": 2745 "Properties":
2748 { 2746 {
2749 "Elm_Widget.part_text":[null, "Down"],
2750 "Evas.Object.visibility":[true] 2747 "Evas.Object.visibility":[true]
2751 }, 2748 },
2752 "Callbacks": 2749 "Callbacks":
@@ -2764,7 +2761,6 @@
2764 }, 2761 },
2765 "Properties": 2762 "Properties":
2766 { 2763 {
2767 "Elm_Widget.part_text":[null, "Up"],
2768 "Evas.Object.visibility":[true] 2764 "Evas.Object.visibility":[true]
2769 }, 2765 },
2770 "Callbacks": 2766 "Callbacks":
diff --git a/src/bin/egui_gui/egui_logic.c b/src/bin/egui_gui/egui_logic.c
index 3ee395c..c9ca231 100644
--- a/src/bin/egui_gui/egui_logic.c
+++ b/src/bin/egui_gui/egui_logic.c
@@ -25,6 +25,9 @@
25#include "settings_view.h" 25#include "settings_view.h"
26#include "rmview.h" 26#include "rmview.h"
27 27
28#define _PATH_ICON_UP_ARROW PACKAGE_DATA_DIR"/images/icon_up_arrow.png"
29#define _PATH_ICON_DOWN_ARROW PACKAGE_DATA_DIR"/images/icon_down_arrow.png"
30
28static const Egui_Layout_Widgets *g_main_wdgs = NULL; 31static const Egui_Layout_Widgets *g_main_wdgs = NULL;
29static Egui_Layout_Fs_Win_Widgets *fs_win = NULL; 32static Egui_Layout_Fs_Win_Widgets *fs_win = NULL;
30 33
@@ -907,6 +910,14 @@ _canvas_bg_show_on_idle(void *data EINA_UNUSED)
907 return ECORE_CALLBACK_RENEW; 910 return ECORE_CALLBACK_RENEW;
908} 911}
909 912
913static void
914_assign_image_to_button(Eo *btn, const char* path)
915{
916 Eo *ic = eo_add(ELM_ICON_CLASS, btn);
917 eo_do(ic, efl_file_set(path, NULL));
918 eo_do(btn, elm_obj_container_content_set("icon", ic));
919}
920
910void 921void
911egui_start() 922egui_start()
912{ 923{
@@ -1025,6 +1036,12 @@ egui_start()
1025 elm_object_item_disabled_set(g_main_wdgs->main_win->toolbar_graph_it, EINA_TRUE); 1036 elm_object_item_disabled_set(g_main_wdgs->main_win->toolbar_graph_it, EINA_TRUE);
1026#endif 1037#endif
1027 1038
1039 // Put signs on up down buttons
1040 _assign_image_to_button(g_main_wdgs->main_win->contentview_down_btn, _PATH_ICON_DOWN_ARROW);
1041 _assign_image_to_button(g_main_wdgs->main_win->contentview_up_btn, _PATH_ICON_UP_ARROW);
1042 _assign_image_to_button(g_main_wdgs->main_win->callbacksview_down_btn, _PATH_ICON_DOWN_ARROW);
1043 _assign_image_to_button(g_main_wdgs->main_win->callbacksview_up_btn, _PATH_ICON_UP_ARROW);
1044
1028 _factory_item_finalize(g_main_wdgs->main_win->fctr_actionslider_it, "factory_actionslider.png", DB_DEF_ACTIONSLIDER_CLASS); 1045 _factory_item_finalize(g_main_wdgs->main_win->fctr_actionslider_it, "factory_actionslider.png", DB_DEF_ACTIONSLIDER_CLASS);
1029 _factory_item_finalize(g_main_wdgs->main_win->fctr_bg_it, "factory_bg.png", DB_DEF_BG_CLASS); 1046 _factory_item_finalize(g_main_wdgs->main_win->fctr_bg_it, "factory_bg.png", DB_DEF_BG_CLASS);
1030 _factory_item_finalize(g_main_wdgs->main_win->fctr_box_it, "factory_box.png", DB_DEF_BOX_CLASS); 1047 _factory_item_finalize(g_main_wdgs->main_win->fctr_box_it, "factory_box.png", DB_DEF_BOX_CLASS);