]> Pileus Git - ~andy/gtk/commitdiff
Add in missing 'flags' field to target list.
authorOwen Taylor <otaylor@redhat.com>
Wed, 9 Dec 1998 17:31:52 +0000 (17:31 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 9 Dec 1998 17:31:52 +0000 (17:31 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkproperty.c
gdk/x11/gdkproperty-x11.c
gtk/testselection.c
tests/testselection.c

index 3ee4d7070386cad77dd35dcb7a88d9686ddcca78..d42a8ee051ad33cb2d7811d7ed23247197e37a95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
 Wed Dec  9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gdk/gdkprivate.h: put text after #endif in comment
index 3ee4d7070386cad77dd35dcb7a88d9686ddcca78..d42a8ee051ad33cb2d7811d7ed23247197e37a95 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 Wed Dec  9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gdk/gdkprivate.h: put text after #endif in comment
index 3ee4d7070386cad77dd35dcb7a88d9686ddcca78..d42a8ee051ad33cb2d7811d7ed23247197e37a95 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 Wed Dec  9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gdk/gdkprivate.h: put text after #endif in comment
index 3ee4d7070386cad77dd35dcb7a88d9686ddcca78..d42a8ee051ad33cb2d7811d7ed23247197e37a95 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 Wed Dec  9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gdk/gdkprivate.h: put text after #endif in comment
index 3ee4d7070386cad77dd35dcb7a88d9686ddcca78..d42a8ee051ad33cb2d7811d7ed23247197e37a95 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 Wed Dec  9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gdk/gdkprivate.h: put text after #endif in comment
index 3ee4d7070386cad77dd35dcb7a88d9686ddcca78..d42a8ee051ad33cb2d7811d7ed23247197e37a95 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 Wed Dec  9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gdk/gdkprivate.h: put text after #endif in comment
index 3ee4d7070386cad77dd35dcb7a88d9686ddcca78..d42a8ee051ad33cb2d7811d7ed23247197e37a95 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 Wed Dec  9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gdk/gdkprivate.h: put text after #endif in comment
index 5b18ba71e76728bb817b0f988389ed7c9bc1c16f..12f0420ddece2724a5d918ea32d79970693f7cbc 100644 (file)
@@ -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;
 }
index 5b18ba71e76728bb817b0f988389ed7c9bc1c16f..12f0420ddece2724a5d918ea32d79970693f7cbc 100644 (file)
@@ -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;
 }
index e88d44347ca2408d11fa4264752af66ce220be43..765f918f28592aa099bddc5378b478ed4de44ce4 100644 (file)
@@ -384,9 +384,9 @@ main (int argc, char *argv[])
   GtkWidget *hbox;
 
   static GtkTargetEntry targetlist[] = {
-    { "STRING", STRING },
-    { "TEXT",   TEXT },
-    { "COMPOUND_TEXT", COMPOUND_TEXT }
+    { "STRING",        0, STRING },
+    { "TEXT",          0, TEXT },
+    { "COMPOUND_TEXT", 0, COMPOUND_TEXT }
   };
   static gint ntargets = sizeof(targetlist) / sizeof(targetlist[0]);
   
index e88d44347ca2408d11fa4264752af66ce220be43..765f918f28592aa099bddc5378b478ed4de44ce4 100644 (file)
@@ -384,9 +384,9 @@ main (int argc, char *argv[])
   GtkWidget *hbox;
 
   static GtkTargetEntry targetlist[] = {
-    { "STRING", STRING },
-    { "TEXT",   TEXT },
-    { "COMPOUND_TEXT", COMPOUND_TEXT }
+    { "STRING",        0, STRING },
+    { "TEXT",          0, TEXT },
+    { "COMPOUND_TEXT", 0, COMPOUND_TEXT }
   };
   static gint ntargets = sizeof(targetlist) / sizeof(targetlist[0]);