Signals for drag'n'drop added to new plots
This commit is contained in:
parent
4e4150236f
commit
e363f1cd7d
|
@ -138,12 +138,14 @@ class SmallView (gtk.Table):
|
|||
self.set_child(obj,loc[0],loc[1])
|
||||
|
||||
|
||||
|
||||
|
||||
def set_view_listener(self, 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.disconnect(cur_widget.parent_signalling)
|
||||
self.remove(cur_widget)
|
||||
|
|
Reference in New Issue