diff options
author | Billy Biggs <bbiggs> | 2005-06-07 19:08:56 +0000 |
---|---|---|
committer | Billy Biggs <bbiggs> | 2005-06-07 19:08:56 +0000 |
commit | 59c8377857ca2f31f685636bd996bd9200feaf43 (patch) | |
tree | 0c7b8555a178eafff1704dc028f102fe9947e057 | |
parent | 554c00a18df0d0c1a87f83c614fa4bb098dc894f (diff) | |
download | eclipse.platform.swt-59c8377857ca2f31f685636bd996bd9200feaf43.tar.gz eclipse.platform.swt-59c8377857ca2f31f685636bd996bd9200feaf43.tar.xz eclipse.platform.swt-59c8377857ca2f31f685636bd996bd9200feaf43.zip |
98802
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 1 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index b693181159..f2c0ea9ab4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -1484,7 +1484,6 @@ public boolean forceFocus () { } boolean forceFocus (int /*long*/ focusHandle) { - if (!OS.GTK_WIDGET_VISIBLE (topHandle ())) return false; OS.gtk_widget_grab_focus (focusHandle); Shell shell = getShell (); int /*long*/ shellHandle = shell.shellHandle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java index b769fc5c20..556bf56e34 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java @@ -793,7 +793,6 @@ public void setEnabled (boolean enabled) { boolean setFocus () { if ((style & SWT.SEPARATOR) != 0) return false; - if (!OS.GTK_WIDGET_VISIBLE (parent.topHandle ())) return false; if (!OS.gtk_widget_get_child_visible (handle)) return false; OS.GTK_WIDGET_SET_FLAGS (handle, OS.GTK_CAN_FOCUS); OS.gtk_widget_grab_focus (handle); |