summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2021-01-07 11:05:25 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2021-01-07 11:05:25 +0900
commitc5ec22515c08f64bce78c0e33acd332db1477de7 (patch)
treef455d526e0b13ac98c3234c1b9f398268b2e466a
parent01f6f621450512c13da2f325cf23287500ee91b4 (diff)
downloadminicontrol-tizen.tar.gz
minicontrol-tizen.tar.bz2
minicontrol-tizen.zip
Fix function call orderHEADtizen
The g_rec_mutex_init() should be called before adding event callbacks. Change-Id: I3a636c30ce019103d8b5a103ed2de1d47982e8de Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/minicontrol-provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minicontrol-provider.c b/src/minicontrol-provider.c
index f72f076..6576d58 100644
--- a/src/minicontrol-provider.c
+++ b/src/minicontrol-provider.c
@@ -263,6 +263,7 @@ EXPORT_API Evas_Object *minicontrol_create_window(const char *name,
pd->state = MINICTRL_STATE_READY;
pd->obj = win;
pd->create_time = time(NULL);
+ g_rec_mutex_init(&pd->mutex);
elm_win_autodel_set(win, EINA_TRUE);
@@ -281,7 +282,6 @@ EXPORT_API Evas_Object *minicontrol_create_window(const char *name,
MINICTRL_DBUS_SIG_TO_PROVIDER,
_sig_to_provider_handler_cb, pd);
pd->event_callback = event_callback;
- g_rec_mutex_init(&pd->mutex);
__minicontrol_provider_list_add(pd);
WARN("new minicontrol created - win(%p), name(%s)", win, pd->name);
@@ -509,6 +509,7 @@ EXPORT_API Evas_Object *minicontrol_win_add(const char *name)
pd->name = name_inter;
pd->state = MINICTRL_STATE_READY;
pd->obj = win;
+ g_rec_mutex_init(&pd->mutex);
elm_win_autodel_set(win, EINA_TRUE);
@@ -523,7 +524,6 @@ EXPORT_API Evas_Object *minicontrol_win_add(const char *name)
pd->running_sh = _minictrl_dbus_sig_handle_attach(
MINICTRL_DBUS_SIG_RUNNING_REQ, _running_req_cb, pd);
- g_rec_mutex_init(&pd->mutex);
__minicontrol_provider_list_add(pd);
WARN("new minicontrol created - win(%p), name(%s)", win, pd->name);