Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2015-01-22 16:14:50 +0000
committerAlexander Kurtakov2015-01-27 08:12:21 +0000
commit55c9cd875acc9280e4f2ab641d7c5298f289e7f2 (patch)
tree7ea8642c4fe1889e258116e0224d2d70e847f644
parent57d6c7e9ace75c6a8c830dacb23ac34a3a74ccbc (diff)
downloadeclipse.platform.swt-55c9cd875acc9280e4f2ab641d7c5298f289e7f2.tar.gz
eclipse.platform.swt-55c9cd875acc9280e4f2ab641d7c5298f289e7f2.tar.xz
eclipse.platform.swt-55c9cd875acc9280e4f2ab641d7c5298f289e7f2.zip
Bug 457793 - Adding ExpandItem to ExpandBar causes Gtk-CRITICAL message
fixes the critical error message: (SWT:6910): Gtk-CRITICAL **: gtk_widget_map: assertion 'gtk_widget_get_visible (widget)' faileddd Change-Id: I8441b25935306a19a714c4e0c7200e232c2f2dfd Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java
index 3cd1e851bb..c599913e2c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java
@@ -618,12 +618,14 @@ public void setText (String string) {
}
void showWidget (int index) {
- OS.gtk_widget_show (handle);
- OS.gtk_widget_show (clientHandle);
- OS.gtk_container_add (parent.handle, handle);
- OS.gtk_box_set_child_packing (parent.handle, handle, false, false, 0, OS.GTK_PACK_START);
- if (boxHandle != 0) OS.gtk_widget_show (boxHandle);
- if (labelHandle != 0) OS.gtk_widget_show (labelHandle);
+ OS.gtk_widget_show (handle);
+ OS.gtk_widget_show (clientHandle);
+ if (labelHandle != 0)
+ OS.gtk_widget_show (labelHandle);
+ if (boxHandle != 0)
+ OS.gtk_widget_show (boxHandle);
+ OS.gtk_container_add (parent.handle, handle);
+ OS.gtk_box_set_child_packing (parent.handle, handle, false, false, 0, OS.GTK_PACK_START);
}
@Override

Back to the top