Community
Participate
Working Groups
Build Identifier: R3_7_1 When building SWT with GTK+ 3.x It gives warnings on deprecated methods such as gdk_gc_set_foreground, gdk_draw_layout, gdk_draw_polygon. These deprecated methods are used in ToolTip Widget's gtk_button_press_event(). This patch avoids use of deprecated methods and uses Cairo Graphics library instead: http://fedorapeople.org/gitweb?p=aspektor/public_git/eclipse.platform.swt.git;a=commit;h=f0e0e2f64935b5fe3cda600c1457e533ca45e176 Reproducible: Always Steps to Reproduce: 1. Uncomment GDK_DISABLE_DEPRECATED in org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h 2. Build SWT
We need a couple of changes before this patch can be release: 1) Remove line#484. Instead of turning off anti-aliasing, it is better to add 0.5 to the polygon coordinates so that vertical and horizontal lines are crisp when stroking a path. 2) Do not 1 to the polygon coordinates in line#487, add 0.5 (see above) 3) please try to keep the same formatting of the surround code. It is not a big deal, but it helps by keeping the code easy to read by other members of the team. We should have formatting settings for the SWT projects, but that never got done. For example: if(OS.USE_CAIRO) { should be if (OS.USE_CAIRO) {
Thank for your comments. I have applied changes you asked and new patch can be found here: http://fedorapeople.org/gitweb?p=aspektor/public_git/eclipse.platform.swt.git;a=commit;h=ba16592ebf0e6643eb458c41e5432c8aee15374a If you have any other concerns, please let me know, Regards, Anatoly
Thanks! Pushed to eclipse.org. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=9a3f1e08acae6a5f050926a48e53d50c103a85e9