From dfa88ef9c79f57580cbe77b21ca259e8530c70ec Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Wed, 9 Dec 1998 17:31:52 +0000 Subject: Add in missing 'flags' field to target list. Wed Dec 9 12:23:30 1998 Owen Taylor * 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. --- gdk/x11/gdkproperty-x11.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gdk/x11/gdkproperty-x11.c') diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c index 5b18ba71e7..12f0420dde 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; } -- cgit v1.2.1