Re: testselection.c & gdk_atom_intern()




"Damon Chaplin" <DAChaplin@email.msn.com> writes:

> Hi,
> 
> testselection.c
> ===============
> 
> the targetlist in main() has two items per GtkTargetEntry,
> but the definition shows 3. I think the flags haven't been added.
> 
> 
> If I type 'TEXT' or 'STRING' in the target box, click the 'Claim Selection'
> button and then try to paste somewhere (an xterm or emacs) I get:
> 
> Gdk-ERROR **: BadAtom (invalid Atom parameter)
>   serial 606 error_code 5 request_code 18 minor_code 0
> 
> aborting...
> Aborted
> 
> If I put 0 in the flags fields of the targetlist it seems to be OK.

Yes.  (The problem is that unexpected data is being passed
to selection_get())
 
> gdk_atom_intern()
> =================
> 
> Should gdk_atom_intern() add newly-created atoms to its hash table?

Yes!:-/

> It creates a hash table but never seems to add to it.

Both fixed now. Thanks,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]