summaryrefslogtreecommitdiff
path: root/src/bin/controls.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-06-24 08:45:10 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-06-24 08:45:10 +0000
commit23e9852efa7e81403f21c832f9d2809c373c0f13 (patch)
tree310eef37c2a91f9ccdd2d5a0a8ee5abe9299d742 /src/bin/controls.c
parent256059af6ea44907c0efeed5b9415bfe5fcb4956 (diff)
fix word sel in scrollback
SVN revision: 72758
Diffstat (limited to 'src/bin/controls.c')
-rw-r--r--src/bin/controls.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/bin/controls.c b/src/bin/controls.c
index 3393c8d..953f971 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -42,6 +42,13 @@ _cb_ct_options(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event _
42 options_toggle(ct_win, ct_bg, ct_term); 42 options_toggle(ct_win, ct_bg, ct_term);
43} 43}
44 44
45static void
46_cb_ct_about(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
47{
48 controls_toggle(ct_win, ct_bg, ct_term);
49 // XXX: show about box.
50}
51
45void 52void
46controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term) 53controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term)
47{ 54{
@@ -97,6 +104,21 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term)
97 evas_object_show(o); 104 evas_object_show(o);
98 evas_object_smart_callback_add(o, "clicked", _cb_ct_options, NULL); 105 evas_object_smart_callback_add(o, "clicked", _cb_ct_options, NULL);
99 106
107 o = elm_separator_add(win);
108 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
109 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
110 elm_separator_horizontal_set(o, EINA_TRUE);
111 elm_box_pack_end(ct_box, o);
112 evas_object_show(o);
113
114 o = elm_button_add(win);
115 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
116 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
117 elm_object_text_set(o, "About");
118 elm_box_pack_end(ct_box, o);
119 evas_object_show(o);
120 evas_object_smart_callback_add(o, "clicked", _cb_ct_about, NULL);
121
100 edje_object_part_swallow(bg, "terminology.controls", ct_frame); 122 edje_object_part_swallow(bg, "terminology.controls", ct_frame);
101 evas_object_show(ct_frame); 123 evas_object_show(ct_frame);
102 } 124 }