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.
This commit is contained in:
Owen Taylor 1998-12-09 17:31:52 +00:00 committed by Owen Taylor
parent adc2698da1
commit dfa88ef9c7
11 changed files with 76 additions and 8 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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;
}

View 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;
}

View 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]);

View 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]);