if (OS.GTK_VERSION >= OS.VERSION (3, 8, 0) && fixedHandle != 0 && handle != 0 && getVisible() && !OS.gtk_widget_get_visible(topHandle) //if SWT State is not HIDDEN, but widget is hidden on GTK side. && topHandle == fixedHandle && width > 0 && height > 0 && resize) { OS.gtk_widget_show(topHandle);
if (OS.GTK_VERSION >= OS.VERSION (3, 8, 0) && fixedHandle != 0 && handle != 0 && getVisible() && !OS.gtk_widget_get_visible(topHandle) //if SWT State is not HIDDEN, but widget is hidden on GTK side. && topHandle == fixedHandle && width > 0 && height > 0 && resize) { OS.gtk_widget_show(topHandle);
if (OS.GTK_VERSION >= OS.VERSION (3, 8, 0) && fixedHandle != 0 && handle != 0 && getVisible() && !OS.gtk_widget_get_visible(topHandle) //if SWT State is not HIDDEN, but widget is hidden on GTK side. && topHandle == fixedHandle && width > 0 && height > 0 && resize) { OS.gtk_widget_show(topHandle);
void updateParent (boolean visible) { if (window != null) { if (visible) { if (parent != null && parent.getVisible ()) { NSWindow parentWindow = display.modalPanel != null ? display.modalPanel : parentWindow (); parentWindow.addChildWindow (window, OS.NSWindowAbove); /** * Feature in Cocoa: When a window is added as a child window, * its window level resets to its parent's window level. So, we * have to set the level for ON_TOP child window again. */ if ((style & SWT.ON_TOP) != 0) { window.setLevel(OS.NSStatusWindowLevel); } } } else { NSWindow parentWindow = window.parentWindow (); if (parentWindow != null) parentWindow.removeChildWindow (window); } } Shell [] shells = getShells (); for (int i = 0; i < shells.length; i++) { Shell shell = shells [i]; if (shell.parent == this && shell.getVisible ()) { shell.updateParent (visible); } } }