diff options
author | Alexander Kurtakov <akurtako@redhat.com> | 2013-07-11 16:21:18 +0300 |
---|---|---|
committer | Alexander Kurtakov <akurtako@redhat.com> | 2013-07-11 16:21:18 +0300 |
commit | 3bd130c31bf829e2454963f915aed0e3e9db5b5b (patch) | |
tree | d5b0a5796326f9bf04e6205af41ff8e72764b3f0 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c | |
parent | b2aec83df14dd2f80829ffc496ee04062a7a05e2 (diff) | |
download | eclipse.platform.swt-3bd130c31bf829e2454963f915aed0e3e9db5b5b.tar.gz eclipse.platform.swt-3bd130c31bf829e2454963f915aed0e3e9db5b5b.tar.xz eclipse.platform.swt-3bd130c31bf829e2454963f915aed0e3e9db5b5b.zip |
Use gtk_text_buffer_select_range instead of gtk_text_buffer_move_mark.
gtk_text_buffer_select_range exists since GTK 2.4 and is an optimized
way to do selection as reduces GTK recalculations. It has additional
benefit for SWT as it reduces the JNI overhead too - 3-4 function call
become a single one.
Bug 412758 .
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c index 392de0a764..92680c1b34 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c @@ -1124,9 +1124,9 @@ char * OS_nativeFunctionNames[] = { #else "_1gtk_1text_1buffer_1insert__J_3B_3BI", #endif - "_1gtk_1text_1buffer_1move_1mark", "_1gtk_1text_1buffer_1paste_1clipboard", "_1gtk_1text_1buffer_1place_1cursor", + "_1gtk_1text_1buffer_1select_1range", "_1gtk_1text_1buffer_1set_1text", "_1gtk_1text_1iter_1get_1line", "_1gtk_1text_1iter_1get_1offset", |