} else {
autoLaunch = 0;
}
+ LogInfo("livebox auto-launch: " << autoLaunch);
+
+ int mouseEvent;
+ if ((**it).m_boxInfo.m_boxMouseEvent == L"true") {
+ mouseEvent = 1;
+ } else {
+ mouseEvent = 0;
+ }
+ LogInfo("livebox mouse-event: " << mouseEvent);
int ret =
web_provider_livebox_insert_box_info(
- boxId.c_str(), tizenId.c_str(), boxType.c_str(), autoLaunch);
+ boxId.c_str(), tizenId.c_str(), boxType.c_str(), autoLaunch, mouseEvent);
if (ret < 0) {
LogDebug("failed to set type of livebox: " << boxId);
#include <widget_install/job_widget_install.h>
#include <widget_install/widget_install_errors.h>
#include <widget_install/widget_install_context.h>
+#include <web_provider_livebox_info.h>
+#include <web_provider_plugin_info.h>
#include <dpl/wrt-dao-ro/global_config.h>
#include <dpl/log/log.h>
#include <dpl/file_input.h>
}
if (ConfigInfo->m_boxInfo.m_boxMouseEvent == L"true") {
- box.boxMouseEvent = ConfigInfo->m_boxInfo.m_boxMouseEvent;
+ std::string boxType;
+ if (ConfigInfo->m_type == L"") {
+ // in case of default livebox
+ boxType = web_provider_livebox_get_default_type();
+ } else {
+ boxType = DPL::ToUTF8String(ConfigInfo->m_type);
+ }
+
+ int box_scrollable =
+ web_provider_plugin_get_box_scrollable(boxType.c_str());
+
+ if (box_scrollable) {
+ box.boxMouseEvent = L"true";
+ } else {
+ box.boxMouseEvent = L"false";
+ }
} else {
box.boxMouseEvent = L"false";
}
if (ConfigInfo->m_boxInfo.m_boxTouchEffect == L"true") {
- box.boxTouchEffect = ConfigInfo->m_boxInfo.m_boxTouchEffect;
+ box.boxTouchEffect = L"true";
} else {
box.boxTouchEffect= L"false";
}