Skip to content

Commit ee60a45

Browse files
N1k145akurtakov
authored andcommitted
[GTK] Background images behavior differs from Windows and Mac
Document the intended behavior Contributes to: #2290
1 parent fb51ca1 commit ee60a45

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
@@ -5172,6 +5172,9 @@ void setBackground () {
51725172
* <p>
51735173
* Note: This operation is a hint and may be overridden by the platform.
51745174
* </p>
5175+
* <p>
5176+
* Note: The background color can be overridden by setting a background image.
5177+
* </p>
51755178
* @param color the new color (or null)
51765179
*
51775180
* @exception IllegalArgumentException <ul>
@@ -5277,6 +5280,9 @@ void setBackgroundGdkRGBA (long handle, GdkRGBA rgba) {
52775280
* Note: This operation is a hint and may be overridden by the platform.
52785281
* For example, on Windows the background of a Button cannot be changed.
52795282
* </p>
5283+
* <p>
5284+
* Note: Setting a background image overrides a set background color.
5285+
* </p>
52805286
* @param image the new image (or null)
52815287
*
52825288
* @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)