It occurs that glib-object.h was used only for TRUE/FALSE defines.
Exchange it with one from stdboo.h
Change-Id: I6d3b0eafd8d25e2d476e6676efdbff0aef5806ab
Signed-off-by: Lukasz Stanislawski <l.stanislaws@samsung.com>
//#include <Ecore_X.h>
#include <Ecore_File.h>
#include <Eina.h>
-#include <glib-object.h>
+#include <stdbool.h>
#define VCONFKEY_APPTRAY_STATE "file/private/org.tizen.app-tray/is_top"
int box_handle_animated_gif(icon_s *icon)
{
- int bPlay = TRUE;
+ int bPlay = true;
int val = 0;
Evas_Object *icon_eo = evas_object_data_get(icon->img_obj.obj, DATA_KEY_IMG_ICON);
retif(icon == NULL, FAIL, "Invalid parameter!");
if (elm_image_animated_available_get(icon_eo) == EINA_FALSE) {
- return FALSE;
+ return false;
}
if (vconf_get_int(VCONFKEY_PM_STATE, &val) < 0) {
- return FALSE;
+ return false;
}
switch (val) {
case VCONFKEY_PM_STATE_LCDOFF : //LCD OFF
- bPlay = FALSE;
+ bPlay = false;
break;
case VCONFKEY_PM_STATE_NORMAL : //LCD ON
- bPlay = TRUE;
+ bPlay = true;
break;
default:
- bPlay = TRUE;
+ bPlay = true;
break;
}
- if (bPlay == TRUE) {
+ if (bPlay == true) {
if (elm_image_animated_get(icon_eo)==EINA_FALSE) {
elm_image_animated_set(icon_eo,EINA_TRUE);
}
}
}
- return TRUE;
+ return true;
}
_list_free(noti_icon_list);
_list_free(alarm_icon_list);
- return TRUE;
+ return true;
}
if (home_button_pressed) {
if (!box_check_home_icon_area(win,ev->cur.canvas.x,ev->cur.canvas.y)) {
- home_button_pressed = FALSE;
+ home_button_pressed = false;
}
}
static Eina_Bool _retry_timeout_cb(void *data)
{
- retif(data == NULL,TRUE , "Invalid parameter!");
+ retif(data == NULL, EINA_TRUE , "Invalid parameter!");
if(message_buf!=NULL)
{
ecore_timer_del(retry_timer);
retry_timer = NULL;
}
- return TRUE;
+ return EINA_TRUE;
}
static void _wifi_changed_cb(keynode_t *node, void *data)
{
- bool wifi_state = FALSE;
+ bool wifi_state = false;
int status, strength;
int ret;
static void _wifi_device_state_changed_cb(wifi_device_state_e state, void *user_data)
{
- bool wifi_state = FALSE;
+ bool wifi_state = false;
int ret, strength;
ret_if(!user_data);
ret = wifi_initialize();
if (ret != WIFI_ERROR_NONE) {
_E("wifi_initialize is fail : %d", ret);
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
static void _wifi_fini(void)
ERR("NO TIMEZONEINFO");
return _get_timezone_from_vconf();
}
- return (char*)g_strdup(buf+20); // Asia/Seoul
+ return (char*)strdup(buf+20); // Asia/Seoul
}
static bool _is_empty_str(const char *str)
{
if (NULL == str || '\0' == str[0])
- return TRUE;
- return FALSE;
+ return true;
+ return false;
}