Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2006-07-25 21:42:37 +0000
committerSteve Northover2006-07-25 21:42:37 +0000
commit0dc67b2867e43f3fa47a9aec9736e5b2f47d75b7 (patch)
tree9667f41710d288f9e418788b0576281e166d4e69 /bundles
parent228a28762284d32f7d8e29825337f54f9b2988e7 (diff)
downloadeclipse.platform.swt-0dc67b2867e43f3fa47a9aec9736e5b2f47d75b7.tar.gz
eclipse.platform.swt-0dc67b2867e43f3fa47a9aec9736e5b2f47d75b7.tar.xz
eclipse.platform.swt-0dc67b2867e43f3fa47a9aec9736e5b2f47d75b7.zip
141254 - Linux GTK and TableEditor Assertion
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java2
1 files changed, 2 insertions, 0 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 aa9047e7de..aa4ee68349 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
@@ -1589,6 +1589,8 @@ public boolean forceFocus () {
}
boolean forceFocus (int /*long*/ focusHandle) {
+ /* When the control is zero sized it must be realized */
+ OS.gtk_widget_realize (focusHandle);
OS.gtk_widget_grab_focus (focusHandle);
Shell shell = getShell ();
int /*long*/ shellHandle = shell.shellHandle;

Back to the top