GNOME Bugzilla – Bug 104944
Clipboard frozen w/ GtkTextView right mouse click
Last modified: 2011-02-04 16:12:10 UTC
Right clicking a GtkTextView (producing a menu) and then getting rid of the menu without choosing an option, disables the windows clipboard. Selecting and copying something from the textview widget, re-enables the windows clipboard.
Confirmed. Very odd.
Move remaining bugs off 2.2.2 target milestone.
Move remaining bugs off the 2.2.3 milestone
*** Bug 124735 has been marked as a duplicate of this bug. ***
As this one has bitten me (in use of GAIM), I've had a brief look. Compiling the sources under Win32 looked rather daunting, so I've based my investigations by browsing current CVS with Bonsai. The most obvious reason for this to lock the clipboard will be unmatched Open/CloseClipboard pairs. I suspect that in... /gtk+/gdk/win32/gdkselection-win32.c Insertion of... if (!CloseClipboard()) { WIN32_API_FAILED ("CloseClipboard"); return; } At line 293 of said file (the base of the branch... 270 if (selection == GDK_SELECTION_CLIPBOARD && 271 target == gdk_atom_intern ("TARGETS", FALSE)) 272 { ) should fix the only case of unmatched openings I can find. The second branch in that if block does also OpenClipboard, but has the corresponding close. If this all turns out to be garbage, please accept my apologies - if anyone has some instructions on how to get GTK+ building on Win32, I'd be very happy to go off, fix this and provide a proper patch. Cheers, adamw
Thanks! Very good catch, especially from just reading the code. Fix applied to gtk-2-2 and HEAD.
*** Bug 126277 has been marked as a duplicate of this bug. ***