diff options
author | Shinwoo Kim <cinoo.kim@samsung.com> | 2015-11-09 16:00:17 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-11-09 16:00:19 -0800 |
commit | 0e03ef5a26b414f3ad8a8fbaf92db21b6103ea8b (patch) | |
tree | dca01c03fe7c7bae12951a1c86a11caba2e0339f | |
parent | 3a6a1253220ccebec2957413d9a232a78202499a (diff) | |
download | elementary-0e03ef5a26b414f3ad8a8fbaf92db21b6103ea8b.tar.gz |
conform: retry connect to indicator when confrom fails connect.
Summary:
An application starts before the indicator has. In this case,
the application should try to connect again with the indicator.
Test Plan:
1. Start an application without the indicator service.
2. Start the indicator service.
Reviewers: raster, Hermet, woohyun, jaehwan, cedric
Subscribers: seoz
Differential Revision: https://phab.enlightenment.org/D3258
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r-- | src/lib/elm_conform.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index 491a1bf65..8b5678740 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -407,7 +407,8 @@ _create_portrait_indicator(Evas_Object *obj) if (!elm_plug_connect(port_indicator, port_indicator_serv_name, 0, EINA_FALSE)) { DBG("Conformant cannot connect to server[%s]\n", port_indicator_serv_name); - return NULL; + sd->port_indi_timer = ecore_timer_add(ELM_CONFORM_INDICATOR_TIME, + _port_indicator_connect_cb, obj); } elm_widget_sub_object_add(obj, port_indicator); @@ -448,7 +449,8 @@ _create_landscape_indicator(Evas_Object *obj) if (!elm_plug_connect(land_indicator, land_indicator_serv_name, 0, EINA_FALSE)) { DBG("Conformant cannot connect to server[%s]\n", land_indicator_serv_name); - return NULL; + sd->land_indi_timer = ecore_timer_add(ELM_CONFORM_INDICATOR_TIME, + _land_indicator_connect_cb, obj); } elm_widget_sub_object_add(obj, land_indicator); |