Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-02-15v4924r24v4924r24bI20190215-1800genie.releng1-1/+1
2019-02-15Bug 543933 - Build javadocs with Java 11Alexander Kurtakov12-9/+15
Fix javadoc warnings catched by Java 11 tool with XDoclint:html. Change-Id: I77b68f3cd57852e88350235f8e60fb95cee60f4c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-02-15v4924r24v4924r24aI20190215-0630genie.releng1-1/+1
2019-02-15Bug 543933 - Build javadocs with Java 11Alexander Kurtakov96-214/+224
Fix warnings as catched by Java 11 tool. (take 2) Change-Id: Icdfdf28ef7e593373f813a16285ebd3a97e808ce Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-02-14v4924r24v4924r24I20190215-0055I20190214-1800genie.releng1-1/+1
2019-02-14v4924r24genie.releng2-3/+3
2019-02-14Bug 542777 - Mouse Navigation for Styled TextLaurent Caron3-1/+453
Change-Id: I5d232eb60ef05ec5337f586a6bd0ffbb13a69805 Signed-off-by: Laurent CARON <laurent.caron@gmail.com>
2019-02-14Bug 544114 - [GTK4] Replace 2BUTTON and 3BUTTON eventsXi Yan5-27/+0
Removing useless native gtk_gesture_multi_press_set_area binding. Change-Id: Iab750cb8ca0e024efff3d46526d3ea2379aa5f8f Signed-off-by: Xi Yan <xixiyan@redhat.com>
2019-02-14Prefer usage of Boolean.parseBooleanLars Vogel1-1/+1
Change-Id: I907cf999e2f2daeab8f0d5ae86ac521b93b0adcd Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-02-14Bug 541256 - Warnings: Gtk-WARNING **: Allocating size to SwtFixedSimeon Andreev2-0/+12
With changes for bug 533469 we started to observe new GTK+ warnings on the standard error. In particular, widget allocation was set without retrieving preferred widget size. To GTK+, this is a potential programming error and so GTK+ emits a warning. For SWT, this warning is not relevant, since SWT must control widget sizes at all times. This change adds calls to gtk_widget_get_preferred_size(), which have previously been used to prevent the GTK+ warnings. Since the code which sets widget allocation now also asks the widget preferred size (which is very often irrelevant for SWT), the GTK+ warnings are gone. Change-Id: Ie91ccb26dd8d86646d0e30819e6a240244d1d7fe Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2019-02-13v4924r23v4924r23Y20190213-2200I20190213-1800genie.releng1-1/+1
2019-02-13v4924r23genie.releng2-3/+3
2019-02-13Bug 543949: Orca's flat review mode can not be usedEric Williams3-132/+91
Not all SwtFixedAccessible instances have corresponding AccessibleObjects, meaning the implementation of ATK API is SwtFixedAccessible's responsibility to handle natively. Most ATK API like AtkEditableText or AtkAction doesn't need to worry about this since those API's are specialized for certain functions. However AtkComponent covers geometry which is pretty important information for a container accessibility implementation. The fix: if no AccessibleObject exists, calculate the extents/size/position manually. We can do this even with scaling by using JNI to call Java level methods like toDisplay. Change-Id: Ib54821fc006eedc039dc9dc4b3dc83ddc5cc58ab Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-13Bug 543933 - Build javadocs with Java 11Alexander Kurtakov67-112/+75
Fix warnings as catched by Java 11 tool. Change-Id: Ia736e7de2e575c01de9fda2ef514d2c25d664a88 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-02-13Bug 544114 - [GTK4] Replace 2BUTTON and 3BUTTON eventsXi Yan13-1/+231
- 2BUTTON used to signal double click events, this is replaced by GtkGestureMultiPress controller for handling double click events whenever n_press equals 2. - 3BUTTON constants in GTK3 used for early return of button_click handlers, this is ignored by default on GTK4. Tested GTK3 with Mouse Listeners in ControlExample, Bug543984_GTK4EventTypeConstants on GTK4, ButtonTab double click BG/FG dialog in ControlExample on GTK4. Change-Id: I63bdb1a205bb40e478dea74dd99de97ddb66716f Signed-off-by: Xi Yan <xixiyan@redhat.com>
2019-02-12v4924r22v4924r22aY20190213-0305I20190212-1800genie.releng1-1/+1
2019-02-12Bug 544365 - [Mac] Native dialogs should use dark appearance in EclipseLakshmi Priya Shanmugam2-5/+11
Set the dark/light appearance to the NSApplication directly so that we don't have to set the appearance to each NSPanel for the SWT dialogs such as FileDialog, Color/Font Dialogs, etc. Change-Id: I7cb65292b226971a68c41d9f649b978b4b8ed6fc
2019-02-11v4924r22v4924r22I20190211-1800genie.releng1-1/+1
2019-02-11v4924r22genie.releng2-3/+3
2019-02-11Bug 544198: atk_text_get_text() seems brokenEric Williams1-1/+0
Remove bad return statement from swt_fixed_accessible_text_get_text(). Change-Id: Iaa9997a14b26c95013169b5f53e1e0307655eb35 Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-11Bug 544296: [Gtk] Regression: KeyEvent keyCode no longer setEric Williams1-8/+9
Check if ptr is also non-zero as it will hold the result of gtk_get_current_event() in the event that the initial event is 0. Change-Id: Idf477d48868919d4aa21ae1eec12525ca316856e Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-11Bug 538487 - [HiDPI] GC.copyArea() and Image.getImageData() behaveSravan Kumar Lakkimsetti1-10/+47
differently (and buggy) MacOS 10.13.6. Change-Id: I3e4ef6b3672dc44ec401a9e139ba3081170a23c1 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
2019-02-09v4924r21v4924r21cI20190210-2135I20190210-1800I20190209-1800genie.releng1-3/+2
2019-02-09Remove empty lines from o.e.swt pom.xml.Alexander Kurtakov1-80/+3
Change-Id: I20f79df4b97f3b0b9cf5f26a89cbd4fd38233979 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-02-08v4924r21v4924r21bI20190208-1800genie.releng1-1/+1
2019-02-08Bug 544282 - [GTK3] apply the optimization for Tree.setItemCount(0) tooAndrey Loskutov3-2/+61
Also added some more tests. Change-Id: Ic14ff6e0f7f694c8a1756e34a7b17986301213d4 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2019-02-08Bug 515849: Enable Device.DEBUG via SWT_DEBUG=1 env variableEric Williams2-0/+14
Enable Device.DEBUG via SWT_DEBUG=1. Change-Id: Ie3e4064484cd8546072b348380e05830cb31b6c5 Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-08Bug 544282 - [GTK3] org.eclipse.swt.widgets.Table.remove(int, int) isAndrey Loskutov1-1/+5
extremely slow In case we set table items count to zero, it is way faster to use GTK.gtk_list_store_clear() instead of iterating over every element via GTK.gtk_list_store_remove(). Change-Id: I0ae296b40b05fcdfcecc1d2d8a3fb4885d9c9b64 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2019-02-08v4924r21v4924r21aY20190208-0505genie.releng1-1/+1
2019-02-08Bug 472417 - Typo in examples_texteditor.propertiesAlexander Kurtakov3-4/+4
Fix typo. Change-Id: I45160685a2197f112adb99d426dad67f58538f23 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-02-07v4924r21v4924r21I20190207-1800genie.releng1-1/+1
2019-02-07v4924r21genie.releng2-3/+3
2019-02-07Bug 543908: GTK4] Get ControlExample to launch and run on GTK4Eric Williams17-38/+155
Add proper GtkCssProvider API for GTK4 and adjust SwtFixed->measure to produce properly sized containers. Also make some small adjustments so that the DateTime tab works properly. Change-Id: I3dea2ec74788f11131187056a63e7e1505e9c2a5 Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-06v4924r20v4924r20aY20190206-2200I20190206-1800genie.releng1-1/+1
2019-02-06Bug 542940 - Method setEditor of class TreeEditor raises javaXi Yan1-5/+0
nullException Stop hiding Text widget in gtk_draw. Change-Id: I1f2cd9260b65bcab03a27c4431822059f2e238c5 Signed-off-by: Xi Yan <xixiyan@redhat.com>
2019-02-05v4924r20v4924r20I20190205-1800genie.releng1-1/+1
2019-02-05v4924r20genie.releng2-3/+3
2019-02-05Bug 543908: [GTK4] Get ControlExample to launch and run on GTK4Eric Williams7-8/+38
Fix TabFolder display issue, as well as pixbuf crashes due to cairo_image_surface_create() being fed incorrect parameters. Snippet76 no works as expected on GTK4 just as it does on GTK3. Change-Id: Ie1d3504eca532fdb9e33763c98434e33ca53be01 Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-05Bug 544140: Endless calls to Tree.rendererGetPreferredWidthProc afterEric Williams3-8/+51
clicking on editable PropertySheetPage tree cell Only re-draw the headers of a Table/Tree widget when a scroll event has occurred. This narrows the use of gtk_widget_queue_draw() to the specific case that needs it. It also avoids triggering native callbacks as the enter Table/Tree does not need to be re-drawn. Tested using the Bug535978_TableEditorHeader snippet as well as the snippet attached to this bug report. A cursory check in the IDE yields no regressions. Change-Id: Ia1d4bdf9a55f83658b13cc8c64219efbd1175097 Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-05Bug 534923 - Cocoa: objc_msgSend is called incorrectly from os.cThomas Wolf4-353/+383
C calling conventions may be different for vararg and non-vararg functions. Change the generated code to not cast vararg functions to function pointers with non-vararg profiles. Instead annotate the objc_msgSend* functions in MacGenerator as "fixedargs=2" (meaning: it's a vararg function with two fixed parameters), and change the NativesGenerator to use this annotation to generate a cast to a function pointer with a vararg profile with that many fixed parameters. "fixedargs=0" or absence of the "fixedargs" annotation means all parameters are fixed; there are no varargs. The behavior in this case in unchanged. The casting cannot be avoided altogether; the objc_msgSend*_stret functions _must_ be casted. Also use BOOL as return type for the cast of objc_msgSendSuper_bool, not just for objc_msgSend_bool. Verified that casting to a profile with varargs indeed makes the compiler generate the assembly code that on x86_64 does clear register %al, as it should per the ABI spec.[1] The old code generated did not do this. (Verified with with cc -S using Apple's clang and inspecting the assembler output; on OS X 10.14.2.) Ran the new MacGenerator to regenerate the Cocoa OS.java, then ran the new JNIGenerator to regenerate the Cocoa os.c. Re-built the binary library. Set up an Eclipse using this rebuilt library and ran all SWT tests. All tests passed locally. [1] https://software.intel.com/sites/default/files/article/402129/mpx-linux64-abi.pdf Change-Id: Ib03226ad9ecdf4bfcf789cd2b42f592b9a2b9021 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2019-02-04v4924r19v4924r19Y20190205-0115I20190204-1800genie.releng1-1/+1
2019-02-04v4924r19genie.releng2-3/+3
2019-02-04Bug 543989: [GTK4] De-couple GtkEntry calls from GtkSpinButtonEric Williams7-36/+83
Separate GtkSpinButton from the actual GtkEntry handle inside of it before calling gtk_entry_* functions. Tested on GTK4 using Snippet184, Snippet190, and Snippet310. Change-Id: I7d175ce836d65f7a67755ff6b3fdff5f84cc0faf Signed-off-by: Eric Williams <ericwill@redhat.com>
2019-02-04Bug 543984 - [GTK4] Adapt to GdkEventType constants changesXi Yan21-20/+185
- Add new GdkEventType constant values - Add pre-processing function to fix different GdkEventType values on GTK4 - Adapt all GdkEventType to use correct constant on GTK3 and GTK4 - Guard connecting to event signal in Shell to avoid duplicate mouse press/release events. Tested on GTK3 with ControlExample Listeners. Tested with attached snippet on GTK4. Change-Id: I43f139a0b8d8b41820c64189767377ebb6fc9db5 Signed-off-by: Xi Yan <xixiyan@redhat.com>
2019-02-04Bug 139791 - [Win32] GC.fillPolygon paints at wrong coordinates whenNiraj Modi1-1/+10
GDI+ is used Change-Id: I9a0e965dd43d6325e759ddeefa2ea4274a43caba Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-02-04Bug 48020 - added range checks in StyledTextRenderer.textChanging()Andrey Loskutov1-2/+8
This should hopefully give some hints where the wrong data is coming from. Change-Id: I64f2a125738e16d5a952fba1b8f552f3f50b7ce4 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2019-02-04Bug 544085 - [JNI] Insert correct newline character into generated codeNikita Nemkin1-2/+2
Change-Id: I167eb7bcdeda257af27a01da1c053778fe7a3786 Signed-off-by: Nikita Nemkin <nikita@nemkin.ru>
2019-02-02v4924r18v4924r18bI20190203-1800I20190202-1800genie.releng1-1/+1
2019-02-01Revert "Bug 501491 - Draw close button with antialiasing."Andrey Loskutov1-3/+0
This reverts commit b96722424ff908aba3b0ce5a2b173f5080b3c281. Change-Id: I3c3d5f4d4794f866261f62b4f458b7eadb064b54
2019-01-31v4924r18v4924r18aY20190201-0030I20190201-1800I20190201-0600I20190131-1800genie.releng1-1/+1

Back to the top