diff options
author | Jasper St. Pierre <[email protected]> | 2015-07-20 23:54:12 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-14 18:45:45 +0200 |
commit | b4b73de038caffbca46e3f94e4ec056c16734f5c (patch) | |
tree | 608a121f5eea5cc4c9f8ace9670f87b243723e6e /src/ui/ui.c | |
parent | e959355cbae2b4ed4dcd9124b0ffe1e328965ef0 (diff) | |
download | marco-b4b73de038caffbca46e3f94e4ec056c16734f5c.tar.bz2 marco-b4b73de038caffbca46e3f94e4ec056c16734f5c.tar.xz |
xprop: Don't use GDK for reading text properties
Diffstat (limited to 'src/ui/ui.c')
-rw-r--r-- | src/ui/ui.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c index 6de4de1c..582ac43c 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -931,38 +931,6 @@ meta_ui_window_should_not_cause_focus (Display *xdisplay, return FALSE; } -char* -meta_text_property_to_utf8 (Display *xdisplay, - const XTextProperty *prop) -{ - GdkDisplay *display; - char **list; - int count; - char *retval; - - list = NULL; - - display = gdk_x11_lookup_xdisplay (xdisplay); - count = gdk_text_property_to_utf8_list_for_display (display, - gdk_x11_xatom_to_atom_for_display (display, prop->encoding), - prop->format, - prop->value, - prop->nitems, - &list); - - if (count == 0) - retval = NULL; - else - { - retval = list[0]; - list[0] = g_strdup (""); /* something to free */ - } - - g_strfreev (list); - - return retval; -} - void meta_ui_theme_get_frame_borders (MetaUI *ui, MetaFrameType type, |