Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2019-11-13 17:49:01 +0000
committerEric Williams2019-11-13 17:49:01 +0000
commit3fbf2d39684e04fc7e8bbdc4259e3e003199caa4 (patch)
tree105f009f03fcd7d1b3f6e519d1cbc6f29a7d6fa6
parent51ebfbb21622c3da276f6289a7212c02a38df657 (diff)
downloadeclipse.platform.swt-3fbf2d39684e04fc7e8bbdc4259e3e003199caa4.tar.gz
eclipse.platform.swt-3fbf2d39684e04fc7e8bbdc4259e3e003199caa4.tar.xz
eclipse.platform.swt-3fbf2d39684e04fc7e8bbdc4259e3e003199caa4.zip
Bug 542621: [GTK] Unhandled event loop exception when running Health Center
Set Table.ignoreSize to true in order to block out the overridden GtkCellRendererClass->get_preferred_width callback. Tested on GTK3.24 and Fedora 31. No AllNonBrowser JUnit tests fail. Change-Id: Ib8d4829c7949931b8c18af7c86e66fe90e202265 Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java
index d67efbbcc9..2b198da4e3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java
@@ -419,7 +419,9 @@ Rectangle getBoundsInPixels (int index) {
GTK.gtk_tree_view_get_cell_area (parentHandle, path, column, rect);
GTK.gtk_tree_path_free (path);
int [] cw = new int [1], ch = new int [1];
+ parent.ignoreSize = true;
GTK.gtk_tree_view_column_cell_get_size (column, null, null, null, cw, ch);
+ parent.ignoreSize = false;
rect.height = ch [0];
if ((parent.getStyle () & SWT.MIRRORED) != 0) rect.x = parent.getClientWidth () - rect.width - rect.x;

Back to the top