* fluent: removed old, non-working code.

This commit is contained in:
2006-04-20 10:34:50 +00:00
parent 6a4ae8ecf1
commit f394610724
3 changed files with 23 additions and 29 deletions

View File

@@ -29,10 +29,6 @@ class MainView (gtk.Notebook):
self.append_page(self.large_view)
self.set_current_page(0)
# Set current view to the upper left view.
self.current_view = self.small_view.get_view(0, 0)
self.current_view.mark_active(True)
def goto_small(self):
if self.get_current_page() == 0:
return None
@@ -77,10 +73,14 @@ class SmallView (gtk.Table):
def set_child(self, child, col, row):
cur_widget = self.child_views[col][row]
cur_widget.disconnect(cur_widget.parent_signalling)
print cur_widget
self.remove(cur_widget)
self.attach(child, col, col+1, row, row+1)
child.parent_signalling = child.connect('button_press_event', self.__view_button_event__)
self.child_views[col][row] = child
if cur_widget.active:
child.mark_active(True)
cur_widget.mark_active(False)
child.show()
def borrow_current(self):
@@ -169,6 +169,7 @@ class Plot (gtk.Frame):
self.mark_active(False)
self.connect('button_press_event', self.on_button_press)
self.sel_obj = None
self.active = False
if project!=None: #its not an Emptyview
project.attach(self,'selection_update')
@@ -184,6 +185,7 @@ class Plot (gtk.Frame):
self.set_shadow_type(gtk.SHADOW_IN)
else:
self.set_shadow_type(gtk.SHADOW_OUT)
self.active = active
def update(self,project,key):
pass