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.hidden_buffers:
blist.set_slot(i, blist.hidden_buffers[0])
else:
elif active_slot.window:
blist.set_slot(i, active_slot.window.buffer)
else:
blist.set_slot(i, None)
assert blist.slots[i].window is not None
def close_buffer_by_name(self, name):
if self.has_buffer_name(name):

View File

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