summaryrefslogtreecommitdiff
path: root/obt/prop.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-07-26 21:40:47 -0400
committerDana Jansens <danakj@orodu.net>2008-01-20 01:36:55 -0500
commit2f0e73cf9d20154c5c84b6ea90e658cf44a6f0c4 (patch)
treead0ba99bffac6c951ab749af13460e8e5751a510 /obt/prop.h
parent275fdf8c2a0d5c7d8f395b3269e644939e016696 (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.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/obt/prop.h b/obt/prop.h
index d11a7355..0ccde376 100644
--- a/obt/prop.h
+++ b/obt/prop.h
@@ -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)))