summaryrefslogtreecommitdiff
path: root/gdk/quartz
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-12-13 23:26:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-12-13 23:26:23 -0500
commit4c083c1ed42a3ebae97a96fc11ef1113ad769f15 (patch)
treea567ad91921f7bee2a16ff372aad5e826d1f1fb5 /gdk/quartz
parente3e9bf4bea3307e9d0c6728d82f04994b069005f (diff)
downloadgtk+-4c083c1ed42a3ebae97a96fc11ef1113ad769f15.tar.gz
Drop gdk_atom_name
Since atoms are just interned strings now, we can just cast them to const char * where needed.
Diffstat (limited to 'gdk/quartz')
-rw-r--r--gdk/quartz/gdkselection-quartz.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdk/quartz/gdkselection-quartz.c b/gdk/quartz/gdkselection-quartz.c
index 855dd39066..2e965a8fac 100644
--- a/gdk/quartz/gdkselection-quartz.c
+++ b/gdk/quartz/gdkselection-quartz.c
@@ -119,10 +119,7 @@ _gdk_quartz_display_text_property_to_utf8_list (GdkDisplay *display,
}
else
{
- gchar *enc_name = gdk_atom_name (encoding);
-
- g_warning ("gdk_text_property_to_utf8_list_for_display: encoding %s not handled", enc_name);
- g_free (enc_name);
+ g_warning ("gdk_text_property_to_utf8_list_for_display: encoding %s not handled", (const char *)encoding);
if (list)
*list = NULL;
@@ -164,9 +161,8 @@ gdk_quartz_target_to_pasteboard_type_libgtk_only (const char *target)
NSString *
gdk_quartz_atom_to_pasteboard_type_libgtk_only (GdkAtom atom)
{
- gchar *target = gdk_atom_name (atom);
+ const char *target = (const char *)atom;
NSString *ret = gdk_quartz_target_to_pasteboard_type_libgtk_only (target);
- g_free (target);
return ret;
}