[python 1.5.2, gtk 1.2.8, pygtk 0.6.6]
The GTK+ 1.2 Tutorial, in the section on Managing Selections >>
Supplying the selection, seems to state that one clears the X selection
by setting the owner to NULL:
/* Before clearing the selection by setting the owner to
NULL,
we check if we are the actual owner */
if (gdk_selection_owner_get (GDK_SELECTION_PRIMARY) ==
widget->window)
gtk_selection_owner_set (NULL, GDK_SELECTION_PRIMARY,
GDK_CURRENT_TIME);
However, in PyGTK, selection_owner_set is mapped as a method of the
GtkWidget class, which internally passes itself as the first parameter
to gtk_selection_owner_set, in which case there seems to be no way to
pass NULL. Is there another standard way to clear the selection in
PyGTK?
--
Suzanne Sloan
[EMAIL PROTECTED]
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk