summaryrefslogtreecommitdiff
path: root/src/bin/controls.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-12-01 16:44:53 +0100
committerBoris Faure <billiob@gmail.com>2013-12-01 16:49:35 +0100
commitfd38df310815a76c4e259a2704641fb5533bf84f (patch)
treec6cbf1389c02d522f3724c8c8458dbc95ba286e6 /src/bin/controls.c
parent49b08115c940dfa6acecde251f178079c923cd75 (diff)
fix controls button "copy" not reflecting correct selection state
Diffstat (limited to 'src/bin/controls.c')
-rw-r--r--src/bin/controls.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/bin/controls.c b/src/bin/controls.c
index 1b73c64..e3eb124 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -110,10 +110,10 @@ _cb_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EIN
110static void 110static void
111_cb_frame_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED) 111_cb_frame_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
112{ 112{
113 if (ct_term) 113 if (ct_win)
114 { 114 {
115 evas_object_smart_callback_del(ct_term, "selection,on", _cb_sel_on); 115 evas_object_smart_callback_del(ct_win, "selection,on", _cb_sel_on);
116 evas_object_smart_callback_del(ct_term, "selection,off", _cb_sel_off); 116 evas_object_smart_callback_del(ct_win, "selection,off", _cb_sel_off);
117 } 117 }
118 ct_frame = NULL; 118 ct_frame = NULL;
119} 119}
@@ -226,6 +226,8 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term,
226 { 226 {
227 evas_object_del(ct_frame); 227 evas_object_del(ct_frame);
228 ct_frame = NULL; 228 ct_frame = NULL;
229 ct_win = NULL;
230 ct_term = NULL;
229 } 231 }
230 if (!ct_frame) 232 if (!ct_frame)
231 { 233 {
@@ -290,9 +292,9 @@ controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term,
290 evas_object_event_callback_add(ct_frame, EVAS_CALLBACK_DEL, 292 evas_object_event_callback_add(ct_frame, EVAS_CALLBACK_DEL,
291 _cb_frame_del, NULL); 293 _cb_frame_del, NULL);
292 294
293 evas_object_smart_callback_add(term, "selection,on", _cb_sel_on, 295 evas_object_smart_callback_add(win, "selection,on", _cb_sel_on,
294 NULL); 296 NULL);
295 evas_object_smart_callback_add(term, "selection,off", _cb_sel_off, 297 evas_object_smart_callback_add(win, "selection,off", _cb_sel_off,
296 NULL); 298 NULL);
297 } 299 }
298 if (!ct_out) 300 if (!ct_out)