Skip to content

Commit 7093603

Browse files
committed
[GTK] Background images behavior differs from Windows and Mac
Document the intended behavior Contributes to: #2290
1 parent 7f92e36 commit 7093603

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3547,6 +3547,9 @@ void setBackground () {
35473547
* <p>
35483548
* Note: This operation is a hint and may be overridden by the platform.
35493549
* </p>
3550+
* <p>
3551+
* Note: The background color can be overridden by setting a background image.
3552+
* </p>
35503553
* @param color the new color (or null)
35513554
*
35523555
* @exception IllegalArgumentException <ul>
@@ -3587,6 +3590,9 @@ private void _setBackground (Color color) {
35873590
* Note: This operation is a hint and may be overridden by the platform.
35883591
* For example, on Windows the background of a Button cannot be changed.
35893592
* </p>
3593+
* <p>
3594+
* Note: Setting a background image overrides a set background color.
3595+
* </p>
35903596
* @param image the new image (or null)
35913597
*
35923598
* @exception IllegalArgumentException <ul>

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5176,6 +5176,9 @@ void setBackground () {
51765176
* <p>
51775177
* Note: This operation is a hint and may be overridden by the platform.
51785178
* </p>
5179+
* <p>
5180+
* Note: The background color can be overridden by setting a background image.
5181+
* </p>
51795182
* @param color the new color (or null)
51805183
*
51815184
* @exception IllegalArgumentException <ul>
@@ -5281,6 +5284,9 @@ void setBackgroundGdkRGBA (long handle, GdkRGBA rgba) {
52815284
* Note: This operation is a hint and may be overridden by the platform.
52825285
* For example, on Windows the background of a Button cannot be changed.
52835286
* </p>
5287+
* <p>
5288+
* Note: Setting a background image overrides a set background color.
5289+
* </p>
52845290
* @param image the new image (or null)
52855291
*
52865292
* @exception IllegalArgumentException <ul>

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,6 +3072,9 @@ void setBackground () {
30723072
* <p>
30733073
* Note: This operation is a hint and may be overridden by the platform.
30743074
* </p>
3075+
* <p>
3076+
* Note: The background color can be overridden by setting a background image.
3077+
* </p>
30753078
* @param color the new color (or null)
30763079
*
30773080
* @exception IllegalArgumentException <ul>
@@ -3114,6 +3117,9 @@ private void _setBackground (Color color) {
31143117
* Note: This operation is a hint and may be overridden by the platform.
31153118
* For example, on Windows the background of a Button cannot be changed.
31163119
* </p>
3120+
* <p>
3121+
* Note: Setting a background image overrides a set background color.
3122+
* </p>
31173123
* @param image the new image (or null)
31183124
*
31193125
* @exception IllegalArgumentException <ul>

0 commit comments

Comments
 (0)