diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-07-26 21:40:47 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:36:55 -0500 |
| commit | 2f0e73cf9d20154c5c84b6ea90e658cf44a6f0c4 (patch) | |
| tree | ad0ba99bffac6c951ab749af13460e8e5751a510 /obt/prop.h | |
| parent | 275fdf8c2a0d5c7d8f395b3269e644939e016696 (diff) | |
add functions for setting locale strings (on top of existing functions for setting utf8 strings). they are untested though! wonder if they work?
Diffstat (limited to 'obt/prop.h')
| -rw-r--r-- | obt/prop.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -225,8 +225,12 @@ gboolean obt_prop_get_strings_utf8(Window win, Atom prop, gchar ***ret); void obt_prop_set32(Window win, Atom prop, Atom type, gulong val); void obt_prop_set_array32(Window win, Atom prop, Atom type, gulong *val, guint num); +void obt_prop_set_string_locale(Window win, Atom prop, const gchar *val); void obt_prop_set_string_utf8(Window win, Atom prop, const gchar *val); -void obt_prop_set_strings_utf8(Window win, Atom prop, gchar **strs); +void obt_prop_set_strings_locale(Window win, Atom prop, + const gchar **strs); +void obt_prop_set_strings_utf8(Window win, Atom prop, + const gchar **strs); void obt_prop_erase(Window win, Atom prop); @@ -254,10 +258,10 @@ void obt_prop_message_to(Window to, Window about, Atom messagetype, #define OBT_PROP_SETA32(win, prop, type, val, num) \ (obt_prop_set_array32(win, OBT_PROP_ATOM(prop), OBT_PROP_ATOM(type), \ val, num)) -#define OBT_PROP_SETS(win, prop, val) \ - (obt_prop_set_string_utf8(win, OBT_PROP_ATOM(prop), val)) -#define OBT_PROP_SETSS(win, prop, strs) \ - (obt_prop_set_strings_utf8(win, OBT_PROP_ATOM(prop), strs)) +#define OBT_PROP_SETS(win, prop, type, val) \ + (obt_prop_set_string_##type(win, OBT_PROP_ATOM(prop), val)) +#define OBT_PROP_SETSS(win, prop, type, strs) \ + (obt_prop_set_strings_##type(win, OBT_PROP_ATOM(prop), strs)) #define OBT_PROP_ERASE(win, prop) (obt_prop_erase(win, OBT_PROP_ATOM(prop))) |
