Clipboard-event spamming
Bug description
I use gtk.clipboard (gtk.gdk.SELECTION_PRIMARY) in my python program. It wait event from clipboard and then make some actions. Clipboard begin unstopable event-spam (kill command help :) ), when I select text in gajim message window. If arrived message (gajim icon blinking) and I select text in other program, then effect the same.
PS: Sorry for my poor english
Steps to reproduce
# -*- coding: utf-8 -*-
import gtk, time, types
def clipboard_text_received(clipb, event):
cl_text = clipb.wait_for_text()
if type(cl_text) != types.NoneType:
print "clipboard_text_received"
#end def
clipboard = gtk.clipboard_get(gtk.gdk.SELECTION_PRIMARY)
clipboard.connect("owner-change", clipboard_text_received)
gtk.main()
try to select text in history or in message window
Software versions
OS version: Debian 6.0
GTK version: 2.24.6
PyGTK version: 2.24.0