Fix prototype.

SVN revision: 13669
This commit is contained in:
Kim Woelders 2005-03-09 23:11:49 +00:00
parent 520506a7b3
commit d9f8f8842d
2 changed files with 3 additions and 3 deletions

View File

@ -872,7 +872,7 @@ EAPI int ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X
unsigned int *val, unsigned int len);
EAPI void ecore_x_window_prop_property_del(Ecore_X_Window win, Ecore_X_Atom property);
EAPI void ecore_x_window_prop_property_notify(Ecore_X_Window win, const char *type, long *data);
EAPI void ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, char *str);
EAPI void ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char *str);
EAPI char *ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type);
EAPI void ecore_x_window_prop_title_set(Ecore_X_Window win, const char *t);
EAPI char *ecore_x_window_prop_title_get(Ecore_X_Window win);

View File

@ -157,12 +157,12 @@ ecore_x_window_prop_property_notify(Ecore_X_Window win, const char *type, long *
* Set a window string property
*/
void
ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, char *str)
ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char *str)
{
XTextProperty xtp;
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
xtp.value = str;
xtp.value = (char*)str;
xtp.format = 8;
xtp.encoding = ECORE_X_ATOM_UTF8_STRING;
xtp.nitems = strlen(str);