Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Signals for drag'n'drop added to new plots

This commit is contained in:
Reidar Strand Hagen 2006-05-02 12:38:00 +00:00
parent 4e4150236f
commit e363f1cd7d
1 changed files with 5 additions and 3 deletions

View File

@ -138,12 +138,14 @@ class SmallView (gtk.Table):
self.set_child(obj,loc[0],loc[1]) self.set_child(obj,loc[0],loc[1])
def set_view_listener(self, listener): def set_view_listener(self, listener):
self._listener = listener self._listener = listener
def set_child(self, child, col, row): def set_child(self, child, col, row):
# urg, this probably belongs somewhere else
child.drag_dest_set(gtk.DEST_DEFAULT_ALL, [("GTK_TREE_MODEL_ROW",gtk.TARGET_SAME_APP,7)],gtk.gdk.ACTION_LINK)
child.connect("drag-data-received",self.drag_received_by_view,child)
cur_widget = self.child_views[col][row] cur_widget = self.child_views[col][row]
cur_widget.disconnect(cur_widget.parent_signalling) cur_widget.disconnect(cur_widget.parent_signalling)
self.remove(cur_widget) self.remove(cur_widget)