tunblick/MenuController.m

changeset 23
d783b433388d
parent 7
0c0e4024a98e
equal deleted inserted replaced
2:45052ae5ac25 3:e0f2b5820a88
51 if (systemIsTigerOrNewer()) { 51 if (systemIsTigerOrNewer()) {
52 priority = MIN(priority, 2147483646); // found by experimenting - dirk 52 priority = MIN(priority, 2147483646); // found by experimenting - dirk
53 } 53 }
54 54
55 if (!theItem) { 55 if (!theItem) {
56 theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: priority] retain]; 56 theItem = [[bar statusItemWithLength: NSVariableStatusItemLength] retain];
57 //theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: 0] retain]; 57 //theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: 0] retain];
58 } 58 }
59 // Dirk: For Tiger and up, re-insert item to place it correctly. 59 // Dirk: For Tiger and up, re-insert item to place it correctly.
60 if ([bar respondsToSelector: @selector(_insertStatusItem:withPriority:)]) { 60 if ([bar respondsToSelector: @selector(_insertStatusItem:withPriority:)]) {
61 [bar removeStatusItem: theItem]; 61 [bar removeStatusItem: theItem];

mercurial