diff options
author | Steve Northover <steve> | 2005-02-24 19:41:29 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-02-24 19:41:29 +0000 |
commit | a6e0eb659e3ed74ca901c9b57e5bffc959e030d2 (patch) | |
tree | 879e2513626982b769b8c89c05288158d4d40fc3 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse | |
parent | 08fbeb895f4957d80ed94a3979b67f2598564267 (diff) | |
download | eclipse.platform.swt-a6e0eb659e3ed74ca901c9b57e5bffc959e030d2.tar.gz eclipse.platform.swt-a6e0eb659e3ed74ca901c9b57e5bffc959e030d2.tar.xz eclipse.platform.swt-a6e0eb659e3ed74ca901c9b57e5bffc959e030d2.zip |
85634
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 1ec508b4d5..a1cc4f2bad 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 @@ -658,6 +658,7 @@ public void removeSelectionListener(SelectionListener listener) { void resizeControl () { if (control != null && !control.isDisposed ()) { + if (separatorHandle != 0) OS.gtk_widget_hide (separatorHandle); /* * Set the size and location of the control * separately to minimize flashing in the @@ -672,6 +673,8 @@ void resizeControl () { rect.x = itemRect.x + (itemRect.width - rect.width) / 2; rect.y = itemRect.y + (itemRect.height - rect.height) / 2; control.setLocation (rect.x, rect.y); + } else { + if (separatorHandle != 0) OS.gtk_widget_show (separatorHandle); } } |