diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/accessibility/AccessibleObject.d @ 108:b397a43d66d1

Updated swt linux for DMD 1.063 and latest Tango trunk.
author Jacob Carlborg <doob@me.com>
date Wed, 25 Aug 2010 23:08:27 +0200
parents ea8b884d85f6
children fb3aa8075988
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/accessibility/AccessibleObject.d	Sun Aug 22 18:53:29 2010 +0200
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/accessibility/AccessibleObject.d	Wed Aug 25 23:08:27 2010 +0200
@@ -157,7 +157,7 @@
         auto atkObject = cast(AtkObject*)obj;
         if (DEBUG) getDwtLogger().info (__FILE__, __LINE__, "-->atkComponent_get_extents");
         AccessibleObject object = getAccessibleObject (atkObject);
-        if (object is null) return 0;
+        if (object is null) return;
         *x = 0;
         *y = 0;
         *width = 0;
@@ -169,7 +169,7 @@
             }
         }
         AccessibleControlListener[] listeners = object.getControlListeners ();
-        if (listeners.length is 0) return 0;
+        if (listeners.length is 0) return;
 
         int parentX = *x, parentY = *y;
         int parentWidth = *width, parentHeight = *height;
@@ -211,7 +211,7 @@
         auto atkObject = cast(AtkObject*)obj;
         if (DEBUG) getDwtLogger().info (__FILE__, __LINE__, "-->atkComponent_get_position, object: {} x:{} y:{} coord:{}", atkObject, x, y, coord_type);
         AccessibleObject object = getAccessibleObject (atkObject);
-        if (object is null) return 0;
+        if (object is null) return;
         *x=0;
         *y=0;
         if (ATK.g_type_is_a (object.parentType, ATK_COMPONENT_TYPE)) {
@@ -221,7 +221,7 @@
             }
         }
         AccessibleControlListener[] listeners = object.getControlListeners ();
-        if (listeners.length is 0) return 0;
+        if (listeners.length is 0) return;
 
         int parentX, parentY;
         parentX = *x;
@@ -263,7 +263,7 @@
         auto atkObject = cast(AtkObject*)obj;
         if (DEBUG) getDwtLogger().info (__FILE__, __LINE__, "-->atkComponent_get_size");
         AccessibleObject object = getAccessibleObject (atkObject);
-        if (object is null) return 0;
+        if (object is null) return;
         *width=0;
         *height=0;
         if (ATK.g_type_is_a (object.parentType, ATK_COMPONENT_TYPE)) {
@@ -274,7 +274,7 @@
             }
         }
         AccessibleControlListener[] listeners = object.getControlListeners ();
-        if (listeners.length is 0) return 0;
+        if (listeners.length is 0) return;
 
         int parentWidth, parentHeight;
         parentWidth= *width;