aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_evas/ecore_evas_ews.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-01-13 14:26:36 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-01-13 14:26:36 +0900
commitfb59ac34a1ec65680ca4ff3fc62d1fc42aa72f5a (patch)
treef617f880ad12259ba7f728ce4e2eb9d90114d722 /src/lib/ecore_evas/ecore_evas_ews.c
parentevas - cserve2 - avoid segv accessing im->cache (diff)
downloadefl-fb59ac34a1ec65680ca4ff3fc62d1fc42aa72f5a.tar.gz
ecore_evas - use eina_bool instead of the char for interal data.
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_ews.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_ews.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_ews.c b/src/lib/ecore_evas/ecore_evas_ews.c
index 41e6a005f8..9aa1dba319 100644
--- a/src/lib/ecore_evas/ecore_evas_ews.c
+++ b/src/lib/ecore_evas/ecore_evas_ews.c
@@ -483,39 +483,39 @@ _ecore_evas_ews_iconified_set(Ecore_Evas *ee, Eina_Bool on)
}
static void
-_ecore_evas_ews_borderless_set(Ecore_Evas *ee, int val)
+_ecore_evas_ews_borderless_set(Ecore_Evas *ee, Eina_Bool on)
{
- if (ee->prop.borderless == val) return;
- ee->prop.borderless = val;
+ if (ee->prop.borderless == on) return;
+ ee->prop.borderless = on;
_ecore_evas_ews_event(ee, ECORE_EVAS_EWS_EVENT_CONFIG_CHANGE);
}
static void
-_ecore_evas_ews_override_set(Ecore_Evas *ee, int val)
+_ecore_evas_ews_override_set(Ecore_Evas *ee, Eina_Bool on)
{
- if (ee->prop.override == val) return;
+ if (ee->prop.override == on) return;
if (ee->visible) evas_object_show(ee->engine.ews.image);
if (ee->prop.focused) evas_object_focus_set(ee->engine.ews.image, EINA_TRUE);
- ee->prop.override = val;
+ ee->prop.override = on;
_ecore_evas_ews_event(ee, ECORE_EVAS_EWS_EVENT_CONFIG_CHANGE);
}
static void
-_ecore_evas_ews_maximized_set(Ecore_Evas *ee, int val)
+_ecore_evas_ews_maximized_set(Ecore_Evas *ee, Eina_Bool on)
{
- if (ee->prop.maximized == val) return;
- ee->prop.maximized = val;
- if (val) evas_object_show(ee->engine.ews.image);
+ if (ee->prop.maximized == on) return;
+ ee->prop.maximized = on;
+ if (on) evas_object_show(ee->engine.ews.image);
_ecore_evas_ews_event(ee, ECORE_EVAS_EWS_EVENT_MAXIMIZED_CHANGE);
}
static void
-_ecore_evas_ews_fullscreen_set(Ecore_Evas *ee, int val)
+_ecore_evas_ews_fullscreen_set(Ecore_Evas *ee, Eina_Bool on)
{
- if (ee->prop.fullscreen == val) return;
- ee->prop.fullscreen = val;
+ if (ee->prop.fullscreen == on) return;
+ ee->prop.fullscreen = on;
- if (!val)
+ if (!on)
{
evas_object_move(ee->engine.ews.image, ee->x, ee->y);
evas_object_resize(ee->engine.ews.image, ee->w, ee->h);
@@ -546,20 +546,20 @@ _ecore_evas_ews_avoid_damage_set(Ecore_Evas *ee, int val)
}
static void
-_ecore_evas_ews_withdrawn_set(Ecore_Evas *ee, int val)
+_ecore_evas_ews_withdrawn_set(Ecore_Evas *ee, Eina_Bool on)
{
- if (ee->prop.withdrawn == val) return;
- ee->prop.withdrawn = val;
+ if (ee->prop.withdrawn == on) return;
+ ee->prop.withdrawn = on;
_ecore_evas_ews_event(ee, ECORE_EVAS_EWS_EVENT_CONFIG_CHANGE);
}
static void
-_ecore_evas_ews_sticky_set(Ecore_Evas *ee, int val)
+_ecore_evas_ews_sticky_set(Ecore_Evas *ee, Eina_Bool on)
{
- if (ee->prop.sticky == val) return;
- ee->prop.sticky = val;
- if ((val) && (ee->func.fn_sticky)) ee->func.fn_sticky(ee);
- else if ((!val) && (ee->func.fn_unsticky)) ee->func.fn_unsticky(ee);
+ if (ee->prop.sticky == on) return;
+ ee->prop.sticky = on;
+ if ((on) && (ee->func.fn_sticky)) ee->func.fn_sticky(ee);
+ else if ((!on) && (ee->func.fn_unsticky)) ee->func.fn_unsticky(ee);
_ecore_evas_ews_event(ee, ECORE_EVAS_EWS_EVENT_CONFIG_CHANGE);
}