projects
/
platform
/
core
/
appfw
/
widget-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8630f83
)
Fix widget_service_get_widget_list return value
26/81326/1
author
Daehyeon Jung
<darrenh.jung@samsung.com>
Mon, 25 Jul 2016 12:29:07 +0000
(21:29 +0900)
committer
Daehyeon Jung
<darrenh.jung@samsung.com>
Mon, 25 Jul 2016 12:30:16 +0000
(21:30 +0900)
- get_widget_list should return WIDGET_ERROR_NOT_EXIST if 0 app exist
Change-Id: Icd0f5d8c701029ad3845455b052718a402360148
src/widget_service.c
patch
|
blob
|
history
diff --git
a/src/widget_service.c
b/src/widget_service.c
index 85b4bbf38238e0946b7e4f9b880aa9d0c078b6d0..474a7d35d87a5d3a4164c825edf9fcc1970f4c14 100644
(file)
--- a/
src/widget_service.c
+++ b/
src/widget_service.c
@@
-497,6
+497,9
@@
EAPI int widget_service_get_widget_list(widget_list_cb cb, void *data)
ret = g_list_length(list);
g_list_free_full(list, __free_widget_list);
+ if (ret == 0)
+ return WIDGET_ERROR_NOT_EXIST;
+
return ret;
}