summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-06-02 23:23:56 +0200
committerBoris Faure <billiob@gmail.com>2015-06-02 23:23:56 +0200
commit7b72052773c5e13cf2c2b55710efa4b716004775 (patch)
tree8568114b17a0defb54283358538db0d28d4b846c /src
parentbac8e078c79c86f856c0a303ca3d1724467d4553 (diff)
remove callbacks when deleting termio
Diffstat (limited to 'src')
-rw-r--r--src/bin/termio.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index b911526..36796c3 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -5127,7 +5127,34 @@ _smart_del(Evas_Object *obj)
5127 ecore_imf_context_del(sd->khdl.imf); 5127 ecore_imf_context_del(sd->khdl.imf);
5128 } 5128 }
5129 if (sd->cursor.obj) evas_object_del(sd->cursor.obj); 5129 if (sd->cursor.obj) evas_object_del(sd->cursor.obj);
5130 if (sd->event) evas_object_del(sd->event); 5130 if (sd->event)
5131 {
5132 evas_object_event_callback_del(sd->event, EVAS_CALLBACK_MOUSE_DOWN,
5133 _smart_cb_mouse_down);
5134 evas_object_event_callback_del(sd->event, EVAS_CALLBACK_MOUSE_UP,
5135 _smart_cb_mouse_up);
5136 evas_object_event_callback_del(sd->event, EVAS_CALLBACK_MOUSE_MOVE,
5137 _smart_cb_mouse_move);
5138 evas_object_event_callback_del(sd->event, EVAS_CALLBACK_MOUSE_IN,
5139 _smart_cb_mouse_in);
5140 evas_object_event_callback_del(sd->event, EVAS_CALLBACK_MOUSE_OUT,
5141 _smart_cb_mouse_out);
5142 evas_object_event_callback_del(sd->event, EVAS_CALLBACK_MOUSE_WHEEL,
5143 _smart_cb_mouse_wheel);
5144
5145 evas_object_del(sd->event);
5146 }
5147 if (sd->self)
5148 {
5149 evas_object_event_callback_del(sd->self, EVAS_CALLBACK_KEY_DOWN,
5150 _smart_cb_key_down);
5151 evas_object_event_callback_del(sd->self, EVAS_CALLBACK_KEY_UP,
5152 _smart_cb_key_up);
5153 evas_object_event_callback_del(sd->self, EVAS_CALLBACK_FOCUS_IN,
5154 _smart_cb_focus_in);
5155 evas_object_event_callback_del(sd->self, EVAS_CALLBACK_FOCUS_OUT,
5156 _smart_cb_focus_out);
5157 }
5131 if (sd->sel.top) evas_object_del(sd->sel.top); 5158 if (sd->sel.top) evas_object_del(sd->sel.top);
5132 if (sd->sel.bottom) evas_object_del(sd->sel.bottom); 5159 if (sd->sel.bottom) evas_object_del(sd->sel.bottom);
5133 if (sd->sel.theme) evas_object_del(sd->sel.theme); 5160 if (sd->sel.theme) evas_object_del(sd->sel.theme);