Time can't be negative.

SVN revision: 15084
This commit is contained in:
sebastid 2005-06-03 11:58:10 +00:00 committed by sebastid
parent 235e22abc2
commit af9f9b72c6
2 changed files with 5 additions and 8 deletions

View File

@ -1217,8 +1217,8 @@ EAPI void ecore_x_netwm_pid_set(Ecore_X_Window win, int pid);
EAPI int ecore_x_netwm_pid_get(Ecore_X_Window win, int *pid);
EAPI void ecore_x_netwm_handled_icons_set(Ecore_X_Window win);
EAPI int ecore_x_netwm_handled_icons_get(Ecore_X_Window win);
EAPI void ecore_x_netwm_user_time_set(Ecore_X_Window win, int time);
EAPI int ecore_x_netwm_user_time_get(Ecore_X_Window win, int *time);
EAPI void ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time);
EAPI int ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time);
EAPI Ecore_X_Window_State *ecore_x_netwm_window_state_list_get(Ecore_X_Window win, int *num);
EAPI int ecore_x_netwm_window_state_list_set(Ecore_X_Window win, Ecore_X_Window_State *state, int num);

View File

@ -860,17 +860,14 @@ ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
}
void
ecore_x_netwm_user_time_set(Ecore_X_Window win, int time)
ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time)
{
unsigned int tmp;
tmp = time;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME,
&tmp, 1);
&time, 1);
}
int
ecore_x_netwm_user_time_get(Ecore_X_Window win, int *time)
ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *time)
{
int ret;
unsigned int tmp;