Commit dfa88ef9 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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.
parent adc2698d
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> Wed Dec 9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkprivate.h: put text after #endif in comment * gdk/gdkprivate.h: put text after #endif in comment
......
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> Wed Dec 9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkprivate.h: put text after #endif in comment * gdk/gdkprivate.h: put text after #endif in comment
......
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> Wed Dec 9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkprivate.h: put text after #endif in comment * gdk/gdkprivate.h: put text after #endif in comment
......
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> Wed Dec 9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkprivate.h: put text after #endif in comment * gdk/gdkprivate.h: put text after #endif in comment
......
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> Wed Dec 9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkprivate.h: put text after #endif in comment * gdk/gdkprivate.h: put text after #endif in comment
......
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> Wed Dec 9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkprivate.h: put text after #endif in comment * gdk/gdkprivate.h: put text after #endif in comment
......
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> Wed Dec 9 04:57:31 PST 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkprivate.h: put text after #endif in comment * gdk/gdkprivate.h: put text after #endif in comment
......
...@@ -34,7 +34,13 @@ gdk_atom_intern (const gchar *atom_name, ...@@ -34,7 +34,13 @@ gdk_atom_intern (const gchar *atom_name,
retval = GPOINTER_TO_UINT (g_hash_table_lookup (atom_hash, atom_name)); retval = GPOINTER_TO_UINT (g_hash_table_lookup (atom_hash, atom_name));
if (!retval) 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; return retval;
} }
......
...@@ -34,7 +34,13 @@ gdk_atom_intern (const gchar *atom_name, ...@@ -34,7 +34,13 @@ gdk_atom_intern (const gchar *atom_name,
retval = GPOINTER_TO_UINT (g_hash_table_lookup (atom_hash, atom_name)); retval = GPOINTER_TO_UINT (g_hash_table_lookup (atom_hash, atom_name));
if (!retval) 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; return retval;
} }
......
...@@ -384,9 +384,9 @@ main (int argc, char *argv[]) ...@@ -384,9 +384,9 @@ main (int argc, char *argv[])
GtkWidget *hbox; GtkWidget *hbox;
static GtkTargetEntry targetlist[] = { static GtkTargetEntry targetlist[] = {
{ "STRING", STRING }, { "STRING", 0, STRING },
{ "TEXT", TEXT }, { "TEXT", 0, TEXT },
{ "COMPOUND_TEXT", COMPOUND_TEXT } { "COMPOUND_TEXT", 0, COMPOUND_TEXT }
}; };
static gint ntargets = sizeof(targetlist) / sizeof(targetlist[0]); static gint ntargets = sizeof(targetlist) / sizeof(targetlist[0]);
......
...@@ -384,9 +384,9 @@ main (int argc, char *argv[]) ...@@ -384,9 +384,9 @@ main (int argc, char *argv[])
GtkWidget *hbox; GtkWidget *hbox;
static GtkTargetEntry targetlist[] = { static GtkTargetEntry targetlist[] = {
{ "STRING", STRING }, { "STRING", 0, STRING },
{ "TEXT", TEXT }, { "TEXT", 0, TEXT },
{ "COMPOUND_TEXT", COMPOUND_TEXT } { "COMPOUND_TEXT", 0, COMPOUND_TEXT }
}; };
static gint ntargets = sizeof(targetlist) / sizeof(targetlist[0]); static gint ntargets = sizeof(targetlist) / sizeof(targetlist[0]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment