aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMatthew Brush <matthewbrush@gmail.com>2011-03-28 18:39:37 -0700
committerMatthew Brush <matthewbrush@gmail.com>2011-03-28 18:39:37 -0700
commit4e75a5cdfd897af12af8c0e927ada7315da81de8 (patch)
tree510a55b537ee3983eb0e13651d15abc18f9b2704 /src
parent8d7937803d186c9a5ad3e256fc93503ba861ee78 (diff)
downloadscintilla-mirror-4e75a5cdfd897af12af8c0e927ada7315da81de8.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