summaryrefslogtreecommitdiff
path: root/src/bin/controls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/controls.c')
-rw-r--r--src/bin/controls.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bin/controls.c b/src/bin/controls.c
index 73b30a4..567cd1d 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -43,6 +43,12 @@ _cb_ct_paste(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
43} 43}
44 44
45static void 45static void
46_cb_ct_new(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
47{
48 main_new(ct_win, ct_term);
49}
50
51static void
46_cb_ct_split_v(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 52_cb_ct_split_v(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
47{ 53{
48 main_split_v(ct_win, ct_term); 54 main_split_v(ct_win, ct_term);
@@ -144,6 +150,16 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term)
144 elm_box_pack_end(ct_boxh, o); 150 elm_box_pack_end(ct_boxh, o);
145 evas_object_show(o); 151 evas_object_show(o);
146 152
153 // XXX: need real icon
154 o = elm_button_add(win);
155 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
156 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
157 elm_object_text_set(o, "*");
158 elm_box_pack_end(ct_box2, o);
159 evas_object_show(o);
160 evas_object_smart_callback_add(o, "clicked", _cb_ct_new, NULL);
161
162 // XXX: need real icon
147 o = elm_button_add(win); 163 o = elm_button_add(win);
148 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 164 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
149 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 165 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -152,6 +168,7 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term)
152 evas_object_show(o); 168 evas_object_show(o);
153 evas_object_smart_callback_add(o, "clicked", _cb_ct_split_v, NULL); 169 evas_object_smart_callback_add(o, "clicked", _cb_ct_split_v, NULL);
154 170
171 // XXX: need real icon
155 o = elm_button_add(win); 172 o = elm_button_add(win);
156 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 173 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
157 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 174 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -160,6 +177,7 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term)
160 evas_object_show(o); 177 evas_object_show(o);
161 evas_object_smart_callback_add(o, "clicked", _cb_ct_split_h, NULL); 178 evas_object_smart_callback_add(o, "clicked", _cb_ct_split_h, NULL);
162 179
180 // XXX: need real icon
163 o = elm_button_add(win); 181 o = elm_button_add(win);
164 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); 182 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
165 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 183 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);