mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
adc2698da1
commit
dfa88ef9c7
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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]);
|
||||
|
||||
|
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user