From: devilhorns Date: Sat, 16 Jul 2011 19:17:24 +0000 (+0000) Subject: Ecore_X: Use Eina_Bool for unsigned char. X-Git-Tag: accepted/2.0/20130306.224007~181^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f01bcf13312f7c10e867801d318bc447670d0848;p=profile%2Fivi%2Fecore.git Ecore_X: Use Eina_Bool for unsigned char. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61431 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_x/Ecore_X.h b/src/lib/ecore_x/Ecore_X.h index 27359d8..f0af0d1 100644 --- a/src/lib/ecore_x/Ecore_X.h +++ b/src/lib/ecore_x/Ecore_X.h @@ -2274,17 +2274,17 @@ typedef struct _Ecore_X_Window_Attributes int x, y, w, h; int border; int depth; - unsigned char visible : 1; - unsigned char viewable : 1; - unsigned char override : 1; - unsigned char input_only : 1; - unsigned char save_under : 1; + Eina_Bool visible : 1; + Eina_Bool viewable : 1; + Eina_Bool override : 1; + Eina_Bool input_only : 1; + Eina_Bool save_under : 1; struct - { - Ecore_X_Event_Mask mine; - Ecore_X_Event_Mask all; - Ecore_X_Event_Mask no_propagate; - } event_mask; + { + Ecore_X_Event_Mask mine; + Ecore_X_Event_Mask all; + Ecore_X_Event_Mask no_propagate; + } event_mask; Ecore_X_Gravity window_gravity; Ecore_X_Gravity pixel_gravity; Ecore_X_Colormap colormap; diff --git a/src/lib/ecore_x/xcb/ecore_xcb_window.c b/src/lib/ecore_x/xcb/ecore_xcb_window.c index a643836..299821c 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_window.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_window.c @@ -1076,21 +1076,19 @@ ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att LOGFN(__FILE__, __LINE__, __FUNCTION__); cookie = xcb_get_window_attributes_unchecked(_ecore_xcb_conn, win); - gcookie = xcb_get_geometry_unchecked(_ecore_xcb_conn, win); - reply = xcb_get_window_attributes_reply(_ecore_xcb_conn, cookie, NULL); if (!reply) return EINA_FALSE; memset(att_ret, 0, sizeof(Ecore_X_Window_Attributes)); if (reply->map_state != XCB_MAP_STATE_UNMAPPED) - att_ret->visible = 1; + att_ret->visible = EINA_TRUE; if (reply->map_state == XCB_MAP_STATE_VIEWABLE) - att_ret->viewable = 1; - if (reply->override_redirect) att_ret->override = 1; + att_ret->viewable = EINA_TRUE; + if (reply->override_redirect) att_ret->override = EINA_TRUE; if (reply->_class == XCB_WINDOW_CLASS_INPUT_ONLY) - att_ret->input_only = 1; - if (reply->save_under) att_ret->save_under = 1; + att_ret->input_only = EINA_TRUE; + if (reply->save_under) att_ret->save_under = EINA_TRUE; att_ret->event_mask.mine = reply->your_event_mask; att_ret->event_mask.all = reply->all_event_masks; att_ret->event_mask.no_propagate = reply->do_not_propagate_mask; @@ -1101,6 +1099,7 @@ ecore_x_window_attributes_get(Ecore_X_Window win, Ecore_X_Window_Attributes *att free(reply); + gcookie = xcb_get_geometry_unchecked(_ecore_xcb_conn, win); greply = xcb_get_geometry_reply(_ecore_xcb_conn, gcookie, NULL); if (!greply) return EINA_TRUE;