Community
Participate
Working Groups
This patch omits use of GTK_RANGE_SLIDER_END and GTK_RANGE_SLIDER_START deprecated constants for newer GTK+ versions: http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gtk_slider
Move the helpers to ScrollBar.java. They are not needed anywhere else. Move the creation of the int arrays in the helpers inside of the if statement. They are not needed for the old code path.
Done: http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gtk_slider&id=4433240319dc2632482852019fe0de67bad7b5b0 Thank you for fast review.
I changed the helper so that it matches the new function gtk_range_get_slider_range() (instead of the old accessors). It looks better that way. Fixed http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a61caa1cfed4d2ec7b9bccff2e9d74f32593118d