Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 244274
Collapse All | Expand All

(-)Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java (+13 lines)
Lines 13178-13183 Link Here
13178
	}
13178
	}
13179
}
13179
}
13180
/**
13180
/**
13181
 * @param window cast=(GtkWindow *)
13182
 * @param setting cast=(gboolean)
13183
 */
13184
public static final native void _gtk_window_set_focus_on_map(int /*long*/ window, boolean setting);
13185
public static final void gtk_window_set_focus_on_map(int /*long*/ window,  boolean setting) {
13186
	lock.lock();
13187
	try {
13188
		_gtk_window_set_focus_on_map(window, setting);
13189
	} finally {
13190
		lock.unlock();
13191
	}
13192
}
13193
/**
13181
 * @method flags=dynamic
13194
 * @method flags=dynamic
13182
 * @param window cast=(GtkWindow *)
13195
 * @param window cast=(GtkWindow *)
13183
 * @param setting cast=(gboolean)
13196
 * @param setting cast=(gboolean)
(-)Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java (+3 lines)
Lines 687-692 Link Here
687
		if (isCustomResize ()) {
687
		if (isCustomResize ()) {
688
			OS.gtk_container_set_border_width (shellHandle, BORDER);
688
			OS.gtk_container_set_border_width (shellHandle, BORDER);
689
		} 
689
		} 
690
		if ((style & SWT.NO_FOCUS) != 0) {
691
			if (OS.GTK_VERSION >= OS.VERSION (2, 6, 0)) OS.gtk_window_set_focus_on_map (shellHandle, false);
692
		}
690
	} else {
693
	} else {
691
		vboxHandle = OS.gtk_bin_get_child (shellHandle);
694
		vboxHandle = OS.gtk_bin_get_child (shellHandle);
692
		if (vboxHandle == 0) error (SWT.ERROR_NO_HANDLES);
695
		if (vboxHandle == 0) error (SWT.ERROR_NO_HANDLES);

Return to bug 244274