branch : pmacs2
This commit is contained in:
moculus 2009-03-26 01:28:38 +00:00
parent 9adcf939e9
commit a108be50c7
2 changed files with 3 additions and 2 deletions

View File

@ -329,8 +329,10 @@ class Application(object):
if blist.slots[i].is_empty(): if blist.slots[i].is_empty():
if blist.hidden_buffers: if blist.hidden_buffers:
blist.set_slot(i, blist.hidden_buffers[0]) blist.set_slot(i, blist.hidden_buffers[0])
else: elif active_slot.window:
blist.set_slot(i, active_slot.window.buffer) blist.set_slot(i, active_slot.window.buffer)
else:
blist.set_slot(i, None)
assert blist.slots[i].window is not None assert blist.slots[i].window is not None
def close_buffer_by_name(self, name): def close_buffer_by_name(self, name):
if self.has_buffer_name(name): if self.has_buffer_name(name):

View File

@ -17,7 +17,6 @@ class Slot(object):
self.window.set_size(self.width, self.height) self.window.set_size(self.width, self.height)
def set(self, w): def set(self, w):
self.window = w self.window = w
#self.resize(self.height, self.width, self.y_offset, self.x_offset)
w.set_size(self.width, self.height) w.set_size(self.width, self.height)
def unset(self): def unset(self):
if not self.is_empty(): if not self.is_empty():