summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkproperty-x11.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-12-09 17:31:52 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-12-09 17:31:52 +0000
commitdfa88ef9c79f57580cbe77b21ca259e8530c70ec (patch)
tree3f3300349b9ca7506f4da7a7b8dd678e7891ba95 /gdk/x11/gdkproperty-x11.c
parentadc2698da1d3dddd0b33f6ab80cfb63f9ae83b56 (diff)
downloadgdk-pixbuf-dfa88ef9c79f57580cbe77b21ca259e8530c70ec.tar.gz
Add in missing 'flags' field to target list.
Wed Dec 9 12:23:30 1998 Owen Taylor <otaylor@redhat.com> * gtk/testselection.c (main): Add in missing 'flags' field to target list. * gdk/gdkproperty.c (gdk_atom_intern): Actually add the atoms to the local cache.
Diffstat (limited to 'gdk/x11/gdkproperty-x11.c')
-rw-r--r--gdk/x11/gdkproperty-x11.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c
index 5b18ba71e..12f0420dd 100644
--- a/gdk/x11/gdkproperty-x11.c
+++ b/gdk/x11/gdkproperty-x11.c
@@ -34,7 +34,13 @@ gdk_atom_intern (const gchar *atom_name,
retval = GPOINTER_TO_UINT (g_hash_table_lookup (atom_hash, atom_name));
if (!retval)
- retval = XInternAtom (gdk_display, atom_name, only_if_exists);
+ {
+ retval = XInternAtom (gdk_display, atom_name, only_if_exists);
+
+ g_hash_table_insert (atom_hash,
+ g_strdup (atom_name),
+ GUINT_TO_POINTER (retval));
+ }
return retval;
}