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 304780
Collapse All | Expand All

(-)Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleFactory.java (-1 / +6 lines)
Lines 283-289 Link Here
283
	}
283
	}
284
	
284
	
285
	static int /*long*/ getParentType (int /*long*/ widgetType) {
285
	static int /*long*/ getParentType (int /*long*/ widgetType) {
286
		return ((LONG) Factories.get(new LONG(widgetType))).value;
286
		LONG type = null;
287
		while (widgetType != 0 && (type = (LONG)Factories.get(new LONG(widgetType))) == null) {
288
			widgetType = OS.g_type_parent (widgetType);
289
		}
290
		if (type == null) return 0;
291
		return ((LONG)type).value;
287
	}
292
	}
288
293
289
	static int /*long*/ atkObjectFactory_create_accessible (int /*long*/ widget) {
294
	static int /*long*/ atkObjectFactory_create_accessible (int /*long*/ widget) {

Return to bug 304780