#include <widget_string.h>
#include <common/view_logic_get_parent_window_util.h>
+#if (ELM_VERSION_MAJOR == 1 && ELM_VERSION_MINOR == 7)
+#define POPUP_CLASSNAME "popup"
+#else
+//#if ELM_VERSION_MAJOR == 1 && ELM_VERSION_MINOR == 8)
+#define POPUP_CLASSNAME "elm_popup"
+#endif
namespace ViewModule {
namespace {
const double MAX_POPUP_HEIGHT = 0.80;
Assert(button);
Evas_Object* popup = button;
- while (strcmp(elm_object_widget_type_get(popup), "elm_popup")) {
+ while (strcmp(elm_object_widget_type_get(popup), POPUP_CLASSNAME)) {
popup = elm_object_parent_widget_get(popup);
if (!popup) {
return NULL;
Evas_Object* CertificateSupportUtil::getCheck(Evas_Object* popup)
{
Assert(popup);
- if (strcmp(elm_object_widget_type_get(popup), "elm_popup")) {
+ if (strcmp(elm_object_widget_type_get(popup), POPUP_CLASSNAME)) {
return NULL;
}
Evas_Object* check = elm_object_part_content_get(
#include <widget_string.h>
#include <common/view_logic_get_parent_window_util.h>
+
+#if (ELM_VERSION_MAJOR == 1 && ELM_VERSION_MINOR == 7)
+#define POPUP_CLASSNAME "popup"
+#else
+//#if ELM_VERSION_MAJOR == 1 && ELM_VERSION_MINOR == 8)
+#define POPUP_CLASSNAME "elm_popup"
+#endif
namespace ViewModule {
namespace {
const double MAX_POPUP_HEIGHT = 0.80;
Assert(button);
Evas_Object* popup = button;
- while (strcmp(elm_object_widget_type_get(popup), "elm_popup")) {
+ while (strcmp(elm_object_widget_type_get(popup), POPUP_CLASSNAME )) {
popup = elm_object_parent_widget_get(popup);
if (!popup) {
return NULL;
Evas_Object* SecurityOriginSupportUtil::getCheck(Evas_Object* popup)
{
Assert(popup);
- if (strcmp(elm_object_widget_type_get(popup), "elm_popup")) {
+ if (strcmp(elm_object_widget_type_get(popup), POPUP_CLASSNAME )) {
return NULL;
}
Evas_Object* check = elm_object_part_content_get(
#include <common/view_logic_security_origin_support.h>
#include <common/view_logic_get_parent_window_util.h>
+#if (ELM_VERSION_MAJOR == 1 && ELM_VERSION_MINOR == 7)
+#define POPUP_CLASSNAME "popup"
+#else
+//#if ELM_VERSION_MAJOR == 1 && ELM_VERSION_MINOR == 8)
+#define POPUP_CLASSNAME "elm_popup"
+#endif
+
namespace ViewModule {
using namespace SecurityOriginDB;
using namespace ViewModule::SecurityOriginSupportUtil;
Assert(button);
Evas_Object* popup = button;
- while (strcmp(elm_object_widget_type_get(popup), "elm_popup")) {
+ while (strcmp(elm_object_widget_type_get(popup), POPUP_CLASSNAME)) {
popup = elm_object_parent_widget_get(popup);
if (!popup) {
return NULL;