+// XXX: merge with previous functions if possible, but not until after iPhone 5S ;P
+MSInstanceMessage1(CGPoint, SBDockIconListView, originForIconAtIndex, NSInteger, index) {
+ CGPoint origin(MSOldCall(0));
+
+ unsigned count([[self icons] count]), gap;
+ unsigned space(320 - 60 * count);
+
+ if (count >= 4)
+ gap = space / (count + 1);
+ else // I hate people who love Apple.
+ gap = 16;
+
+ origin.x = (space - gap * (count - 1)) / 2 + (60 + gap) * index;
+
+ return origin;
+}