Commit 77f9654
committed
[GTK] Simplify _setBackground() and setForeground() in Control widget
The local variable "set" is always set to true in _setBackground() and
is therefore redundant. This is because some widgets might have a
default color, so it must always be set.
For setForeground(), the initial value of the local variable is
immediately overridden and can therefore be skipped as well.1 parent 18d4990 commit 77f9654
File tree
1 file changed
+6
-11
lines changed- bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets
1 file changed
+6
-11
lines changedLines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5187 | 5187 | | |
5188 | 5188 | | |
5189 | 5189 | | |
5190 | | - | |
5191 | 5190 | | |
5192 | 5191 | | |
5193 | 5192 | | |
5194 | 5193 | | |
5195 | 5194 | | |
5196 | | - | |
5197 | | - | |
5198 | | - | |
5199 | | - | |
5200 | | - | |
5201 | | - | |
5202 | | - | |
5203 | | - | |
| 5195 | + | |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
5204 | 5199 | | |
| 5200 | + | |
5205 | 5201 | | |
5206 | 5202 | | |
5207 | 5203 | | |
| |||
5539 | 5535 | | |
5540 | 5536 | | |
5541 | 5537 | | |
5542 | | - | |
5543 | | - | |
| 5538 | + | |
5544 | 5539 | | |
5545 | 5540 | | |
5546 | 5541 | | |
| |||
0 commit comments