Skip to content

Commit 22cdd76

Browse files
committed
Adapt method visibility in Control/Widget on Linux
1 parent 6e35dd8 commit 22cdd76

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -5974,6 +5974,10 @@ boolean setTabItemFocus (boolean next) {
59745974
return forceFocus ();
59755975
}
59765976

5977+
boolean hasBorder() {
5978+
return (style & SWT.BORDER) != 0;
5979+
}
5980+
59775981
/**
59785982
* Sets the base text direction (a.k.a. "paragraph direction") of the receiver,
59795983
* which must be one of the constants <code>SWT.LEFT_TO_RIGHT</code>,

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public abstract class Widget {
6767
public long handle;
6868
int style, state;
6969
Display display;
70-
EventTable eventTable;
70+
protected EventTable eventTable;
7171
Object data;
7272

7373
/* Global state flags
@@ -1188,7 +1188,7 @@ long filterProc(long xEvent, long gdkEvent, long data2) {
11881188
return 0;
11891189
}
11901190

1191-
boolean filters (int eventType) {
1191+
protected boolean filters(int eventType) {
11921192
return display.filters (eventType);
11931193
}
11941194

@@ -1324,7 +1324,7 @@ void hookEvents () {
13241324
*
13251325
* @see #isListening
13261326
*/
1327-
boolean hooks (int eventType) {
1327+
protected boolean hooks(int eventType) {
13281328
if (eventTable == null) return false;
13291329
return eventTable.hooks (eventType);
13301330
}
@@ -1618,11 +1618,11 @@ void sendEvent (Event event) {
16181618
}
16191619
}
16201620

1621-
void sendEvent (int eventType) {
1621+
protected void sendEvent(int eventType) {
16221622
sendEvent (eventType, null, true);
16231623
}
16241624

1625-
void sendEvent (int eventType, Event event) {
1625+
protected void sendEvent(int eventType, Event event) {
16261626
sendEvent (eventType, event, true);
16271627
}
16281628

0 commit comments

Comments
 (0)