extern void _evas_object_event_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
extern void _evas_object_event_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
extern void _evas_object_event_show_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
+extern char *util_get_device_profile(void);
extern const char *util_get_file_path(const char *relative);
#define util_get_res_file_path(x) util_get_file_path(x);
static Evas_Object *_create_conformant(Evas_Object *win)
{
Evas_Object *conformant;
+ char *device_profile;
conformant = elm_conformant_add(win);
retv_if(NULL == conformant, NULL);
evas_object_size_hint_weight_set(conformant, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_indicator_mode_set(menu_screen_info.win, ELM_WIN_INDICATOR_SHOW);
- elm_win_indicator_opacity_set(menu_screen_info.win, ELM_WIN_INDICATOR_TRANSLUCENT);
+ device_profile = util_get_device_profile();
+ if (device_profile) {
+ if (!strcmp(device_profile, "mobile")) {
+ elm_win_indicator_mode_set(menu_screen_info.win, ELM_WIN_INDICATOR_SHOW);
+ elm_win_indicator_opacity_set(menu_screen_info.win, ELM_WIN_INDICATOR_TRANSLUCENT);
+ }
+ }
elm_object_signal_emit(conformant, "elm,state,indicator,overlap", "elm");
evas_object_data_set(conformant, "win", win);
evas_object_show(conformant);
elm_win_resize_object_add(win, conformant);
elm_win_conformant_set(win, EINA_TRUE);
+ if (device_profile)
+ free(device_profile);
+
return conformant;
}
#include <Evas.h>
#include <app_common.h>
-
+#include <system_info.h>
#include "util.h"
-
+char *util_get_device_profile(void)
+{
+ char *value;
+ int ret;
+ ret = system_info_get_platform_string("http://tizen.org/feature/profile", &value);
+ if (ret != SYSTEM_INFO_ERROR_NONE) {
+ _E("Error: system_info_get_platform_string");
+ return NULL;
+ }
+ _I("Device profile: %s", value);
+ return value;
+}
const char *util_get_file_path(const char *relative)
{