return WIDGET_ERROR_PERMISSION_DENIED;
ret = _get_widget_list(NULL, getuid(), &list);
- if (ret == WIDGET_ERROR_NONE)
+ if (ret == WIDGET_ERROR_NONE && !_is_global(getuid()))
ret = _get_widget_list(NULL, GLOBALAPP_USER, &list);
for (tmp = list; tmp; tmp = tmp->next) {
return WIDGET_ERROR_PERMISSION_DENIED;
ret = _get_widget_list(pkgid, getuid(), &list);
- if (ret == WIDGET_ERROR_NONE)
+ if (ret == WIDGET_ERROR_NONE && !_is_global(getuid()))
ret = _get_widget_list(pkgid, GLOBALAPP_USER, &list);
for (tmp = list; tmp; tmp = tmp->next) {
}
appid = _get_main_app_id(widget_id, getuid());
- if (appid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (appid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
appid = _get_main_app_id(widget_id, GLOBALAPP_USER);
return appid;
ret = _get_widget_supported_info(widget_id, getuid(), cnt,
&width, &height, types);
- if (ret == WIDGET_ERROR_NOT_EXIST)
+ if (ret == WIDGET_ERROR_NOT_EXIST && !_is_global(getuid()))
ret = _get_widget_supported_info(widget_id, GLOBALAPP_USER,
cnt, &width, &height, types);
}
appid = _get_app_id_of_setup_app(widget_id, getuid());
- if (appid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (appid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
appid = _get_app_id_of_setup_app(widget_id, GLOBALAPP_USER);
return appid;
}
nodisplay = _get_nodisplay(widget_id, getuid());
- if (get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
nodisplay = _get_nodisplay(widget_id, GLOBALAPP_USER);
return nodisplay;
_convert_type_to_support_size_ratio(size_type, &w, &h);
path = _get_preview_image_path(widget_id, w, h, getuid());
- if (path == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (path == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
path = _get_preview_image_path(widget_id, w, h, GLOBALAPP_USER);
if (path == NULL) {
}
widget_id = _get_main_widget_id(pkgid, getuid());
- if (widget_id == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (widget_id == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
widget_id = _get_main_widget_id(pkgid, GLOBALAPP_USER);
icon = _get_icon(widget_id, lang, getuid());
- if (icon == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (icon == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
icon = _get_icon(widget_id, lang, GLOBALAPP_USER);
return icon;
}
name = _get_name(widget_id, language, getuid());
- if (name == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (name == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
name = _get_name(widget_id, language, GLOBALAPP_USER);
free(language);
return WIDGET_ERROR_PERMISSION_DENIED;
ret = _get_widget_supported_sizes(widget_id, getuid(), cnt, w, h);
- if (ret == WIDGET_ERROR_NOT_EXIST)
+ if (ret == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
ret = _get_widget_supported_sizes(widget_id, GLOBALAPP_USER,
cnt, w, h);
}
ret = _get_widget_list(id, getuid(), &widget_list);
- if (ret != WIDGET_ERROR_NONE || widget_list == NULL)
+ if ((ret != WIDGET_ERROR_NONE || widget_list == NULL)
+ && !_is_global(getuid()))
ret = _get_widget_list(id, GLOBALAPP_USER, &widget_list);
if (widget_list == NULL)
}
classid = _get_widget_id(appid, getuid());
- if (classid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (classid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
classid = _get_widget_id(appid, GLOBALAPP_USER);
if (classid)
}
classid = _get_widget_id(widget_id, getuid());
- if (classid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (classid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
classid = _get_widget_id(widget_id, GLOBALAPP_USER);
free(widget_id);
}
pkgid = _get_package_id(widget_id, getuid());
- if (pkgid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST)
+ if (pkgid == NULL && get_last_result() == WIDGET_ERROR_NOT_EXIST
+ && !_is_global(getuid()))
pkgid = _get_package_id(widget_id, GLOBALAPP_USER);
return pkgid;
return WIDGET_ERROR_PERMISSION_DENIED;
ret = __get_max_instance(widget_id, getuid());
- if (ret == WIDGET_ERROR_NOT_EXIST)
+ if (ret == WIDGET_ERROR_NOT_EXIST && !_is_global(getuid()))
ret = __get_max_instance(widget_id, GLOBALAPP_USER);
return ret;