summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinwoo Nam <jwoo.nam@samsung.com>2012-09-06 02:24:44 (GMT)
committerJinwoo Nam <jwoo.nam@samsung.com>2012-09-06 02:24:44 (GMT)
commit5964013ff6d59fa4fb35e3165845eb15f2c743d1 (patch)
tree6c429e2c78a01c2e35fe9d883d066ff363f884c1
parent24700c7114938aace312f60e39b599328c9a4362 (diff)
downloadui-gadget-1-5964013ff6d59fa4fb35e3165845eb15f2c743d1.zip
ui-gadget-1-5964013ff6d59fa4fb35e3165845eb15f2c743d1.tar.gz
ui-gadget-1-5964013ff6d59fa4fb35e3165845eb15f2c743d1.tar.bz2
if ug create fail, call elm_exit. code cleanup
-rwxr-xr-xclient/ug-client.c29
1 files changed, 4 insertions, 25 deletions
diff --git a/client/ug-client.c b/client/ug-client.c
index a592f66..cbbe223 100755
--- a/client/ug-client.c
+++ b/client/ug-client.c
@@ -29,8 +29,6 @@
#include "ug-client.h"
-#define POPUP_TITLE_MAX (128)
-
#ifdef LOG_TAG
#undef LOG_TAG
#endif
@@ -99,29 +97,6 @@ static int rotate(enum appcore_rm m, void *data)
return 0;
}
-static void close_popup(void *data, Evas_Object *obj, void *event_info)
-{
- evas_object_del(obj);
- elm_exit();
-}
-
-static void show_popup(Evas_Object *win, const char *name)
-{
- Evas_Object *pu;
- char buf[POPUP_TITLE_MAX];
-
- if (!name || !win)
- return;
-
- pu = elm_popup_add(win);
- if (!pu)
- return;
-
- evas_object_size_hint_weight_set(pu, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
- evas_object_show(pu);
-}
-
void layout_cb(ui_gadget_h ug, enum ug_mode mode, void *priv)
{
struct appdata *ad;
@@ -326,6 +301,10 @@ static int app_reset(bundle *b, void *data)
cbs.priv = ad;
ad->ug = ug_create(NULL, ad->name, mode, service, &cbs);
+ if (ad->ug == NULL) {
+ LOGE("ug_create fail: %s\n", ad->name);
+ elm_exit();
+ }
return 0;
}