aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/options.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-02 15:54:46 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-02 15:54:46 +0900
commit31c99d6127fbc21acd4e3644cda1ae64b97df3cf (patch)
tree6d257c0a55a9b2d2db96b5ad17586551fc7ab008 /src/bin/options.c
parentFix copy/paste error when termio object is deleted. (diff)
downloadterminology-31c99d6127fbc21acd4e3644cda1ae64b97df3cf.tar.gz
make wallpaper (and other options) apply to current term (splits/tabs)
Diffstat (limited to 'src/bin/options.c')
-rw-r--r--src/bin/options.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/options.c b/src/bin/options.c
index 2829a91..f0e55f6 100644
--- a/src/bin/options.c
+++ b/src/bin/options.c
@@ -92,6 +92,20 @@ _cb_opdt_hide_done(void *data, Evas_Object *obj EINA_UNUSED, const char *sig EIN
edje_object_signal_emit(saved_bg, "optdetails,show", "terminology");
}
+static void
+_cb_opdt_hide_done2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
+{
+ if (op_del_timer)
+ {
+ ecore_timer_del(op_del_timer);
+ op_del_timer = NULL;
+ }
+ _cb_op_del_delay(NULL);
+ edje_object_signal_callback_del(saved_bg, "optdetails,hide,done",
+ "terminology",
+ _cb_opdt_hide_done2);
+}
+
void
options_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term,
void (*donecb) (void *data), void *donedata)
@@ -209,6 +223,9 @@ options_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term,
edje_object_signal_callback_del(bg, "optdetails,hide,done",
"terminology",
_cb_opdt_hide_done);
+ edje_object_signal_callback_add(bg, "optdetails,hide,done",
+ "terminology",
+ _cb_opdt_hide_done2, term);
elm_object_focus_set(op_frame, EINA_FALSE);
elm_object_focus_set(op_opbox, EINA_FALSE);
elm_object_focus_set(op_toolbar, EINA_FALSE);