diff options
author | Matthew Brush <matthewbrush@gmail.com> | 2011-03-28 18:39:37 -0700 |
---|---|---|
committer | Matthew Brush <matthewbrush@gmail.com> | 2011-03-28 18:39:37 -0700 |
commit | 176aacfd488b45e198bb88c219f3193515bbd822 (patch) | |
tree | 8a1ca56fd5407d9c64e663ef756affca0f27598d /src | |
parent | f88ad3864ccdf534e46cc004b377b2c08d318a04 (diff) | |
download | scintilla-mirror-176aacfd488b45e198bb88c219f3193515bbd822.tar.gz |
Fix X PRIMARY selection issue when Scintilla widget is unrealized/re-realized.
When the widget is unrealized (for ex. with gtk_container_remove), the
GdkWindows used in the widget are destroyed and when the widget is realized
again (for ex. with gtk_container_add), the GdkWindows are re-created. This
commit moves the gtk_selection_add_targets() calls into the RealizeThis
function, so that when the widget is realized again, the selection targets
are re-added on the new GdkWindow.
Also add gtk_selection_clear_targets() into UnRealizeThis to remove the
registered targets before the GdkWindow is destroyed.
References:
http://mail.gnome.org/archives/gtk-devel-list/2002-March/msg00078.html
http://mail.gnome.org/archives/anjuta-devel-list/2002-March/msg00066.html
http://git.geany.org/geany/tree/plugins/splitwindow.c#n310
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions