]> git.saurik.com Git - wxWidgets.git/commit - src/gtk/clipbrd.cpp
Don't connect to the same signal multiple times in wxGTK wxClipboard.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Feb 2013 12:40:13 +0000 (12:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Feb 2013 12:40:13 +0000 (12:40 +0000)
commitbdffa920040190876d7241f5e2b8fe489d804b9c
treea6e487a409017b69a56a9daa2b70bf3e170fabe2
parent116d7e58056decdd150cff720ae30abf734935d9
Don't connect to the same signal multiple times in wxGTK wxClipboard.

We called g_signal_connect("selection_get") in wxClipboard code each time its
AddData() method was called. This resulted in progressive but noticeable
slowdown as the handler was called more and more times.

Only connect to the handler once now.

Closes #15038.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/gtk/clipbrd.h
src/gtk/clipbrd.cpp