summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2003-06-24 20:38:05 +0000
committerChristophe Cornu <ccornu>2003-06-24 20:38:05 +0000
commita811cbf522e47f53bd72dac982b34192350cdfed (patch)
tree08d1fa62e36dfd9071335082263d118a5f01c3f8
parentcbeaaaeb6067980070dd8e738161901405d1773f (diff)
downloadeclipse.platform.swt-a811cbf522e47f53bd72dac982b34192350cdfed.tar.gz
eclipse.platform.swt-a811cbf522e47f53bd72dac982b34192350cdfed.tar.xz
eclipse.platform.swt-a811cbf522e47f53bd72dac982b34192350cdfed.zip
PR38975
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
index 016dc529ec..43f1ead7b5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
@@ -761,6 +761,7 @@ public int getItemHeight () {
if (itemCount == 0) return 15;
GdkRectangle rect = new GdkRectangle ();
int path = OS.gtk_tree_path_new_first ();
+ OS.gtk_widget_realize (handle);
OS.gtk_tree_view_get_cell_area (handle, path, 0, rect);
OS.gtk_tree_path_free (path);
return rect.height;