Fix a couple of ecore_x_e_illume functions ... these Should be int.

SVN revision: 52785
This commit is contained in:
Christopher Michael 2010-09-26 17:58:44 +00:00
parent 29ec0433ab
commit da426bec51
2 changed files with 20 additions and 33 deletions

View File

@ -2261,19 +2261,15 @@ EAPI void ecore_x_e_illume_quickpanel_state_send
Ecore_X_Illume_Quickpanel_State state);
EAPI void ecore_x_e_illume_quickpanel_state_toggle(
Ecore_X_Window win);
EAPI void
ecore_x_e_illume_quickpanel_priority_major_set(
EAPI void ecore_x_e_illume_quickpanel_priority_major_set(
Ecore_X_Window win,
unsigned int priority);
EAPI Eina_Bool
ecore_x_e_illume_quickpanel_priority_major_get(
EAPI int ecore_x_e_illume_quickpanel_priority_major_get(
Ecore_X_Window win);
EAPI void
ecore_x_e_illume_quickpanel_priority_minor_set(
EAPI void ecore_x_e_illume_quickpanel_priority_minor_set(
Ecore_X_Window win,
unsigned int priority);
EAPI Eina_Bool
ecore_x_e_illume_quickpanel_priority_minor_get(
EAPI int ecore_x_e_illume_quickpanel_priority_minor_get(
Ecore_X_Window win);
EAPI void ecore_x_e_illume_quickpanel_zone_set(
Ecore_X_Window win,

View File

@ -679,14 +679,12 @@ ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win,
unsigned int priority)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(
win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
&priority,
1);
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
&priority, 1);
} /* ecore_x_e_illume_quickpanel_priority_major_set */
EAPI Eina_Bool
EAPI int
ecore_x_e_illume_quickpanel_priority_major_get(Ecore_X_Window win)
{
unsigned int val = 0;
@ -695,9 +693,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 EINA_FALSE;
return 0;
return val ? EINA_TRUE : EINA_FALSE;
return val;
} /* ecore_x_e_illume_quickpanel_priority_major_get */
EAPI void
@ -705,14 +703,12 @@ ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win,
unsigned int priority)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(
win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
&priority,
1);
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
&priority, 1);
} /* ecore_x_e_illume_quickpanel_priority_minor_set */
EAPI Eina_Bool
EAPI int
ecore_x_e_illume_quickpanel_priority_minor_get(Ecore_X_Window win)
{
unsigned int val = 0;
@ -721,9 +717,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 EINA_FALSE;
return 0;
return val ? EINA_TRUE : EINA_FALSE;
return val;
} /* ecore_x_e_illume_quickpanel_priority_minor_get */
EAPI void
@ -753,15 +749,10 @@ EAPI void
ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(
win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_POSITION_UPDATE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1,
0,
0,
0,
0);
ecore_x_client_message32_send(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_POSITION_UPDATE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
} /* ecore_x_e_illume_quickpanel_position_update_send */
EAPI void