int --> bool
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 26 Sep 2010 17:49:05 +0000 (17:49 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 26 Sep 2010 17:49:05 +0000 (17:49 +0000)
Please review it. i don't have the courage to read
everything again

It should compile on linux (committed from windows, but
corrected at the same time on linux. Thank you, VirtualBox
devs !)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@52784 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

21 files changed:
src/lib/ecore_x/Ecore_X.h
src/lib/ecore_x/xlib/ecore_x.c
src/lib/ecore_x/xlib/ecore_x_composite.c
src/lib/ecore_x/xlib/ecore_x_cursor.c
src/lib/ecore_x/xlib/ecore_x_damage.c
src/lib/ecore_x/xlib/ecore_x_dnd.c
src/lib/ecore_x/xlib/ecore_x_dpms.c
src/lib/ecore_x/xlib/ecore_x_e.c
src/lib/ecore_x/xlib/ecore_x_icccm.c
src/lib/ecore_x/xlib/ecore_x_mwm.c
src/lib/ecore_x/xlib/ecore_x_netwm.c
src/lib/ecore_x/xlib/ecore_x_private.h
src/lib/ecore_x/xlib/ecore_x_region.c
src/lib/ecore_x/xlib/ecore_x_screensaver.c
src/lib/ecore_x/xlib/ecore_x_selection.c
src/lib/ecore_x/xlib/ecore_x_sync.c
src/lib/ecore_x/xlib/ecore_x_test.c
src/lib/ecore_x/xlib/ecore_x_window.c
src/lib/ecore_x/xlib/ecore_x_window_prop.c
src/lib/ecore_x/xlib/ecore_x_window_shape.c
src/lib/ecore_x/xlib/ecore_x_xinerama.c

index fccf859..ed3d0d0 100644 (file)
@@ -1140,35 +1140,35 @@ EAPI void                    ecore_x_event_mask_set(Ecore_X_Window     w,
 EAPI void                    ecore_x_event_mask_unset(Ecore_X_Window     w,
                                                       Ecore_X_Event_Mask mask);
 
-EAPI int                     ecore_x_selection_notify_send(Ecore_X_Window requestor,
+EAPI Eina_Bool               ecore_x_selection_notify_send(Ecore_X_Window requestor,
                                                            Ecore_X_Atom   selection,
                                                            Ecore_X_Atom   target,
                                                            Ecore_X_Atom   property,
                                                            Ecore_X_Time   time);
 EAPI void                    ecore_x_selection_primary_prefetch(void);
 EAPI void                    ecore_x_selection_primary_fetch(void);
-EAPI int                     ecore_x_selection_primary_set(Ecore_X_Window w,
+EAPI Eina_Bool               ecore_x_selection_primary_set(Ecore_X_Window w,
                                                            const void    *data,
                                                            int            size);
-EAPI int                     ecore_x_selection_primary_clear(void);
+EAPI Eina_Bool               ecore_x_selection_primary_clear(void);
 EAPI void                    ecore_x_selection_secondary_prefetch(void);
 EAPI void                    ecore_x_selection_secondary_fetch(void);
-EAPI int                     ecore_x_selection_secondary_set(Ecore_X_Window w,
+EAPI Eina_Bool               ecore_x_selection_secondary_set(Ecore_X_Window w,
                                                              const void    *data,
                                                              int            size);
-EAPI int                     ecore_x_selection_secondary_clear(void);
+EAPI Eina_Bool               ecore_x_selection_secondary_clear(void);
 EAPI void                    ecore_x_selection_xdnd_prefetch(void);
 EAPI void                    ecore_x_selection_xdnd_fetch(void);
-EAPI int                     ecore_x_selection_xdnd_set(Ecore_X_Window w,
+EAPI Eina_Bool               ecore_x_selection_xdnd_set(Ecore_X_Window w,
                                                         const void    *data,
                                                         int            size);
-EAPI int                     ecore_x_selection_xdnd_clear(void);
+EAPI Eina_Bool               ecore_x_selection_xdnd_clear(void);
 EAPI void                    ecore_x_selection_clipboard_prefetch(void);
 EAPI void                    ecore_x_selection_clipboard_fetch(void);
-EAPI int                     ecore_x_selection_clipboard_set(Ecore_X_Window w,
+EAPI Eina_Bool               ecore_x_selection_clipboard_set(Ecore_X_Window w,
                                                              const void    *data,
                                                              int            size);
-EAPI int                     ecore_x_selection_clipboard_clear(void);
+EAPI Eina_Bool               ecore_x_selection_clipboard_clear(void);
 EAPI void                    ecore_x_selection_primary_request(Ecore_X_Window w,
                                                                const char    *target);
 EAPI void                    ecore_x_selection_secondary_request(Ecore_X_Window w,
@@ -1177,13 +1177,13 @@ EAPI void                    ecore_x_selection_xdnd_request(Ecore_X_Window w,
                                                             const char    *target);
 EAPI void                    ecore_x_selection_clipboard_request(Ecore_X_Window w,
                                                                  const char    *target);
-EAPI int                     ecore_x_selection_convert(Ecore_X_Atom  selection,
+EAPI Eina_Bool               ecore_x_selection_convert(Ecore_X_Atom  selection,
                                                        Ecore_X_Atom  target,
                                                        void        **data_ret,
                                                        int          *len,
                                                        Ecore_X_Atom *targprop,
                                                        int          *targsize);
-EAPI void                    ecore_x_selection_converter_add(char *target, int (*func)(
+EAPI void                    ecore_x_selection_converter_add(char *target, Eina_Bool (*func)(
                                                                 char  *target,
                                                                 void  *data,
                                                                 int    size,
@@ -1191,7 +1191,7 @@ EAPI void                    ecore_x_selection_converter_add(char *target, int (
                                                                 int   *size_ret,
                                                                 Ecore_X_Atom *,
                                                                 int *));
-EAPI void      ecore_x_selection_converter_atom_add(Ecore_X_Atom target, int (*func)(
+EAPI void      ecore_x_selection_converter_atom_add(Ecore_X_Atom target, Eina_Bool (*func)(
                                                        char         *target,
                                                        void         *data,
                                                        int           size,
@@ -1208,17 +1208,17 @@ EAPI void                ecore_x_selection_parser_add(const char *target,
                                                                     int format));
 EAPI void                ecore_x_selection_parser_del(const char *target);
 
-EAPI void                ecore_x_dnd_aware_set(Ecore_X_Window win, int on);
+EAPI void                ecore_x_dnd_aware_set(Ecore_X_Window win, Eina_Bool on);
 EAPI void                ecore_x_dnd_version_get_prefetch(Ecore_X_Window window);
 EAPI void                ecore_x_dnd_version_get_fetch(void);
 EAPI int                 ecore_x_dnd_version_get(Ecore_X_Window win);
 EAPI void                ecore_x_dnd_type_get_prefetch(Ecore_X_Window window);
 EAPI void                ecore_x_dnd_type_get_fetch(void);
-EAPI int                 ecore_x_dnd_type_isset(Ecore_X_Window win,
+EAPI Eina_Bool           ecore_x_dnd_type_isset(Ecore_X_Window win,
                                                 const char    *type);
 EAPI void                ecore_x_dnd_type_set(Ecore_X_Window win,
                                               const char    *type,
-                                              int            on);
+                                              Eina_Bool      on);
 EAPI void                ecore_x_dnd_types_set(Ecore_X_Window win,
                                                const char   **types,
                                                unsigned int   num_types);
@@ -1227,12 +1227,12 @@ EAPI void                ecore_x_dnd_actions_set(Ecore_X_Window win,
                                                  unsigned int   num_actions);
 EAPI void                ecore_x_dnd_begin_prefetch(Ecore_X_Window source);
 EAPI void                ecore_x_dnd_begin_fetch(void);
-EAPI int                 ecore_x_dnd_begin(Ecore_X_Window source,
+EAPI Eina_Bool           ecore_x_dnd_begin(Ecore_X_Window source,
                                            unsigned char *data,
                                            int            size);
-EAPI int                 ecore_x_dnd_drop(void);
-EAPI void                ecore_x_dnd_send_status(int               will_accept,
-                                                 int               suppress,
+EAPI Eina_Bool           ecore_x_dnd_drop(void);
+EAPI void                ecore_x_dnd_send_status(Eina_Bool         will_accept,
+                                                 Eina_Bool         suppress,
                                                  Ecore_X_Rectangle rectangle,
                                                  Ecore_X_Atom      action);
 EAPI void                ecore_x_dnd_send_finished(void);
@@ -1332,7 +1332,7 @@ EAPI void                ecore_x_window_border_width_set(
    int            width);
 EAPI int                 ecore_x_window_depth_get(Ecore_X_Window win);
 EAPI void                ecore_x_window_cursor_show(Ecore_X_Window win,
-                                                    int            show);
+                                                    Eina_Bool      show);
 EAPI void                ecore_x_window_defaults_set(Ecore_X_Window win);
 EAPI int                 ecore_x_window_visible_get(Ecore_X_Window win);
 EAPI Ecore_X_Window      ecore_x_window_shadow_tree_at_xy_with_skip_get(
@@ -1387,7 +1387,7 @@ EAPI void      ecore_x_window_area_expose(Ecore_X_Window win,
                                           int            w,
                                           int            h);
 EAPI void      ecore_x_window_override_set(Ecore_X_Window win,
-                                           int            override);
+                                           Eina_Bool      override);
 
 EAPI void      ecore_x_window_prop_card32_set(
    Ecore_X_Window win,
@@ -1537,7 +1537,7 @@ EAPI void                     ecore_x_window_prop_string_get_fetch(void);
 EAPI char *                   ecore_x_window_prop_string_get(
    Ecore_X_Window win,
    Ecore_X_Atom   type);
-EAPI int                      ecore_x_window_prop_protocol_isset(
+EAPI Eina_Bool                ecore_x_window_prop_protocol_isset(
    Ecore_X_Window      win,
    Ecore_X_WM_Protocol protocol);
 EAPI Ecore_X_WM_Protocol *    ecore_x_window_prop_protocol_list_get(
@@ -1596,7 +1596,7 @@ EAPI Ecore_X_Rectangle *      ecore_x_window_shape_rectangles_get(
    int           *num_ret);
 EAPI void                     ecore_x_window_shape_events_select(
    Ecore_X_Window win,
-   int            on);
+   Eina_Bool      on);
 EAPI void                     ecore_x_window_shape_input_mask_set(
    Ecore_X_Window win,
    Ecore_X_Pixmap mask);
@@ -1627,7 +1627,7 @@ EAPI Ecore_X_GC      ecore_x_gc_new(Ecore_X_Drawable      draw,
                                     const unsigned int   *value_list);
 EAPI void            ecore_x_gc_free(Ecore_X_GC gc);
 
-EAPI int             ecore_x_client_message32_send(Ecore_X_Window     win,
+EAPI Eina_Bool       ecore_x_client_message32_send(Ecore_X_Window     win,
                                                    Ecore_X_Atom       type,
                                                    Ecore_X_Event_Mask mask,
                                                    long               d0,
@@ -1635,18 +1635,18 @@ EAPI int             ecore_x_client_message32_send(Ecore_X_Window     win,
                                                    long               d2,
                                                    long               d3,
                                                    long               d4);
-EAPI int       ecore_x_client_message8_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_client_message8_send(Ecore_X_Window win,
                                             Ecore_X_Atom   type,
                                             const void    *data,
                                             int            len);
-EAPI int       ecore_x_mouse_move_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_mouse_move_send(Ecore_X_Window win,
                                        int            x,
                                        int            y);
-EAPI int       ecore_x_mouse_down_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_mouse_down_send(Ecore_X_Window win,
                                        int            x,
                                        int            y,
                                        int            b);
-EAPI int       ecore_x_mouse_up_send(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_mouse_up_send(Ecore_X_Window win,
                                      int            x,
                                      int            y,
                                      int            b);
@@ -1670,7 +1670,7 @@ EAPI void      ecore_x_drawable_rectangle_fill(
    int              width,
    int              height);
 
-EAPI int                            ecore_x_cursor_color_supported_get(void);
+EAPI Eina_Bool                      ecore_x_cursor_color_supported_get(void);
 EAPI Ecore_X_Cursor                 ecore_x_cursor_new(Ecore_X_Window win,
                                                        int           *pixels,
                                                        int            w,
@@ -1685,7 +1685,7 @@ EAPI int                            ecore_x_cursor_size_get(void);
 /* FIXME: these funcs need categorising */
 EAPI Ecore_X_Window *               ecore_x_window_root_list(int *num_ret);
 EAPI Ecore_X_Window                 ecore_x_window_root_first_get(void);
-EAPI int                            ecore_x_window_manage(Ecore_X_Window win);
+EAPI Eina_Bool                      ecore_x_window_manage(Ecore_X_Window win);
 EAPI void                           ecore_x_window_container_manage(
    Ecore_X_Window win);
 EAPI void                           ecore_x_window_client_manage(Ecore_X_Window win);
@@ -1723,7 +1723,7 @@ EAPI void                           ecore_x_icccm_move_resize_send(
    int            h);
 EAPI void                           ecore_x_icccm_hints_set(
    Ecore_X_Window win,
-   int            accepts_focus,
+   Eina_Bool      accepts_focus,
    Ecore_X_Window_State_Hint
    initial_state,
    Ecore_X_Pixmap
@@ -1733,17 +1733,17 @@ EAPI void                           ecore_x_icccm_hints_set(
    icon_window,
    Ecore_X_Window
    window_group,
-   int            is_urgent);
-EAPI int      ecore_x_icccm_hints_get(Ecore_X_Window             win,
-                                      int                       *accepts_focus,
+   Eina_Bool      is_urgent);
+EAPI Eina_Bool ecore_x_icccm_hints_get(Ecore_X_Window             win,
+                                      Eina_Bool                 *accepts_focus,
                                       Ecore_X_Window_State_Hint *initial_state,
                                       Ecore_X_Pixmap            *icon_pixmap,
                                       Ecore_X_Pixmap            *icon_mask,
                                       Ecore_X_Window            *icon_window,
                                       Ecore_X_Window            *window_group,
-                                      int                       *is_urgent);
+                                      Eina_Bool                 *is_urgent);
 EAPI void      ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
-                                                int request_pos,
+                                                Eina_Bool request_pos,
                                                 Ecore_X_Gravity gravity,
                                                 int min_w, int min_h,
                                                 int max_w, int max_h,
@@ -1751,8 +1751,8 @@ EAPI void      ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
                                                 int step_x, int step_y,
                                                 double min_aspect,
                                                 double max_aspect);
-EAPI int      ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
-                                               int *request_pos,
+EAPI Eina_Bool ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
+                                               Eina_Bool *request_pos,
                                                Ecore_X_Gravity *gravity,
                                                int *min_w, int *min_h,
                                                int *max_w, int *max_h,
@@ -1767,8 +1767,8 @@ EAPI void                ecore_x_icccm_protocol_atoms_set(Ecore_X_Window win,
                                                           int            num);
 EAPI void                ecore_x_icccm_protocol_set(Ecore_X_Window      win,
                                                     Ecore_X_WM_Protocol protocol,
-                                                    int                 on);
-EAPI int                 ecore_x_icccm_protocol_isset(Ecore_X_Window      win,
+                                                    Eina_Bool           on);
+EAPI Eina_Bool           ecore_x_icccm_protocol_isset(Ecore_X_Window      win,
                                                       Ecore_X_WM_Protocol protocol);
 EAPI void                ecore_x_icccm_name_class_set(Ecore_X_Window win,
                                                       const char    *n,
@@ -1835,7 +1835,7 @@ typedef enum _Ecore_X_MWM_Hint_Input
 EAPI void      ecore_x_mwm_hints_get_prefetch(
    Ecore_X_Window window);
 EAPI void      ecore_x_mwm_hints_get_fetch(void);
-EAPI int       ecore_x_mwm_hints_get(
+EAPI Eina_Bool ecore_x_mwm_hints_get(
    Ecore_X_Window win,
    Ecore_X_MWM_Hint_Func
                  *fhint,
@@ -1845,7 +1845,7 @@ EAPI int       ecore_x_mwm_hints_get(
                  *ihint);
 EAPI void      ecore_x_mwm_borderless_set(
    Ecore_X_Window win,
-   int            borderless);
+   Eina_Bool      borderless);
 
 /* netwm */
 EAPI void      ecore_x_netwm_init(void);
@@ -1861,7 +1861,7 @@ EAPI void      ecore_x_netwm_supported_set(
 EAPI void      ecore_x_netwm_supported_get_prefetch(
    Ecore_X_Window root);
 EAPI void      ecore_x_netwm_supported_get_fetch(void);
-EAPI int       ecore_x_netwm_supported_get(
+EAPI Eina_Bool ecore_x_netwm_supported_get(
    Ecore_X_Window root,
    Ecore_X_Atom **supported,
    int           *num);
@@ -1899,7 +1899,7 @@ EAPI void      ecore_x_netwm_desk_layout_set(
    int            starting_corner);
 EAPI void      ecore_x_netwm_showing_desktop_set(
    Ecore_X_Window root,
-   int            on);
+   Eina_Bool      on);
 EAPI void      ecore_x_netwm_client_list_set(
    Ecore_X_Window  root,
    Ecore_X_Window *p_clients,
@@ -1966,7 +1966,7 @@ EAPI void      ecore_x_netwm_desktop_set(
 EAPI void      ecore_x_netwm_desktop_get_prefetch(
    Ecore_X_Window window);
 EAPI void      ecore_x_netwm_desktop_get_fetch(void);
-EAPI int       ecore_x_netwm_desktop_get(
+EAPI Eina_Bool ecore_x_netwm_desktop_get(
    Ecore_X_Window win,
    unsigned int  *desk);
 EAPI void      ecore_x_netwm_strut_set(Ecore_X_Window win,
@@ -1977,7 +1977,7 @@ EAPI void      ecore_x_netwm_strut_set(Ecore_X_Window win,
 EAPI void      ecore_x_netwm_strut_get_prefetch(
    Ecore_X_Window window);
 EAPI void      ecore_x_netwm_strut_get_fetch(void);
-EAPI int       ecore_x_netwm_strut_get(Ecore_X_Window win,
+EAPI Eina_Bool ecore_x_netwm_strut_get(Ecore_X_Window win,
                                              int     *left,
                                              int     *right,
                                              int     *top,
@@ -1999,7 +1999,7 @@ EAPI void      ecore_x_netwm_strut_partial_set(
 EAPI void      ecore_x_netwm_strut_partial_get_prefetch(
    Ecore_X_Window window);
 EAPI void      ecore_x_netwm_strut_partial_get_fetch(void);
-EAPI int       ecore_x_netwm_strut_partial_get(
+EAPI Eina_Bool ecore_x_netwm_strut_partial_get(
    Ecore_X_Window win,
    int           *left,
    int           *right,
@@ -2016,7 +2016,7 @@ EAPI int       ecore_x_netwm_strut_partial_get(
 EAPI void                                 ecore_x_netwm_icons_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_icons_get_fetch(void);
-EAPI int                                  ecore_x_netwm_icons_get(Ecore_X_Window       win,
+EAPI Eina_Bool                            ecore_x_netwm_icons_get(Ecore_X_Window       win,
                                                                         Ecore_X_Icon **icon,
                                                                         int           *num);
 EAPI void                                 ecore_x_netwm_icon_geometry_set(
@@ -2028,7 +2028,7 @@ EAPI void                                 ecore_x_netwm_icon_geometry_set(
 EAPI void                                 ecore_x_netwm_icon_geometry_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_icon_geometry_get_fetch(void);
-EAPI int                                  ecore_x_netwm_icon_geometry_get(
+EAPI Eina_Bool                            ecore_x_netwm_icon_geometry_get(
    Ecore_X_Window win,
    int           *x,
    int           *y,
@@ -2039,14 +2039,14 @@ EAPI void                                 ecore_x_netwm_pid_set(Ecore_X_Window w
 EAPI void                                 ecore_x_netwm_pid_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_pid_get_fetch(void);
-EAPI int                                  ecore_x_netwm_pid_get(Ecore_X_Window win,
+EAPI Eina_Bool                            ecore_x_netwm_pid_get(Ecore_X_Window win,
                                                                       int     *pid);
 EAPI void                                 ecore_x_netwm_handled_icons_set(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_netwm_handled_icons_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_handled_icons_get_fetch(void);
-EAPI int                                  ecore_x_netwm_handled_icons_get(
+EAPI Eina_Bool                            ecore_x_netwm_handled_icons_get(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_netwm_user_time_set(
    Ecore_X_Window win,
@@ -2054,7 +2054,7 @@ EAPI void                                 ecore_x_netwm_user_time_set(
 EAPI void                                 ecore_x_netwm_user_time_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_user_time_get_fetch(void);
-EAPI int                                  ecore_x_netwm_user_time_get(
+EAPI Eina_Bool                            ecore_x_netwm_user_time_get(
    Ecore_X_Window win,
    unsigned int  *time);
 EAPI void                                 ecore_x_netwm_window_state_set(
@@ -2064,7 +2064,7 @@ EAPI void                                 ecore_x_netwm_window_state_set(
 EAPI void                                 ecore_x_netwm_window_state_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_window_state_get_fetch(void);
-EAPI int                                  ecore_x_netwm_window_state_get(
+EAPI Eina_Bool                            ecore_x_netwm_window_state_get(
    Ecore_X_Window         win,
    Ecore_X_Window_State **state,
    unsigned int          *num);
@@ -2074,13 +2074,13 @@ EAPI void                                 ecore_x_netwm_window_type_set(
 EAPI void                                 ecore_x_netwm_window_type_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_window_type_get_fetch(void);
-EAPI int                                  ecore_x_netwm_window_type_get(
+EAPI Eina_Bool                            ecore_x_netwm_window_type_get(
    Ecore_X_Window       win,
    Ecore_X_Window_Type *type);
 EAPI int                                  ecore_x_netwm_window_types_get(
    Ecore_X_Window        win,
    Ecore_X_Window_Type **types);
-EAPI int                                  ecore_x_netwm_allowed_action_isset(
+EAPI Eina_Bool                            ecore_x_netwm_allowed_action_isset(
    Ecore_X_Window win,
    Ecore_X_Action action);
 EAPI void                                 ecore_x_netwm_allowed_action_set(
@@ -2091,7 +2091,7 @@ EAPI void                                 ecore_x_netwm_allowed_action_get_prefe
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_allowed_action_get_fetch(
    void);
-EAPI int                                  ecore_x_netwm_allowed_action_get(
+EAPI Eina_Bool                            ecore_x_netwm_allowed_action_get(
    Ecore_X_Window   win,
    Ecore_X_Action **action,
    unsigned int    *num);
@@ -2101,7 +2101,7 @@ EAPI void                                 ecore_x_netwm_opacity_set(
 EAPI void                                 ecore_x_netwm_opacity_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_opacity_get_fetch(void);
-EAPI int                                  ecore_x_netwm_opacity_get(
+EAPI Eina_Bool                            ecore_x_netwm_opacity_get(
    Ecore_X_Window win,
    unsigned int  *opacity);
 EAPI void                                 ecore_x_netwm_frame_size_set(
@@ -2113,7 +2113,7 @@ EAPI void                                 ecore_x_netwm_frame_size_set(
 EAPI void                                 ecore_x_netwm_frame_size_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_frame_size_get_fetch(void);
-EAPI int                                  ecore_x_netwm_frame_size_get(
+EAPI Eina_Bool                            ecore_x_netwm_frame_size_get(
    Ecore_X_Window win,
    int           *fl,
    int           *fr,
@@ -2122,7 +2122,7 @@ EAPI int                                  ecore_x_netwm_frame_size_get(
 EAPI void                                 ecore_x_netwm_sync_counter_get_prefetch(
    Ecore_X_Window window);
 EAPI void                                 ecore_x_netwm_sync_counter_get_fetch(void);
-EAPI int                                  ecore_x_netwm_sync_counter_get(
+EAPI Eina_Bool                            ecore_x_netwm_sync_counter_get(
    Ecore_X_Window        win,
    Ecore_X_Sync_Counter *counter);
 EAPI void                                 ecore_x_netwm_ping_send(Ecore_X_Window win);
@@ -2134,7 +2134,7 @@ EAPI void                                 ecore_x_netwm_state_request_send(
    Ecore_X_Window       root,
    Ecore_X_Window_State s1,
    Ecore_X_Window_State s2,
-   int                  set);
+   Eina_Bool            set);
 EAPI void                                 ecore_x_netwm_desktop_request_send(
    Ecore_X_Window win,
    Ecore_X_Window root,
@@ -2150,7 +2150,7 @@ EAPI void                                 ecore_x_e_frame_size_set(
 EAPI void                                 ecore_x_e_virtual_keyboard_set(
    Ecore_X_Window win,
    unsigned int   is_keyboard);
-EAPI int                                  ecore_x_e_virtual_keyboard_get(
+EAPI Eina_Bool                            ecore_x_e_virtual_keyboard_get(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_e_virtual_keyboard_state_set(
    Ecore_X_Window                 win,
@@ -2174,7 +2174,7 @@ EAPI void                                 ecore_x_e_illume_zone_list_set(
 EAPI void                                 ecore_x_e_illume_conformant_set(
    Ecore_X_Window win,
    unsigned int   is_conformant);
-EAPI int                                  ecore_x_e_illume_conformant_get(
+EAPI Eina_Bool                            ecore_x_e_illume_conformant_get(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_e_illume_mode_set(
    Ecore_X_Window      win,
@@ -2199,12 +2199,12 @@ EAPI void                                 ecore_x_e_illume_home_del_send(
 EAPI void                                 ecore_x_e_illume_drag_set(
    Ecore_X_Window win,
    unsigned int   drag);
-EAPI int                                  ecore_x_e_illume_drag_get(
+EAPI Eina_Bool                            ecore_x_e_illume_drag_get(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_e_illume_drag_locked_set(
    Ecore_X_Window win,
    unsigned int   is_locked);
-EAPI int                                  ecore_x_e_illume_drag_locked_get(
+EAPI Eina_Bool                            ecore_x_e_illume_drag_locked_get(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_e_illume_drag_start_send(
    Ecore_X_Window win);
@@ -2216,7 +2216,7 @@ EAPI void                                 ecore_x_e_illume_indicator_geometry_se
    int            y,
    int            w,
    int            h);
-EAPI int                                  ecore_x_e_illume_indicator_geometry_get(
+EAPI Eina_Bool                            ecore_x_e_illume_indicator_geometry_get(
    Ecore_X_Window win,
    int           *x,
    int           *y,
@@ -2228,7 +2228,7 @@ EAPI void                                 ecore_x_e_illume_softkey_geometry_set(
    int            y,
    int            w,
    int            h);
-EAPI int                                  ecore_x_e_illume_softkey_geometry_get(
+EAPI Eina_Bool                            ecore_x_e_illume_softkey_geometry_get(
    Ecore_X_Window win,
    int           *x,
    int           *y,
@@ -2240,7 +2240,7 @@ EAPI void                                 ecore_x_e_illume_keyboard_geometry_set
    int            y,
    int            w,
    int            h);
-EAPI int                                  ecore_x_e_illume_keyboard_geometry_get(
+EAPI Eina_Bool                            ecore_x_e_illume_keyboard_geometry_get(
    Ecore_X_Window win,
    int           *x,
    int           *y,
@@ -2249,7 +2249,7 @@ EAPI int                                  ecore_x_e_illume_keyboard_geometry_get
 EAPI void                                 ecore_x_e_illume_quickpanel_set(
    Ecore_X_Window win,
    unsigned int   is_quickpanel);
-EAPI int                                  ecore_x_e_illume_quickpanel_get(
+EAPI Eina_Bool                            ecore_x_e_illume_quickpanel_get(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_e_illume_quickpanel_state_set(
    Ecore_X_Window                  win,
@@ -2265,14 +2265,14 @@ EAPI void
                                           ecore_x_e_illume_quickpanel_priority_major_set(
    Ecore_X_Window win,
    unsigned int   priority);
-EAPI int
+EAPI Eina_Bool
                                           ecore_x_e_illume_quickpanel_priority_major_get(
    Ecore_X_Window win);
 EAPI void
                                           ecore_x_e_illume_quickpanel_priority_minor_set(
    Ecore_X_Window win,
    unsigned int   priority);
-EAPI int
+EAPI Eina_Bool
                                           ecore_x_e_illume_quickpanel_priority_minor_get(
    Ecore_X_Window win);
 EAPI void                                 ecore_x_e_illume_quickpanel_zone_set(
@@ -2319,9 +2319,9 @@ EAPI Ecore_X_Pixmap                       ecore_x_e_comp_pixmap_get(
 
 EAPI Ecore_X_Sync_Alarm                   ecore_x_sync_alarm_new(
    Ecore_X_Sync_Counter counter);
-EAPI int                                  ecore_x_sync_alarm_free(
+EAPI Eina_Bool                            ecore_x_sync_alarm_free(
    Ecore_X_Sync_Alarm alarm);
-EAPI int                                  ecore_x_sync_counter_query(
+EAPI Eina_Bool                            ecore_x_sync_counter_query(
    Ecore_X_Sync_Counter counter,
    unsigned int        *val);
 EAPI Ecore_X_Sync_Counter                 ecore_x_sync_counter_new(int val);
@@ -2338,14 +2338,14 @@ EAPI void                                 ecore_x_xinerama_query_screens_prefetc
    void);
 EAPI void                                 ecore_x_xinerama_query_screens_fetch(void);
 EAPI int                                  ecore_x_xinerama_screen_count_get(void);
-EAPI int                                  ecore_x_xinerama_screen_geometry_get(
+EAPI Eina_Bool                            ecore_x_xinerama_screen_geometry_get(
    int  screen,
    int *x,
    int *y,
    int *w,
    int *h);
 
-EAPI int       ecore_x_screensaver_event_available_get(
+EAPI Eina_Bool ecore_x_screensaver_event_available_get(
    void);
 EAPI void      ecore_x_screensaver_idle_time_prefetch(
    void);
@@ -2368,7 +2368,7 @@ EAPI void      ecore_x_screensaver_interval_set(
    int timeout);
 EAPI int       ecore_x_screensaver_interval_get(void);
 EAPI void      ecore_x_screensaver_event_listen_set(
-   int on);
+   Eina_Bool on);
 
 /* FIXME: these funcs need categorising */
 
@@ -2402,7 +2402,7 @@ typedef struct _Ecore_X_Window_Attributes
 EAPI void                 ecore_x_get_window_attributes_prefetch(
    Ecore_X_Window window);
 EAPI void                 ecore_x_get_window_attributes_fetch(void);
-EAPI int                  ecore_x_window_attributes_get(
+EAPI Eina_Bool            ecore_x_window_attributes_get(
    Ecore_X_Window win,
    Ecore_X_Window_Attributes *
    att_ret);
@@ -2410,23 +2410,23 @@ EAPI void                 ecore_x_window_save_set_add(Ecore_X_Window win);
 EAPI void                 ecore_x_window_save_set_del(Ecore_X_Window win);
 EAPI Ecore_X_Window *     ecore_x_window_children_get(Ecore_X_Window win, int *num);
 
-EAPI int                  ecore_x_pointer_control_set(int accel_num,
+EAPI Eina_Bool            ecore_x_pointer_control_set(int accel_num,
                                                       int accel_denom,
                                                       int threshold);
 EAPI void                 ecore_x_pointer_control_get_prefetch(void);
 EAPI void                 ecore_x_pointer_control_get_fetch(void);
-EAPI int                  ecore_x_pointer_control_get(int *accel_num,
+EAPI Eina_Bool            ecore_x_pointer_control_get(int *accel_num,
                                                       int *accel_denom,
                                                       int *threshold);
-EAPI int                  ecore_x_pointer_mapping_set(unsigned char *map, int nmap);
+EAPI Eina_Bool            ecore_x_pointer_mapping_set(unsigned char *map, int nmap);
 EAPI void                 ecore_x_pointer_mapping_get_prefetch(void);
 EAPI void                 ecore_x_pointer_mapping_get_fetch(void);
-EAPI int                  ecore_x_pointer_mapping_get(unsigned char *map, int nmap);
-EAPI int                  ecore_x_pointer_grab(Ecore_X_Window win);
-EAPI int                  ecore_x_pointer_confine_grab(Ecore_X_Window win);
+EAPI Eina_Bool            ecore_x_pointer_mapping_get(unsigned char *map, int nmap);
+EAPI Eina_Bool            ecore_x_pointer_grab(Ecore_X_Window win);
+EAPI Eina_Bool            ecore_x_pointer_confine_grab(Ecore_X_Window win);
 EAPI void                 ecore_x_pointer_ungrab(void);
-EAPI int                  ecore_x_pointer_warp(Ecore_X_Window win, int x, int y);
-EAPI int                  ecore_x_keyboard_grab(Ecore_X_Window win);
+EAPI Eina_Bool            ecore_x_pointer_warp(Ecore_X_Window win, int x, int y);
+EAPI Eina_Bool            ecore_x_keyboard_grab(Ecore_X_Window win);
 EAPI void                 ecore_x_keyboard_ungrab(void);
 EAPI void                 ecore_x_grab(void);
 EAPI void                 ecore_x_ungrab(void);
@@ -2460,30 +2460,30 @@ EAPI void                 ecore_x_pointer_xy_get(Ecore_X_Window win, int *x, int
 /* ecore_x_region.c */
 EAPI Ecore_X_XRegion *    ecore_x_xregion_new();
 EAPI void                 ecore_x_xregion_free(Ecore_X_XRegion *region);
-EAPI int                  ecore_x_xregion_set(Ecore_X_XRegion *region,
+EAPI Eina_Bool            ecore_x_xregion_set(Ecore_X_XRegion *region,
                                               Ecore_X_GC       gc);
 EAPI void                 ecore_x_xregion_translate(Ecore_X_XRegion *region,
                                                     int              x,
                                                     int              y);
-EAPI int                  ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
+EAPI Eina_Bool            ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
                                                     Ecore_X_XRegion *r1,
                                                     Ecore_X_XRegion *r2);
-EAPI int                  ecore_x_xregion_union(Ecore_X_XRegion *dst,
+EAPI Eina_Bool            ecore_x_xregion_union(Ecore_X_XRegion *dst,
                                                 Ecore_X_XRegion *r1,
                                                 Ecore_X_XRegion *r2);
-EAPI int                  ecore_x_xregion_union_rect(Ecore_X_XRegion   *dst,
+EAPI Eina_Bool            ecore_x_xregion_union_rect(Ecore_X_XRegion   *dst,
                                                      Ecore_X_XRegion   *src,
                                                      Ecore_X_Rectangle *rect);
-EAPI int                  ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
+EAPI Eina_Bool            ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
                                                    Ecore_X_XRegion *r1,
                                                    Ecore_X_XRegion *r2);
-EAPI int                  ecore_x_xregion_is_empty(Ecore_X_XRegion *region);
-EAPI int                  ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
+EAPI Eina_Bool            ecore_x_xregion_is_empty(Ecore_X_XRegion *region);
+EAPI Eina_Bool            ecore_x_xregion_is_equal(Ecore_X_XRegion *r1,
                                                    Ecore_X_XRegion *r2);
-EAPI int                  ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
+EAPI Eina_Bool            ecore_x_xregion_point_contain(Ecore_X_XRegion *region,
                                                         int              x,
                                                         int              y);
-EAPI int                  ecore_x_xregion_rect_contain(Ecore_X_XRegion   *region,
+EAPI Eina_Bool            ecore_x_xregion_rect_contain(Ecore_X_XRegion   *region,
                                                        Ecore_X_Rectangle *rect);
 
 /* ecore_x_randr.c */
@@ -2887,7 +2887,7 @@ EAPI void                   ecore_x_region_picture_clip_set(Ecore_X_Region  regi
                                                             int             y_origin);
 
 /* XComposite Extension Support */
-EAPI int                    ecore_x_composite_query(void);
+EAPI Eina_Bool              ecore_x_composite_query(void);
 EAPI void                   ecore_x_composite_redirect_window(Ecore_X_Window                win,
                                                               Ecore_X_Composite_Update_Type type);
 EAPI void                   ecore_x_composite_redirect_subwindows(Ecore_X_Window                win,
@@ -2925,7 +2925,7 @@ struct _Ecore_X_Event_Damage
 
 typedef struct _Ecore_X_Event_Damage   Ecore_X_Event_Damage;
 
-EAPI int                 ecore_x_damage_query(void);
+EAPI Eina_Bool           ecore_x_damage_query(void);
 EAPI Ecore_X_Damage      ecore_x_damage_new(Ecore_X_Drawable            d,
                                             Ecore_X_Damage_Report_Level level);
 EAPI void                ecore_x_damage_free(Ecore_X_Damage damage);
@@ -2933,24 +2933,24 @@ EAPI void                ecore_x_damage_subtract(Ecore_X_Damage damage,
                                                  Ecore_X_Region repair,
                                                  Ecore_X_Region parts);
 
-EAPI int                 ecore_x_screen_is_composited(int screen);
+EAPI Eina_Bool           ecore_x_screen_is_composited(int screen);
 EAPI void                ecore_x_screen_is_composited_set(int            screen,
                                                           Ecore_X_Window win);
 
-EAPI int                 ecore_x_dpms_query(void);
+EAPI Eina_Bool           ecore_x_dpms_query(void);
 EAPI void                ecore_x_dpms_capable_get_prefetch(void);
 EAPI void                ecore_x_dpms_capable_get_fetch(void);
-EAPI int                 ecore_x_dpms_capable_get(void);
+EAPI Eina_Bool           ecore_x_dpms_capable_get(void);
 EAPI void                ecore_x_dpms_enable_get_prefetch(void);
 EAPI void                ecore_x_dpms_enable_get_fetch(void);
-EAPI int                 ecore_x_dpms_enabled_get(void);
+EAPI Eina_Bool           ecore_x_dpms_enabled_get(void);
 EAPI void                ecore_x_dpms_enabled_set(int enabled);
 EAPI void                ecore_x_dpms_timeouts_get_prefetch(void);
 EAPI void                ecore_x_dpms_timeouts_get_fetch(void);
 EAPI void                ecore_x_dpms_timeouts_get(unsigned int *standby,
                                                    unsigned int *suspend,
                                                    unsigned int *off);
-EAPI int                 ecore_x_dpms_timeouts_set(unsigned int standby,
+EAPI Eina_Bool           ecore_x_dpms_timeouts_set(unsigned int standby,
                                                    unsigned int suspend,
                                                    unsigned int off);
 EAPI unsigned int        ecore_x_dpms_timeout_standby_get(void);
@@ -2960,9 +2960,9 @@ EAPI void                ecore_x_dpms_timeout_standby_set(unsigned int new_timeo
 EAPI void                ecore_x_dpms_timeout_suspend_set(unsigned int new_timeout);
 EAPI void                ecore_x_dpms_timeout_off_set(unsigned int new_timeout);
 
-EAPI int                 ecore_x_test_fake_key_down(const char *key);
-EAPI int                 ecore_x_test_fake_key_up(const char *key);
-EAPI int                 ecore_x_test_fake_key_press(const char *key);
+EAPI Eina_Bool           ecore_x_test_fake_key_down(const char *key);
+EAPI Eina_Bool           ecore_x_test_fake_key_up(const char *key);
+EAPI Eina_Bool           ecore_x_test_fake_key_press(const char *key);
 EAPI const char *        ecore_x_keysym_string_get(int keysym);
 
 typedef struct _Ecore_X_Image   Ecore_X_Image;
index 8bd53ba..42a9feb 100644 (file)
@@ -58,7 +58,7 @@ Time _ecore_x_event_last_time = 0;
 Window _ecore_x_event_last_win = 0;
 int _ecore_x_event_last_root_x = 0;
 int _ecore_x_event_last_root_y = 0;
-int _ecore_x_xcursor = 0;
+Eina_Bool _ecore_x_xcursor = EINA_FALSE;
 XIC _ecore_x_ic = NULL; /* Input context for composed characters */
 XIM _ecore_x_im = NULL;
 
@@ -333,7 +333,7 @@ ecore_x_init(const char *name)
       goto close_display;
 
 #ifdef ECORE_XCURSOR
-   _ecore_x_xcursor = XcursorSupportsARGB(_ecore_x_disp);
+   _ecore_x_xcursor = XcursorSupportsARGB(_ecore_x_disp) ? EINA_TRUE : EINA_FALSE;
 #endif /* ifdef ECORE_XCURSOR */
    _ecore_x_event_handlers[AnyXEvent] = _ecore_x_event_handle_any_event;
    _ecore_x_event_handlers[KeyPress] = _ecore_x_event_handle_key_press;
@@ -1173,14 +1173,14 @@ _ecore_x_window_manage_error(void *data __UNUSED__)
       _ecore_x_window_manage_failed = 1;
 } /* _ecore_x_window_manage_error */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_window_manage(Ecore_X_Window win)
 {
    XWindowAttributes att;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (XGetWindowAttributes(_ecore_x_disp, win, &att) != True)
-      return 0;
+      return EINA_FALSE;
 
    ecore_x_sync();
    _ecore_x_window_manage_failed = 0;
@@ -1201,10 +1201,10 @@ ecore_x_window_manage(Ecore_X_Window win)
    if (_ecore_x_window_manage_failed)
      {
         _ecore_x_window_manage_failed = 0;
-        return 0;
+        return EINA_FALSE;
      }
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_window_manage */
 
 EAPI void
@@ -1255,7 +1255,7 @@ ecore_x_window_client_sniff(Ecore_X_Window win)
    XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
 } /* ecore_x_window_client_sniff */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_window_attributes_get(Ecore_X_Window             win,
                               Ecore_X_Window_Attributes *att_ret)
 {
@@ -1263,7 +1263,7 @@ ecore_x_window_attributes_get(Ecore_X_Window             win,
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!XGetWindowAttributes(_ecore_x_disp, win, &att))
-      return 0;
+      return EINA_FALSE;
 
    memset(att_ret, 0, sizeof(Ecore_X_Window_Attributes));
    att_ret->root = att.root;
@@ -1295,7 +1295,7 @@ ecore_x_window_attributes_get(Ecore_X_Window             win,
    att_ret->pixel_gravity = att.bit_gravity;
    att_ret->colormap = att.colormap;
    att_ret->visual = att.visual;
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_window_attributes_get */
 
 EAPI void
@@ -1342,37 +1342,37 @@ ecore_x_window_children_get(Ecore_X_Window win, int *num)
    return windows;
 } /* ecore_x_window_children_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_pointer_control_set(int accel_num, int accel_denom, int threshold)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    return XChangePointerControl(_ecore_x_disp, 1, 1,
-                                accel_num, accel_denom, threshold);
+                                accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_pointer_control_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_pointer_control_get(int *accel_num, int *accel_denom, int *threshold)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    return XGetPointerControl(_ecore_x_disp,
-                             accel_num, accel_denom, threshold);
+                             accel_num, accel_denom, threshold) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_pointer_control_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_pointer_mapping_set(unsigned char *map, int nmap)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XSetPointerMapping(_ecore_x_disp, map, nmap);
+   return XSetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_pointer_mapping_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_pointer_mapping_get(unsigned char *map, int nmap)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XGetPointerMapping(_ecore_x_disp, map, nmap);
+   return XGetPointerMapping(_ecore_x_disp, map, nmap) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_pointer_mapping_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_pointer_grab(Ecore_X_Window win)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -1381,12 +1381,12 @@ ecore_x_pointer_grab(Ecore_X_Window win)
                     EnterWindowMask | LeaveWindowMask | PointerMotionMask,
                     GrabModeAsync, GrabModeAsync,
                     None, None, CurrentTime) == GrabSuccess)
-      return 1;
+      return EINA_TRUE;
 
-   return 0;
+   return EINA_FALSE;
 } /* ecore_x_pointer_grab */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_pointer_confine_grab(Ecore_X_Window win)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -1395,9 +1395,9 @@ ecore_x_pointer_confine_grab(Ecore_X_Window win)
                     EnterWindowMask | LeaveWindowMask | PointerMotionMask,
                     GrabModeAsync, GrabModeAsync,
                     win, None, CurrentTime) == GrabSuccess)
-      return 1;
+      return EINA_TRUE;
 
-   return 0;
+   return EINA_FALSE;
 } /* ecore_x_pointer_confine_grab */
 
 EAPI void
@@ -1407,23 +1407,23 @@ ecore_x_pointer_ungrab(void)
    XUngrabPointer(_ecore_x_disp, CurrentTime);
 } /* ecore_x_pointer_ungrab */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_pointer_warp(Ecore_X_Window win, int x, int y)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y);
+   return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_pointer_warp */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_keyboard_grab(Ecore_X_Window win)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (XGrabKeyboard(_ecore_x_disp, win, False,
                      GrabModeAsync, GrabModeAsync,
                      CurrentTime) == GrabSuccess)
-      return 1;
+      return EINA_TRUE;
 
-   return 0;
+   return EINA_FALSE;
 } /* ecore_x_keyboard_grab */
 
 EAPI void
@@ -1707,9 +1707,9 @@ ecore_x_window_key_ungrab(Ecore_X_Window win, const char *key,
  * @param d3      The client message data item 4
  * @param d4      The client message data item 5
  *
- * @return !0 on success.
+ * @return EINA_TRUE on success EINA_FALSE otherwise.
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
                               Ecore_X_Event_Mask mask,
                               long d0, long d1, long d2, long d3, long d4)
@@ -1727,7 +1727,7 @@ ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
    xev.xclient.data.l[3] = d3;
    xev.xclient.data.l[4] = d4;
 
-   return XSendEvent(_ecore_x_disp, win, False, mask, &xev);
+   return XSendEvent(_ecore_x_disp, win, False, mask, &xev) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_client_message32_send */
 
 /**
@@ -1738,9 +1738,9 @@ ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
  * @param data    Data to be sent.
  * @param len     Number of data bytes, max 20.
  *
- * @return !0 on success.
+ * @return EINA_TRUE on success EINA_FALSE otherwise.
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
                              const void *data, int len)
 {
@@ -1757,10 +1757,10 @@ ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
    memcpy(xev.xclient.data.b, data, len);
    memset(xev.xclient.data.b + len, 0, 20 - len);
 
-   return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
+   return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_client_message8_send */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_mouse_move_send(Ecore_X_Window win, int x, int y)
 {
    XEvent xev;
@@ -1783,10 +1783,10 @@ ecore_x_mouse_move_send(Ecore_X_Window win, int x, int y)
    xev.xmotion.state = 0;
    xev.xmotion.is_hint = 0;
    xev.xmotion.same_screen = 1;
-   return XSendEvent(_ecore_x_disp, win, True, PointerMotionMask, &xev);
+   return XSendEvent(_ecore_x_disp, win, True, PointerMotionMask, &xev) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_mouse_move_send */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_mouse_down_send(Ecore_X_Window win, int x, int y, int b)
 {
    XEvent xev;
@@ -1809,10 +1809,10 @@ ecore_x_mouse_down_send(Ecore_X_Window win, int x, int y, int b)
    xev.xbutton.state = 1 << b;
    xev.xbutton.button = b;
    xev.xbutton.same_screen = 1;
-   return XSendEvent(_ecore_x_disp, win, True, ButtonPressMask, &xev);
+   return XSendEvent(_ecore_x_disp, win, True, ButtonPressMask, &xev) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_mouse_down_send */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_mouse_up_send(Ecore_X_Window win, int x, int y, int b)
 {
    XEvent xev;
@@ -1835,7 +1835,7 @@ ecore_x_mouse_up_send(Ecore_X_Window win, int x, int y, int b)
    xev.xbutton.state = 0;
    xev.xbutton.button = b;
    xev.xbutton.same_screen = 1;
-   return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev);
+   return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_mouse_up_send */
 
 EAPI void
index 341637a..5205d5c 100644 (file)
@@ -5,12 +5,12 @@
 #include "ecore_x_private.h"
 #include "Ecore_X.h"
 
-static int _composite_available;
+static Eina_Bool _composite_available = EINA_FALSE;
 
 void
 _ecore_x_composite_init(void)
 {
-   _composite_available = 0;
+   _composite_available = EINA_FALSE;
 
 #ifdef ECORE_XCOMPOSITE
    int major, minor;
@@ -23,7 +23,7 @@ _ecore_x_composite_init(void)
 #  ifdef ECORE_XFIXES
              if (XFixesQueryVersion(_ecore_x_disp, &major, &minor))
                {
-                  _composite_available = 1;
+                  _composite_available = EINA_TRUE;
                }
 #  endif
           }
@@ -32,7 +32,7 @@ _ecore_x_composite_init(void)
 #endif
 } /* _ecore_x_composite_init */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_composite_query(void)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
index 7aeb9f9..d97b2f7 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "ecore_x_private.h"
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_cursor_color_supported_get(void)
 {
    return _ecore_x_xcursor;
index 2c3b926..88d5f7d 100644 (file)
@@ -5,7 +5,7 @@
 #include "ecore_x_private.h"
 #include "Ecore_X.h"
 
-static int _damage_available;
+static Eina_Bool _damage_available = EINA_FALSE;
 #ifdef ECORE_XDAMAGE
 static int _damage_major, _damage_minor;
 #endif /* ifdef ECORE_XDAMAGE */
@@ -19,16 +19,16 @@ _ecore_x_damage_init(void)
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (XDamageQueryVersion(_ecore_x_disp, &_damage_major, &_damage_minor))
-      _damage_available = 1;
+      _damage_available = EINA_TRUE;
    else
-      _damage_available = 0;
+      _damage_available = EINA_FALSE;
 
 #else /* ifdef ECORE_XDAMAGE */
-   _damage_available = 0;
+   _damage_available = EINA_FALSE;
 #endif /* ifdef ECORE_XDAMAGE */
 } /* _ecore_x_damage_init */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_damage_query(void)
 {
    return _damage_available;
index a1c7a7a..74d5740 100644 (file)
@@ -79,7 +79,7 @@ _ecore_x_dnd_shutdown(void)
    _ecore_x_dnd_init_count = 0;
 } /* _ecore_x_dnd_shutdown */
 
-static int
+static Eina_Bool
 _ecore_x_dnd_converter_copy(char *target  __UNUSED__,
                             void         *data,
                             int           size,
@@ -93,11 +93,11 @@ _ecore_x_dnd_converter_copy(char *target  __UNUSED__,
    XICCEncodingStyle style = XTextStyle;
 
    if (!data || !size)
-      return 0;
+      return EINA_FALSE;
 
    mystr = calloc(1, size + 1);
    if (!mystr)
-      return 0;
+      return EINA_FALSE;
 
    memcpy(mystr, data, size);
 
@@ -110,17 +110,17 @@ _ecore_x_dnd_converter_copy(char *target  __UNUSED__,
         *size_ret = bufsize;
         XFree(text_prop.value);
         free(mystr);
-        return 1;
+        return EINA_TRUE;
      }
    else
      {
         free(mystr);
-        return 0;
+        return EINA_FALSE;
      }
 } /* _ecore_x_dnd_converter_copy */
 
 EAPI void
-ecore_x_dnd_aware_set(Ecore_X_Window win, int on)
+ecore_x_dnd_aware_set(Ecore_X_Window win, Eina_Bool on)
 {
    Ecore_X_Atom prop_data = ECORE_X_DND_VERSION;
 
@@ -192,10 +192,10 @@ ecore_x_dnd_version_get(Ecore_X_Window win)
    return 0;
 } /* ecore_x_dnd_version_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
 {
-   int num, i, ret = 0;
+   int num, i, ret = EINA_FALSE;
    unsigned char *data;
    Ecore_X_Atom *atoms, atom;
 
@@ -211,7 +211,7 @@ ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
      {
         if (atom == atoms[i])
           {
-             ret = 1;
+             ret = EINA_TRUE;
              break;
           }
      }
@@ -221,7 +221,7 @@ ecore_x_dnd_type_isset(Ecore_X_Window win, const char *type)
 } /* ecore_x_dnd_type_isset */
 
 EAPI void
-ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, int on)
+ecore_x_dnd_type_set(Ecore_X_Window win, const char *type, Eina_Bool on)
 {
    Ecore_X_Atom atom;
    Ecore_X_Atom *oldset = NULL, *newset = NULL;
@@ -376,16 +376,16 @@ _ecore_x_dnd_target_get(void)
    return _target;
 } /* _ecore_x_dnd_target_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!ecore_x_dnd_version_get(source))
-      return 0;
+      return EINA_FALSE;
 
    /* Take ownership of XdndSelection */
    if (!ecore_x_selection_xdnd_set(source, data, size))
-      return 0;
+      return EINA_FALSE;
 
    if (_version_cache)
      {
@@ -408,14 +408,14 @@ ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
    _source->accepted_action = None;
    _source->dest = None;
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_dnd_begin */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_dnd_drop(void)
 {
    XEvent xev;
-   int status = 0;
+   int status = EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (_source->dest)
@@ -433,7 +433,7 @@ ecore_x_dnd_drop(void)
              xev.xclient.data.l[2] = _source->time;
              XSendEvent(_ecore_x_disp, _source->dest, False, 0, &xev);
              _source->state = ECORE_X_DND_SOURCE_DROPPED;
-             status = 1;
+             status = EINA_TRUE;
           }
         else
           {
@@ -459,8 +459,8 @@ ecore_x_dnd_drop(void)
 } /* ecore_x_dnd_drop */
 
 EAPI void
-ecore_x_dnd_send_status(int               will_accept,
-                        int               suppress,
+ecore_x_dnd_send_status(Eina_Bool         will_accept,
+                        Eina_Bool         suppress,
                         Ecore_X_Rectangle rectangle,
                         Ecore_X_Atom      action)
 {
index bc6869b..47ffcbf 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "ecore_x_private.h"
 
-static int _dpms_available;
+static Eina_Bool _dpms_available = EINA_FALSE;
 
 void
 _ecore_x_dpms_init(void)
@@ -16,12 +16,12 @@ _ecore_x_dpms_init(void)
    _dpms_minor = 0;
 
    if (DPMSGetVersion(_ecore_x_disp, &_dpms_major, &_dpms_minor))
-      _dpms_available = 1;
+      _dpms_available = EINA_TRUE;
    else
-      _dpms_available = 0;
+      _dpms_available = EINA_FALSE;
 
 #else /* ifdef ECORE_XDPMS */
-   _dpms_available = 0;
+   _dpms_available = EINA_FALSE;
 #endif /* ifdef ECORE_XDPMS */
 } /* _ecore_x_dpms_init */
 
@@ -36,7 +36,7 @@ _ecore_x_dpms_init(void)
  * @return @c 1 if the X DPMS extension is available, @c 0 otherwise.
  * @ingroup Ecore_X_DPMS_Group
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_dpms_query(void)
 {
    return _dpms_available;
@@ -47,14 +47,14 @@ ecore_x_dpms_query(void)
  * @return @c 1 if the X server is capable of DPMS, @c 0 otherwise.
  * @ingroup Ecore_X_DPMS_Group
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_dpms_capable_get(void)
 {
 #ifdef ECORE_XDPMS
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return DPMSCapable(_ecore_x_disp);
+   return DPMSCapable(_ecore_x_disp) ? EINA_TRUE : EINA_FALSE;
 #else /* ifdef ECORE_XDPMS */
-   return 0;
+   return EINA_FALSE;
 #endif /* ifdef ECORE_XDPMS */
 } /* ecore_x_dpms_capable_get */
 
@@ -63,7 +63,7 @@ ecore_x_dpms_capable_get(void)
  * @return @c 1 if DPMS is enabled, @c 0 otherwise.
  * @ingroup Ecore_X_DPMS_Group
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_dpms_enabled_get(void)
 {
 #ifdef ECORE_XDPMS
@@ -72,9 +72,9 @@ ecore_x_dpms_enabled_get(void)
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    DPMSInfo(_ecore_x_disp, &power_lvl, &state);
-   return state;
+   return state ? EINA_TRUE : EINA_FALSE;
 #else /* ifdef ECORE_XDPMS */
-   return 0;
+   return EINA_FALSE;
 #endif /* ifdef ECORE_XDPMS */
 } /* ecore_x_dpms_enabled_get */
 
@@ -122,16 +122,16 @@ ecore_x_dpms_timeouts_get(unsigned int *standby,
  * @param off     Amount of time of inactivity before the monitor is shut off.
  * @ingroup Ecore_X_DPMS_Group
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_dpms_timeouts_set(unsigned int standby,
                           unsigned int suspend,
                           unsigned int off)
 {
 #ifdef ECORE_XDPMS
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return DPMSSetTimeouts(_ecore_x_disp, standby, suspend, off);
+   return DPMSSetTimeouts(_ecore_x_disp, standby, suspend, off) ? EINA_TRUE : EINA_FALSE;
 #else /* ifdef ECORE_XDPMS */
-   return 0;
+   return EINA_FALSE;
 #endif /* ifdef ECORE_XDPMS */
 } /* ecore_x_dpms_timeouts_set */
 
index b929ef8..7b89f52 100644 (file)
@@ -37,7 +37,7 @@ ecore_x_e_virtual_keyboard_set(Ecore_X_Window win, unsigned int is_keyboard)
                                   &is_keyboard, 1);
 } /* ecore_x_e_virtual_keyboard_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_virtual_keyboard_get(Ecore_X_Window win)
 {
    unsigned int val;
@@ -45,9 +45,9 @@ ecore_x_e_virtual_keyboard_get(Ecore_X_Window win)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD,
                                        &val, 1))
-      return 0;
+      return EINA_FALSE;
 
-   return val;
+   return val ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_e_virtual_keyboard_get */
 
 static Ecore_X_Virtual_Keyboard_State
@@ -266,7 +266,7 @@ ecore_x_e_illume_conformant_set(Ecore_X_Window win, unsigned int is_conformant)
                                   &is_conformant, 1);
 } /* ecore_x_e_illume_conformant_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_conformant_get(Ecore_X_Window win)
 {
    unsigned int val = 0;
@@ -274,9 +274,9 @@ ecore_x_e_illume_conformant_get(Ecore_X_Window win)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_CONFORMANT,
                                        &val, 1))
-      return 0;
+      return EINA_FALSE;
 
-   return val;
+   return val ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_e_illume_conformant_get */
 
 EAPI void
@@ -373,16 +373,16 @@ ecore_x_e_illume_drag_set(Ecore_X_Window win, unsigned int drag)
    ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG, &drag, 1);
 } /* ecore_x_e_illume_drag_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_drag_get(Ecore_X_Window win)
 {
    unsigned int val = 0;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_DRAG, &val, 1))
-      return 0;
+      return EINA_FALSE;
 
-   return val;
+   return val ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_e_illume_drag_get */
 
 EAPI void
@@ -393,7 +393,7 @@ ecore_x_e_illume_drag_locked_set(Ecore_X_Window win, unsigned int is_locked)
                                   &is_locked, 1);
 } /* ecore_x_e_illume_drag_locked_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_drag_locked_get(Ecore_X_Window win)
 {
    unsigned int val = 0;
@@ -401,9 +401,9 @@ ecore_x_e_illume_drag_locked_get(Ecore_X_Window win)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
                                        &val, 1))
-      return 0;
+      return EINA_FALSE;
 
-   return val;
+   return val ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_e_illume_drag_locked_get */
 
 EAPI void
@@ -442,7 +442,7 @@ ecore_x_e_illume_indicator_geometry_set(Ecore_X_Window win,
                                   geom, 4);
 } /* ecore_x_e_illume_indicator_geometry_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win,
                                         int           *x,
                                         int           *y,
@@ -458,7 +458,7 @@ ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win,
                                      ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY,
                                      geom, 4);
    if (ret != 4)
-      return 0;
+      return EINA_FALSE;
 
    if (x)
       *x = geom[0];
@@ -472,7 +472,7 @@ ecore_x_e_illume_indicator_geometry_get(Ecore_X_Window win,
    if (h)
       *h = geom[3];
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_e_illume_indicator_geometry_get */
 
 EAPI void
@@ -493,7 +493,7 @@ ecore_x_e_illume_softkey_geometry_set(Ecore_X_Window win,
                                   geom, 4);
 } /* ecore_x_e_illume_softkey_geometry_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win,
                                       int           *x,
                                       int           *y,
@@ -509,7 +509,7 @@ ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win,
                                      ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY,
                                      geom, 4);
    if (ret != 4)
-      return 0;
+      return EINA_FALSE;
 
    if (x)
       *x = geom[0];
@@ -523,7 +523,7 @@ ecore_x_e_illume_softkey_geometry_get(Ecore_X_Window win,
    if (h)
       *h = geom[3];
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_e_illume_softkey_geometry_get */
 
 EAPI void
@@ -544,7 +544,7 @@ ecore_x_e_illume_keyboard_geometry_set(Ecore_X_Window win,
                                   geom, 4);
 } /* ecore_x_e_illume_keyboard_geometry_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win,
                                        int           *x,
                                        int           *y,
@@ -560,7 +560,7 @@ ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win,
                                      ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY,
                                      geom, 4);
    if (ret != 4)
-      return 0;
+      return EINA_FALSE;
 
    if (x)
       *x = geom[0];
@@ -574,7 +574,7 @@ ecore_x_e_illume_keyboard_geometry_get(Ecore_X_Window win,
    if (h)
       *h = geom[3];
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_e_illume_keyboard_geometry_get */
 
 static Ecore_X_Atom
@@ -614,7 +614,7 @@ ecore_x_e_illume_quickpanel_set(Ecore_X_Window win, unsigned int is_quickpanel)
                                   &is_quickpanel, 1);
 } /* ecore_x_e_illume_quickpanel_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_quickpanel_get(Ecore_X_Window win)
 {
    unsigned int val = 0;
@@ -622,9 +622,9 @@ ecore_x_e_illume_quickpanel_get(Ecore_X_Window win)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL,
                                        &val, 1))
-      return 0;
+      return EINA_FALSE;
 
-   return val;
+   return val ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_e_illume_quickpanel_get */
 
 EAPI void
@@ -686,7 +686,7 @@ ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win,
       1);
 } /* ecore_x_e_illume_quickpanel_priority_major_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win)
 {
    unsigned int val = 0;
@@ -695,9 +695,9 @@ ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win)
    if (!ecore_x_window_prop_card32_get(win,
                                        ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
                                        &val, 1))
-      return 0;
+      return EINA_FALSE;
 
-   return val;
+   return val ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_e_illume_quickpanel_priority_major_get */
 
 EAPI void
@@ -712,7 +712,7 @@ ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win,
       1);
 } /* ecore_x_e_illume_quickpanel_priority_minor_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win)
 {
    unsigned int val = 0;
@@ -721,9 +721,9 @@ ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win)
    if (!ecore_x_window_prop_card32_get(win,
                                        ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
                                        &val, 1))
-      return 0;
+      return EINA_FALSE;
 
-   return val;
+   return val ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_e_illume_quickpanel_priority_minor_get */
 
 EAPI void
index 9837cdd..9a0acd0 100644 (file)
@@ -125,12 +125,13 @@ ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h)
 
 EAPI void
 ecore_x_icccm_hints_set(Ecore_X_Window win,
-                        int accepts_focus,
+                        Eina_Bool accepts_focus,
                         Ecore_X_Window_State_Hint initial_state,
                         Ecore_X_Pixmap icon_pixmap,
                         Ecore_X_Pixmap icon_mask,
                         Ecore_X_Window icon_window,
-                        Ecore_X_Window window_group, int is_urgent)
+                        Ecore_X_Window window_group, 
+                        Eina_Bool is_urgent)
 {
    XWMHints *hints;
 
@@ -179,20 +180,21 @@ ecore_x_icccm_hints_set(Ecore_X_Window win,
    XFree(hints);
 } /* ecore_x_icccm_hints_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_icccm_hints_get(Ecore_X_Window win,
-                        int *accepts_focus,
+                        Eina_Bool *accepts_focus,
                         Ecore_X_Window_State_Hint *initial_state,
                         Ecore_X_Pixmap *icon_pixmap,
                         Ecore_X_Pixmap *icon_mask,
                         Ecore_X_Window *icon_window,
-                        Ecore_X_Window *window_group, int *is_urgent)
+                        Ecore_X_Window *window_group,
+                        Eina_Bool *is_urgent)
 {
    XWMHints *hints;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (accepts_focus)
-      *accepts_focus = 1;
+      *accepts_focus = EINA_TRUE;
 
    if (initial_state)
       *initial_state = ECORE_X_WINDOW_STATE_HINT_NORMAL;
@@ -210,7 +212,7 @@ ecore_x_icccm_hints_get(Ecore_X_Window win,
       *window_group = 0;
 
    if (is_urgent)
-      *is_urgent = 0;
+      *is_urgent = EINA_FALSE;
 
    hints = XGetWMHints(_ecore_x_disp, win);
    if (hints)
@@ -218,9 +220,9 @@ ecore_x_icccm_hints_get(Ecore_X_Window win,
         if ((hints->flags & InputHint) && (accepts_focus))
           {
              if (hints->input)
-                *accepts_focus = 1;
+                *accepts_focus = EINA_TRUE;
              else
-                *accepts_focus = 0;
+                *accepts_focus = EINA_FALSE;
           }
 
         if ((hints->flags & StateHint) && (initial_state))
@@ -246,18 +248,18 @@ ecore_x_icccm_hints_get(Ecore_X_Window win,
            *window_group = hints->window_group;
 
         if ((hints->flags & XUrgencyHint) && (is_urgent))
-           *is_urgent = 1;
+           *is_urgent = EINA_TRUE;
 
         XFree(hints);
-        return 1;
+        return EINA_TRUE;
      }
 
-   return 0;
+   return EINA_FALSE;
 } /* ecore_x_icccm_hints_get */
 
 EAPI void
 ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
-                                 int request_pos,
+                                 Eina_Bool request_pos,
                                  Ecore_X_Gravity gravity,
                                  int min_w, int min_h,
                                  int max_w, int max_h,
@@ -322,9 +324,9 @@ ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
    XSetWMNormalHints(_ecore_x_disp, win, &hint);
 } /* ecore_x_icccm_size_pos_hints_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
-                                 int *request_pos,
+                                 Eina_Bool *request_pos,
                                  Ecore_X_Gravity *gravity,
                                  int *min_w, int *min_h,
                                  int *max_w, int *max_h,
@@ -343,15 +345,15 @@ ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!XGetWMNormalHints(_ecore_x_disp, win, &hint, &mask))
-      return 0;
+      return EINA_FALSE;
 
    if ((hint.flags & USPosition) || ((hint.flags & PPosition)))
      {
         if (request_pos)
-           *request_pos = 1;
+           *request_pos = EINA_TRUE;
      }
    else if (request_pos)
-      *request_pos = 0;
+      *request_pos = EINA_FALSE;
 
    if (hint.flags & PWinGravity)
      {
@@ -439,7 +441,7 @@ ecore_x_icccm_size_pos_hints_get(Ecore_X_Window win,
    if (max_aspect)
       *max_aspect = maxa;
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_icccm_size_pos_hints_get */
 
 EAPI void
@@ -556,7 +558,8 @@ ecore_x_icccm_protocol_atoms_set(Ecore_X_Window win,
  */
 EAPI void
 ecore_x_icccm_protocol_set(Ecore_X_Window win,
-                           Ecore_X_WM_Protocol protocol, int on)
+                           Ecore_X_WM_Protocol protocol,
+                           Eina_Bool on)
 {
    Atom *protos = NULL;
    Atom proto;
@@ -639,26 +642,27 @@ leave:
  * @param protocol The protocol to query
  * @return 1 if the protocol is set, else 0.
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_icccm_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol)
 {
    Atom proto, *protos = NULL;
-   int i, ret = 0, protos_count = 0;
+   int i, protos_count = 0;
+   Eina_Bool ret = EINA_FALSE;
 
    /* check for invalid values */
    if (protocol >= ECORE_X_WM_PROTOCOL_NUM)
-      return 0;
+      return EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    proto = _ecore_x_atoms_wm_protocols[protocol];
 
    if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count))
-      return 0;
+      return EINA_FALSE;
 
    for (i = 0; i < protos_count; i++)
       if (protos[i] == proto)
         {
-           ret = 1;
+           ret = EINA_TRUE;
            break;
         }
 
index 003bdf2..6de53dd 100644 (file)
@@ -31,7 +31,7 @@ typedef struct _mwmhints
 }
 MWMHints;
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_mwm_hints_get(Ecore_X_Window          win,
                       Ecore_X_MWM_Hint_Func  *fhint,
                       Ecore_X_MWM_Hint_Decor *dhint,
@@ -40,15 +40,15 @@ ecore_x_mwm_hints_get(Ecore_X_Window          win,
    unsigned char *p = NULL;
    MWMHints *mwmhints = NULL;
    int num;
-   int ret;
+   Eina_Bool ret;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   ret = 0;
+   ret = EINA_FALSE;
    if (!ecore_x_window_prop_property_get(win,
                                          ECORE_X_ATOM_MOTIF_WM_HINTS,
                                          ECORE_X_ATOM_MOTIF_WM_HINTS,
                                          32, &p, &num))
-      return 0;
+      return EINA_FALSE;
 
    mwmhints = (MWMHints *)p;
    if (mwmhints)
@@ -79,7 +79,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window          win,
                      *ihint = ECORE_X_MWM_HINT_INPUT_MODELESS;
                }
 
-             ret = 1;
+             ret = EINA_TRUE;
           }
 
         free(mwmhints);
@@ -89,7 +89,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window          win,
 } /* ecore_x_mwm_hints_get */
 
 EAPI void
-ecore_x_mwm_borderless_set(Ecore_X_Window win, int borderless)
+ecore_x_mwm_borderless_set(Ecore_X_Window win, Eina_Bool borderless)
 {
    unsigned int data[5] = {0, 0, 0, 0, 0};
 
index 1646ada..fa56135 100644 (file)
@@ -128,7 +128,7 @@ ecore_x_netwm_supported_set(Ecore_X_Window root,
                                 num);
 } /* ecore_x_netwm_supported_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_supported_get(Ecore_X_Window root,
                             Ecore_X_Atom **supported,
                             int           *num)
@@ -145,12 +145,12 @@ ecore_x_netwm_supported_get(Ecore_X_Window root,
    num_ret = ecore_x_window_prop_atom_list_get(root, ECORE_X_ATOM_NET_SUPPORTED,
                                                supported);
    if (num_ret <= 0)
-      return 0;
+      return EINA_FALSE;
 
    if (num)
       *num = num_ret;
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_supported_get */
 
 /*
@@ -265,7 +265,7 @@ ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk)
 } /* ecore_x_netwm_desk_current_set */
 
 EAPI void
-ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on)
+ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, Eina_Bool on)
 {
    unsigned int val;
 
@@ -439,7 +439,7 @@ ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk)
    ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
 } /* ecore_x_netwm_desktop_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
 {
    int ret;
@@ -452,7 +452,7 @@ ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
    if (desk)
       *desk = tmp;
 
-   return ret == 1 ? 1 : 0;
+   return ret == 1 ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_netwm_desktop_get */
 
 /*
@@ -475,7 +475,7 @@ ecore_x_netwm_strut_set(Ecore_X_Window win, int left, int right,
 /*
  * _NET_WM_STRUT is deprecated
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
                         int *top, int *bottom)
 {
@@ -488,7 +488,7 @@ ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
                                         strut,
                                         4);
    if (ret != 4)
-      return 0;
+      return EINA_FALSE;
 
    if (left)
       *left = strut[0];
@@ -502,7 +502,7 @@ ecore_x_netwm_strut_get(Ecore_X_Window win, int *left, int *right,
    if (bottom)
       *bottom = strut[3];
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_strut_get */
 
 EAPI void
@@ -541,7 +541,7 @@ ecore_x_netwm_strut_partial_set(Ecore_X_Window win,
                                   12);
 } /* ecore_x_netwm_strut_partial_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_strut_partial_get(Ecore_X_Window win,
                                 int           *left,
                                 int           *right,
@@ -565,7 +565,7 @@ ecore_x_netwm_strut_partial_get(Ecore_X_Window win,
                                         strut,
                                         12);
    if (ret != 12)
-      return 0;
+      return EINA_FALSE;
 
    if (left)
       *left = strut[0];
@@ -603,10 +603,10 @@ ecore_x_netwm_strut_partial_get(Ecore_X_Window win,
    if (bottom_end_x)
       *bottom_end_x = strut[11];
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_strut_partial_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
 {
    unsigned int *data, *p;
@@ -624,15 +624,15 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
    num_ret = ecore_x_window_prop_card32_list_get(win, ECORE_X_ATOM_NET_WM_ICON,
                                                  &data);
    if (num_ret <= 0)
-      return 0;
+      return EINA_FALSE;
 
    if (!data)
-      return 0;
+      return EINA_FALSE;
 
    if (num_ret < 2)
      {
         free(data);
-        return 0;
+        return EINA_FALSE;
      }
 
    /* Check how many icons there are */
@@ -645,7 +645,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
         if ((p - data) > num_ret)
           {
              free(data);
-             return 0;
+             return EINA_FALSE;
           }
 
         icons++;
@@ -660,7 +660,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
    if (!icon)
      {
         free(data);
-        return 1;
+        return EINA_TRUE;
      }
 
    /* Allocate memory */
@@ -668,7 +668,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
    if (!(*icon))
      {
         free(data);
-        return 0;
+        return EINA_FALSE;
      }
 
    /* Fetch the icons */
@@ -688,7 +688,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
                 free(((*icon)[--i]).data);
              free(*icon);
              free(data);
-             return 0;
+             return EINA_FALSE;
           }
 
         pd = ((*icon)[i]).data;
@@ -710,7 +710,7 @@ ecore_x_netwm_icons_get(Ecore_X_Window win, Ecore_X_Icon **icon, int *num)
 
    free(data);
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_icons_get */
 
 EAPI void
@@ -733,7 +733,7 @@ ecore_x_netwm_icon_geometry_set(Ecore_X_Window win,
                                   4);
 } /* ecore_x_netwm_icon_geometry_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_icon_geometry_get(Ecore_X_Window win,
                                 int           *x,
                                 int           *y,
@@ -749,7 +749,7 @@ ecore_x_netwm_icon_geometry_get(Ecore_X_Window win,
                                         geometry,
                                         4);
    if (ret != 4)
-      return 0;
+      return EINA_FALSE;
 
    if (x)
       *x = geometry[0];
@@ -763,7 +763,7 @@ ecore_x_netwm_icon_geometry_get(Ecore_X_Window win,
    if (height)
       *height = geometry[3];
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_icon_geometry_get */
 
 EAPI void
@@ -777,7 +777,7 @@ ecore_x_netwm_pid_set(Ecore_X_Window win, int pid)
                                   &tmp, 1);
 } /* ecore_x_netwm_pid_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid)
 {
    int ret;
@@ -789,7 +789,7 @@ ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid)
    if (pid)
       *pid = tmp;
 
-   return ret == 1 ? 1 : 0;
+   return ret == 1 ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_netwm_pid_get */
 
 EAPI void
@@ -800,14 +800,14 @@ ecore_x_netwm_handled_icons_set(Ecore_X_Window win)
                                   NULL, 0);
 } /* ecore_x_netwm_handled_icons_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
 {
    int ret = 0;
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
                                         NULL, 0);
-   return ret == 0 ? 1 : 0;
+   return ret == 0 ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_netwm_handled_icons_get */
 
 EAPI void
@@ -818,7 +818,7 @@ ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time)
                                   &time, 1);
 } /* ecore_x_netwm_user_time_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time)
 {
    int ret;
@@ -830,7 +830,7 @@ ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time)
    if (time)
       *time = tmp;
 
-   return ret == 1 ? 1 : 0;
+   return ret == 1 ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_netwm_user_time_get */
 
 Ecore_X_Window_State
@@ -937,7 +937,7 @@ ecore_x_netwm_window_state_set(Ecore_X_Window        win,
    free(set);
 } /* ecore_x_netwm_window_state_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_window_state_get(Ecore_X_Window         win,
                                Ecore_X_Window_State **state,
                                unsigned int          *num)
@@ -955,7 +955,7 @@ ecore_x_netwm_window_state_get(Ecore_X_Window         win,
    num_ret = ecore_x_window_prop_atom_list_get(win, ECORE_X_ATOM_NET_WM_STATE,
                                                &atoms);
    if (num_ret <= 0)
-      return 0;
+      return EINA_FALSE;
 
    if (state)
      {
@@ -969,7 +969,7 @@ ecore_x_netwm_window_state_get(Ecore_X_Window         win,
      }
 
    free(atoms);
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_window_state_get */
 
 static Ecore_X_Window_Type
@@ -1075,7 +1075,7 @@ ecore_x_netwm_window_type_set(Ecore_X_Window win, Ecore_X_Window_Type type)
 } /* ecore_x_netwm_window_type_set */
 
 /* FIXME: Maybe return 0 on some conditions? */
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type)
 {
    int num;
@@ -1093,9 +1093,9 @@ ecore_x_netwm_window_type_get(Ecore_X_Window win, Ecore_X_Window_Type *type)
 
    free(atoms);
    if (num >= 1)
-      return 1;
+      return EINA_TRUE;
 
-   return 0;
+   return EINA_FALSE;
 } /* ecore_x_netwm_window_type_get */
 
 EAPI int
@@ -1182,11 +1182,12 @@ _ecore_x_netwm_action_atom_get(Ecore_X_Action action)
 } /* _ecore_x_netwm_action_atom_get */
 
 /* FIXME: Get complete list */
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_allowed_action_isset(Ecore_X_Window win, Ecore_X_Action action)
 {
-   int num, i, ret = 0;
+  int num, i;
    Ecore_X_Atom *atoms, atom;
+   Eina_Bool ret = EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    num = ecore_x_window_prop_atom_list_get(win, ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
@@ -1241,7 +1242,7 @@ ecore_x_netwm_allowed_action_set(Ecore_X_Window  win,
    free(set);
 } /* ecore_x_netwm_allowed_action_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_allowed_action_get(Ecore_X_Window   win,
                                  Ecore_X_Action **action,
                                  unsigned int    *num)
@@ -1261,7 +1262,7 @@ ecore_x_netwm_allowed_action_get(Ecore_X_Window   win,
          ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS,
          &atoms);
    if (num_ret <= 0)
-      return 0;
+      return EINA_FALSE;
 
    if (action)
      {
@@ -1275,7 +1276,7 @@ ecore_x_netwm_allowed_action_get(Ecore_X_Window   win,
      }
 
    free(atoms);
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_allowed_action_get */
 
 EAPI void
@@ -1286,7 +1287,7 @@ ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity)
                                   &opacity, 1);
 } /* ecore_x_netwm_opacity_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
 {
    int ret;
@@ -1298,7 +1299,7 @@ ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
    if (opacity)
       *opacity = tmp;
 
-   return ret == 1 ? 1 : 0;
+   return ret == 1 ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_netwm_opacity_get */
 
 EAPI void
@@ -1317,7 +1318,7 @@ ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int fb)
                                   4);
 } /* ecore_x_netwm_frame_size_set */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_frame_size_get(Ecore_X_Window win,
                              int           *fl,
                              int           *fr,
@@ -1333,7 +1334,7 @@ ecore_x_netwm_frame_size_get(Ecore_X_Window win,
                                         frames,
                                         4);
    if (ret != 4)
-      return 0;
+      return EINA_FALSE;
 
    if (fl)
       *fl = frames[0];
@@ -1347,10 +1348,10 @@ ecore_x_netwm_frame_size_get(Ecore_X_Window win,
    if (fb)
       *fb = frames[3];
 
-   return 1;
+   return EINA_TRUE;
 } /* ecore_x_netwm_frame_size_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_netwm_sync_counter_get(Ecore_X_Window        win,
                                Ecore_X_Sync_Counter *counter)
 {
@@ -1367,7 +1368,7 @@ ecore_x_netwm_sync_counter_get(Ecore_X_Window        win,
    if (counter)
       *counter = tmp;
 
-   return ret == 1 ? 1 : 0;
+   return ret == 1 ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_netwm_sync_counter_get */
 
 EAPI void
@@ -1424,7 +1425,7 @@ ecore_x_netwm_state_request_send(Ecore_X_Window       win,
                                  Ecore_X_Window       root,
                                  Ecore_X_Window_State s1,
                                  Ecore_X_Window_State s2,
-                                 int                  set)
+                                 Eina_Bool            set)
 {
    XEvent xev;
 
@@ -1888,7 +1889,7 @@ _ecore_x_netwm_startup_info_free(void *data)
 /*
  * Is screen composited?
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_screen_is_composited(int screen)
 {
    Ecore_X_Window win;
@@ -1901,11 +1902,11 @@ ecore_x_screen_is_composited(int screen)
       atom = XInternAtom(_ecore_x_disp, buf, False);
 
    if (atom == None)
-      return 0;
+      return EINA_FALSE;
 
    win = XGetSelectionOwner(_ecore_x_disp, atom);
 
-   return win != None;
+   return (win != None) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_screen_is_composited */
 
 EAPI void
index 537d42d..e3fc8d8 100644 (file)
@@ -106,9 +106,9 @@ typedef struct _Ecore_X_Selection_Converter   Ecore_X_Selection_Converter;
 struct _Ecore_X_Selection_Converter
 {
    Ecore_X_Atom                 target;
-   int                          (*convert)(char *target, void *data, int size,
-                                           void **data_ret, int *size_ret,
-                                           Ecore_X_Atom *type, int *typeseize);
+   Eina_Bool                  (*convert)(char *target, void *data, int size,
+                                         void **data_ret, int *size_ret,
+                                         Ecore_X_Atom *type, int *typeseize);
    Ecore_X_Selection_Converter *next;
 };
 
@@ -192,7 +192,7 @@ extern Time _ecore_x_event_last_time;
 extern Window _ecore_x_event_last_win;
 extern int _ecore_x_event_last_root_x;
 extern int _ecore_x_event_last_root_y;
-extern int _ecore_x_xcursor;
+extern Eina_Bool _ecore_x_xcursor;
 extern XIC _ecore_x_ic;
 
 extern Ecore_X_Atom _ecore_x_atoms_wm_protocols[ECORE_X_WM_PROTOCOL_NUM];
@@ -268,7 +268,7 @@ Ecore_X_Atom
 char *                    _ecore_x_selection_target_get(Ecore_X_Atom target);
 Ecore_X_Selection_Intern *
                           _ecore_x_selection_get(Ecore_X_Atom selection);
-int                       _ecore_x_selection_set(Window             w,
+Eina_Bool                 _ecore_x_selection_set(Window             w,
                                                        const void  *data,
                                                        int          len,
                                                        Ecore_X_Atom selection);
index 4a11574..409ee89 100644 (file)
@@ -44,11 +44,11 @@ ecore_x_xregion_free(Ecore_X_XRegion *region)
    XDestroyRegion((Region)region);
 } /* ecore_x_xregion_free */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_set(Ecore_X_XRegion *region, Ecore_X_GC gc)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XSetRegion(_ecore_x_disp, gc, (Region)region);
+   return XSetRegion(_ecore_x_disp, gc, (Region)region) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_set */
 
 EAPI void
@@ -62,25 +62,25 @@ ecore_x_xregion_translate(Ecore_X_XRegion *region, int x, int y)
    XOffsetRegion((Region)region, x, y);
 } /* ecore_x_xregion_translate */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_intersect(Ecore_X_XRegion *dst,
                           Ecore_X_XRegion *r1,
                           Ecore_X_XRegion *r2)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XIntersectRegion((Region)r1, (Region)r2, (Region)dst);
+   return XIntersectRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_intersect */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_union(Ecore_X_XRegion *dst,
                       Ecore_X_XRegion *r1,
                       Ecore_X_XRegion *r2)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XUnionRegion((Region)r1, (Region)r2, (Region)dst);
+   return XUnionRegion((Region)r1, (Region)r2, (Region)dst) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_union */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_union_rect(Ecore_X_XRegion   *dst,
                            Ecore_X_XRegion   *src,
                            Ecore_X_Rectangle *rect)
@@ -93,59 +93,59 @@ ecore_x_xregion_union_rect(Ecore_X_XRegion   *dst,
    xr.width = rect->width;
    xr.height = rect->height;
 
-   return XUnionRectWithRegion(&xr, (Region)src, (Region)dst);
+   return XUnionRectWithRegion(&xr, (Region)src, (Region)dst) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_union_rect */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_subtract(Ecore_X_XRegion *dst,
                          Ecore_X_XRegion *rm,
                          Ecore_X_XRegion *rs)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XSubtractRegion((Region)rm, (Region)rs, (Region)dst);
+   return XSubtractRegion((Region)rm, (Region)rs, (Region)dst) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_subtract */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_is_empty(Ecore_X_XRegion *region)
 {
    if (!region)
-      return 1;
+      return EINA_TRUE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return !XEmptyRegion((Region)region);
+   return !XEmptyRegion((Region)region) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_is_empty */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_is_equal(Ecore_X_XRegion *r1, Ecore_X_XRegion *r2)
 {
    if (!r1 || !r2)
-      return 0;
+      return EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XEqualRegion((Region)r1, (Region)r1);
+   return XEqualRegion((Region)r1, (Region)r1) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_is_equal */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_point_contain(Ecore_X_XRegion *region, int x, int y)
 {
    if (!region)
-      return 0;
+      return EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XPointInRegion((Region)region, x, y);
+   return XPointInRegion((Region)region, x, y) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_point_contain */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xregion_rect_contain(Ecore_X_XRegion *region, Ecore_X_Rectangle *rect)
 {
    if (!region || !rect)
-      return 0;
+      return EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    return XRectInRegion((Region)region,
                         rect->x,
                         rect->y,
                         rect->width,
-                        rect->height);
+                        rect->height) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_rect_contain */
 
index 974070f..7377372 100644 (file)
@@ -13,7 +13,7 @@
 
 static int _screensaver_available = -1;
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_screensaver_event_available_get(void)
 {
    if (_screensaver_available >= 0)
@@ -154,7 +154,7 @@ ecore_x_screensaver_interval_get(void)
 } /* ecore_x_screensaver_interval_get */
 
 EAPI void
-ecore_x_screensaver_event_listen_set(int on __UNUSED__)
+ecore_x_screensaver_event_listen_set(Eina_Bool on)
 {
 #ifdef ECORE_XSS
    Ecore_X_Window root;
index a5a0c7d..f54ea93 100644 (file)
@@ -15,7 +15,7 @@ static Ecore_X_Selection_Intern selections[4];
 static Ecore_X_Selection_Converter *converters = NULL;
 static Ecore_X_Selection_Parser *parsers = NULL;
 
-static int      _ecore_x_selection_converter_text(char         *target,
+static Eina_Bool _ecore_x_selection_converter_text(char         *target,
                                                   void         *data,
                                                   int           size,
                                                   void        **data_ret,
@@ -119,7 +119,7 @@ _ecore_x_selection_get(Ecore_X_Atom selection)
       return NULL;
 } /* _ecore_x_selection_get */
 
-int
+Eina_Bool
 _ecore_x_selection_set(Window       w,
                        const void  *data,
                        int          size,
@@ -130,7 +130,7 @@ _ecore_x_selection_set(Window       w,
 
    XSetSelectionOwner(_ecore_x_disp, selection, w, _ecore_x_event_last_time);
    if (XGetSelectionOwner(_ecore_x_disp, selection) != w)
-      return 0;
+      return EINA_FALSE;
 
    if (selection == ECORE_X_ATOM_SELECTION_PRIMARY)
       in = 0;
@@ -141,7 +141,7 @@ _ecore_x_selection_set(Window       w,
    else if (selection == ECORE_X_ATOM_SELECTION_CLIPBOARD)
       in = 3;
    else
-      return 0;
+      return EINA_FALSE;
 
    if (data)
      {
@@ -160,7 +160,7 @@ _ecore_x_selection_set(Window       w,
         memset(&selections[in], 0, sizeof(Ecore_X_Selection_Data));
      }
 
-   return 1;
+   return EINA_TRUE;
 } /* _ecore_x_selection_set */
 
 /**
@@ -171,7 +171,7 @@ _ecore_x_selection_set(Window       w,
  * @return     Returns 1 if the ownership of the selection was successfully
  *             claimed, or 0 if unsuccessful.
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -184,7 +184,7 @@ ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size)
  *             or 0 if unsuccessful.
  *
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_primary_clear(void)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -199,7 +199,7 @@ ecore_x_selection_primary_clear(void)
  * @return     Returns 1 if the ownership of the selection was successfully
  *             claimed, or 0 if unsuccessful.
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -215,7 +215,7 @@ ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size)
  *             or 0 if unsuccessful.
  *
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_secondary_clear(void)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -233,7 +233,7 @@ ecore_x_selection_secondary_clear(void)
  * @return     Returns 1 if the ownership of the selection was successfully
  *             claimed, or 0 if unsuccessful.
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_xdnd_set(Ecore_X_Window w, const void *data, int size)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -246,7 +246,7 @@ ecore_x_selection_xdnd_set(Ecore_X_Window w, const void *data, int size)
  *             or 0 if unsuccessful.
  *
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_xdnd_clear(void)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -264,7 +264,7 @@ ecore_x_selection_xdnd_clear(void)
  * Get the converted data from a previous CLIPBOARD selection
  * request. The buffer must be freed when done with.
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_clipboard_set(Ecore_X_Window w, const void *data, int size)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -280,7 +280,7 @@ ecore_x_selection_clipboard_set(Ecore_X_Window w, const void *data, int size)
  *             or 0 if unsuccessful.
  *
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_clipboard_clear(void)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -386,14 +386,14 @@ ecore_x_selection_clipboard_request(Ecore_X_Window w, const char *target)
 } /* ecore_x_selection_clipboard_request */
 
 EAPI void
-ecore_x_selection_converter_atom_add(Ecore_X_Atom                                    target,
-                                     int                                             (*func)(char *target,
-                                                                       void         *data,
-                                                                       int           size,
-                                                                       void        **data_ret,
-                                                                       int          *size_ret,
-                                                                       Ecore_X_Atom *ttype,
-                                                                       int          *tsize))
+ecore_x_selection_converter_atom_add(Ecore_X_Atom target,
+                                     Eina_Bool  (*func)(char         *target,
+                                                        void         *data,
+                                                        int           size,
+                                                        void        **data_ret,
+                                                        int          *size_ret,
+                                                        Ecore_X_Atom *ttype,
+                                                        int          *tsize))
 {
    Ecore_X_Selection_Converter *cnv;
 
@@ -430,7 +430,7 @@ ecore_x_selection_converter_atom_add(Ecore_X_Atom
 
 EAPI void
 ecore_x_selection_converter_add(char                             *target,
-                                int                               (*func)(char *target,
+                                Eina_Bool                       (*func)(char *target,
                                                            void  *data,
                                                            int    size,
                                                            void **data_ret,
@@ -492,7 +492,7 @@ ecore_x_selection_converter_del(char *target)
    ecore_x_selection_converter_atom_del(x_target);
 } /* ecore_x_selection_converter_del */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_notify_send(Ecore_X_Window requestor,
                               Ecore_X_Atom   selection,
                               Ecore_X_Atom   target,
@@ -514,11 +514,11 @@ ecore_x_selection_notify_send(Ecore_X_Window requestor,
    xnotify.serial = 0;
 
    xev.xselection = xnotify;
-   return ((XSendEvent(_ecore_x_disp, requestor, False, 0, &xev) > 0) ? 1 : 0);
+   return ((XSendEvent(_ecore_x_disp, requestor, False, 0, &xev) > 0) ? EINA_TRUE : EINA_FALSE);
 } /* ecore_x_selection_notify_send */
 
 /* Locate and run conversion callback for specified selection target */
-EAPI int
+EAPI Eina_Bool
 ecore_x_selection_convert(Ecore_X_Atom  selection,
                           Ecore_X_Atom  target,
                           void        **data_ret,
@@ -549,12 +549,12 @@ ecore_x_selection_convert(Ecore_X_Atom  selection,
                   return r;
                }
              else
-                return 0;
+                return EINA_FALSE;
           }
      }
 
    /* ICCCM says "If the selection cannot be converted into a form based on the target (and parameters, if any), the owner should refuse the SelectionRequest as previously described." */
-   return 0;
+   return EINA_FALSE;
 
    /* Default, just return the data
       *data_ret = malloc(sel->length);
@@ -567,7 +567,7 @@ ecore_x_selection_convert(Ecore_X_Atom  selection,
 /* TODO: We need to work out a mechanism for automatic conversion to any requested
  * locale using Ecore_Txt functions */
 /* Converter for standard non-utf8 text targets */
-static int
+static Eina_Bool
 _ecore_x_selection_converter_text(char         *target,
                                   void         *data,
                                   int           size,
@@ -581,7 +581,7 @@ _ecore_x_selection_converter_text(char         *target,
    XICCEncodingStyle style;
 
    if (!data || !size)
-      return 0;
+      return EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (!strcmp(target, ECORE_X_SELECTION_TARGET_TEXT))
@@ -596,9 +596,9 @@ _ecore_x_selection_converter_text(char         *target,
       style = XUTF8StringStyle;
 #endif /* ifdef X_HAVE_UTF8_STRING */
    else
-      return 0;
+      return EINA_FALSE;
    if (!(mystr = strdup(data)))
-      return 0;
+      return EINA_FALSE;
 
 #ifdef X_HAVE_UTF8_STRING
    if (Xutf8TextListToTextProperty(_ecore_x_disp, &mystr, 1, style,
@@ -610,7 +610,7 @@ _ecore_x_selection_converter_text(char         *target,
         *size_ret = bufsize;
         XFree(text_prop.value);
         free(mystr);
-        return 1;
+        return EINA_TRUE;
      }
 
 #else /* ifdef X_HAVE_UTF8_STRING */
@@ -623,14 +623,14 @@ _ecore_x_selection_converter_text(char         *target,
         *size_ret = bufsize;
         XFree(text_prop.value);
         free(mystr);
-        return 1;
+        return EINA_TRUE;
      }
 
 #endif /* ifdef X_HAVE_UTF8_STRING */
    else
      {
         free(mystr);
-        return 0;
+        return EINA_TRUE;
      }
 } /* _ecore_x_selection_converter_text */
 
index 7ec2f9a..540ade4 100644 (file)
@@ -44,14 +44,14 @@ ecore_x_sync_alarm_new(Ecore_X_Sync_Counter counter)
    return alarm;
 } /* ecore_x_sync_alarm_new */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    return XSyncDestroyAlarm(_ecore_x_disp, alarm);
 } /* ecore_x_sync_alarm_free */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, unsigned int *val)
 {
    XSyncValue value;
@@ -60,10 +60,10 @@ ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, unsigned int *val)
    if (XSyncQueryCounter(_ecore_x_disp, counter, &value))
      {
         *val = (unsigned int)XSyncValueLow32(value);
-        return 1;
+        return EINA_TRUE;
      }
 
-   return 0;
+   return EINA_FALSE;
 } /* ecore_x_sync_counter_query */
 
 EAPI Ecore_X_Sync_Counter
index 3fb9b1a..b4335d1 100644 (file)
@@ -12,7 +12,7 @@
 #include "Ecore_X.h"
 #include <string.h>
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_test_fake_key_down(const char *key)
 {
 #ifdef ECORE_XTEST
@@ -26,21 +26,21 @@ ecore_x_test_fake_key_down(const char *key)
      {
         keysym = XStringToKeysym(key);
         if (keysym == NoSymbol)
-           return 0;
+           return EINA_FALSE;
 
         keycode = XKeysymToKeycode(_ecore_x_disp, keysym);
      }
 
    if (keycode == 0)
-      return 0;
+      return EINA_FALSE;
 
-   return XTestFakeKeyEvent(_ecore_x_disp, keycode, 1, 0);
+   return XTestFakeKeyEvent(_ecore_x_disp, keycode, 1, 0) ? EINA_TRUE : EINA_FALSE;
 #else /* ifdef ECORE_XTEST */
-   return 0;
+   return EINA_FALSE;
 #endif /* ifdef ECORE_XTEST */
 } /* ecore_x_test_fake_key_down */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_test_fake_key_up(const char *key)
 {
 #ifdef ECORE_XTEST
@@ -54,21 +54,21 @@ ecore_x_test_fake_key_up(const char *key)
      {
         keysym = XStringToKeysym(key);
         if (keysym == NoSymbol)
-           return 0;
+           return EINA_FALSE;
 
         keycode = XKeysymToKeycode(_ecore_x_disp, keysym);
      }
 
    if (keycode == 0)
-      return 0;
+      return EINA_FALSE;
 
-   return XTestFakeKeyEvent(_ecore_x_disp, keycode, 0, 0);
+   return XTestFakeKeyEvent(_ecore_x_disp, keycode, 0, 0) ? EINA_TRUE : EINA_FALSE;
 #else /* ifdef ECORE_XTEST */
-   return 0;
+   return EINA_FALSE;
 #endif /* ifdef ECORE_XTEST */
 } /* ecore_x_test_fake_key_up */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_test_fake_key_press(const char *key)
 {
 #ifdef ECORE_XTEST
@@ -83,7 +83,7 @@ ecore_x_test_fake_key_press(const char *key)
      {
         keysym = XStringToKeysym(key);
         if (keysym == NoSymbol)
-           return 0;
+           return EINA_FALSE;
 
         keycode = XKeysymToKeycode(_ecore_x_disp, keysym);
         if (XKeycodeToKeysym(_ecore_x_disp, keycode, 0) != keysym)
@@ -129,9 +129,9 @@ ecore_x_test_fake_key_press(const char *key)
       XTestFakeKeyEvent(_ecore_x_disp,
                         XKeysymToKeycode(_ecore_x_disp, XK_Shift_L), 0, 0);
 
-   return 1;
+   return EINA_TRUE;
 #else /* ifdef ECORE_XTEST */
-   return 0;
+   return EINA_FALSE;
 #endif /* ifdef ECORE_XTEST */
 } /* ecore_x_test_fake_key_press */
 
index 8308c3f..34274a5 100644 (file)
@@ -733,7 +733,7 @@ ecore_x_window_depth_get(Ecore_X_Window win)
  * FIXME: To be fixed.
  */
 EAPI void
-ecore_x_window_cursor_show(Ecore_X_Window win, int show)
+ecore_x_window_cursor_show(Ecore_X_Window win, Eina_Bool show)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (win == 0)
@@ -1389,7 +1389,7 @@ ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h)
 } /* ecore_x_window_area_expose */
 
 EAPI void
-ecore_x_window_override_set(Ecore_X_Window win, int override)
+ecore_x_window_override_set(Ecore_X_Window win, Eina_Bool override)
 {
    XSetWindowAttributes att;
 
@@ -1405,8 +1405,8 @@ _ecore_x_window_argb_internal_new(Ecore_X_Window parent,
                                   int            y,
                                   int            w,
                                   int            h,
-                                  int            override,
-                                  int            saveunder)
+                                  Eina_Bool      override,
+                                  Eina_Bool      saveunder)
 {
    Window win;
    XSetWindowAttributes attr;
index 7b447df..82e35a8 100644 (file)
@@ -641,16 +641,17 @@ ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type)
    return str;
 } /* ecore_x_window_prop_string_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_window_prop_protocol_isset(Ecore_X_Window      win,
                                    Ecore_X_WM_Protocol protocol)
 {
    Atom proto, *protos = NULL;
-   int i, ret = 0, protos_count = 0;
+   int i, protos_count = 0;
+   Eina_Bool ret = EINA_FALSE;
 
    /* check for invalid values */
    if (protocol >= ECORE_X_WM_PROTOCOL_NUM)
-      return 0;
+      return EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    proto = _ecore_x_atoms_wm_protocols[protocol];
@@ -661,7 +662,7 @@ ecore_x_window_prop_protocol_isset(Ecore_X_Window      win,
    for (i = 0; i < protos_count; i++)
       if (protos[i] == proto)
         {
-           ret = 1;
+           ret = EINA_TRUE;
            break;
         }
 
index 2f56e72..f0362d3 100644 (file)
@@ -271,7 +271,7 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret)
 } /* ecore_x_window_shape_rectangles_get */
 
 EAPI void
-ecore_x_window_shape_events_select(Ecore_X_Window win, int on)
+ecore_x_window_shape_events_select(Ecore_X_Window win, Eina_Bool on)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
    if (on)
index c13d040..dcbd133 100644 (file)
@@ -38,7 +38,7 @@ ecore_x_xinerama_screen_count_get(void)
    return 0;
 } /* ecore_x_xinerama_screen_count_get */
 
-EAPI int
+EAPI Eina_Bool
 ecore_x_xinerama_screen_geometry_get(int screen __UNUSED__, int *x, int *y, int *w, int *h)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -63,7 +63,7 @@ ecore_x_xinerama_screen_geometry_get(int screen __UNUSED__, int *x, int *y, int
                   if (h)
                      *h = _xin_info[i].height;
 
-                  return 1;
+                  return EINA_TRUE;
                }
           }
      }
@@ -81,6 +81,6 @@ ecore_x_xinerama_screen_geometry_get(int screen __UNUSED__, int *x, int *y, int
    if (h)
       *h = DisplayHeight(_ecore_x_disp, 0);
 
-   return 0;
+   return EINA_FALSE;
 } /* ecore_x_xinerama_screen_geometry_get */