Set the property as type ATOM_PAIR, not ATOM. (#72074, Gregory Merchan.)

Wed Feb 20 21:52:13 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkselection.c (gtk_selection_request): Set the property
        as type ATOM_PAIR, not ATOM. (#72074, Gregory Merchan.)

        * gdk/x11/gdk{property,selecton}-x11.c: Auto-convert properties
        of type ATOM_PAIR as well as properties of type ATOM.
This commit is contained in:
Owen Taylor
2002-02-21 03:00:40 +00:00
committed by Owen Taylor
parent 639c8cac7a
commit e6d7f5e196
10 changed files with 61 additions and 4 deletions

View File

@ -246,7 +246,7 @@ gdk_selection_property_get (GdkWindow *requestor,
{
*data = g_new (guchar, length);
if (prop_type == XA_ATOM)
if (prop_type == XA_ATOM || prop_type == gdk_x11_get_xatom_by_name ("ATOM_PAIR"))
{
Atom* atoms = (Atom*) t;
GdkAtom* atoms_dest = (GdkAtom*) *data;