summaryrefslogtreecommitdiff
path: root/src/xprops.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-01-04 03:25:53 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-01-04 03:25:53 +0000
commit501a60ab20f29bf7305a4655a707d14f2c8b232e (patch)
treed3cc2d5073a3356acee7169025a7eaffaad27f2b /src/xprops.h
parentb9701454b86ff5ed88a0935d9f52cf22d5ac5508 (diff)
downloadmetacity-501a60ab20f29bf7305a4655a707d14f2c8b232e.tar.gz
metacity-501a60ab20f29bf7305a4655a707d14f2c8b232e.tar.bz2
use meta_XFree not XFree
2002-01-03 Havoc Pennington <hp@pobox.com> * src/window.c: use meta_XFree not XFree * src/display.h (meta_XFree): add null-safe XFree * src/util.c (meta_warning): have message prefix indicate that it's a warning (meta_fatal): indicate it's an error * src/window.c (update_sm_hints): clean up using meta_prop_get_latin1_string (update_role): ditto (read_client_leader): clean up using meta_prop_get_window (update_net_wm_type): clean up using meta_prop_get_cardinal (update_initial_workspace): ditto (update_net_wm_type): clean up using meta_prop_get_atom_list (read_rgb_icon): get result from XGetWindowProperty return value not from error trap (update_kwm_icon): ditto (meta_window_new): fix to read WM_STATE correctly
Diffstat (limited to 'src/xprops.h')
-rw-r--r--src/xprops.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/xprops.h b/src/xprops.h
index 28a479b..0992979 100644
--- a/src/xprops.h
+++ b/src/xprops.h
@@ -81,6 +81,27 @@ gboolean meta_prop_get_cardinal_list (MetaDisplay *display,
Atom xatom,
gulong **cardinals_p,
int *n_cardinals_p);
+gboolean meta_prop_get_latin1_string (MetaDisplay *display,
+ Window xwindow,
+ Atom xatom,
+ char **str_p);
+gboolean meta_prop_get_utf8_string (MetaDisplay *display,
+ Window xwindow,
+ Atom xatom,
+ char **str_p);
+gboolean meta_prop_get_window (MetaDisplay *display,
+ Window xwindow,
+ Atom xatom,
+ Window *window_p);
+gboolean meta_prop_get_cardinal (MetaDisplay *display,
+ Window xwindow,
+ Atom xatom,
+ gulong *cardinal_p);
+gboolean meta_prop_get_cardinal_with_atom_type (MetaDisplay *display,
+ Window xwindow,
+ Atom xatom,
+ Atom prop_type,
+ gulong *cardinal_p);
#endif