* src/DataViews/_PedigreeView.py (_PersonWidget_base): Use other name for the drag_begin callback to not conflict with a gtk.Widget internal method. The DnD icon works now.
svn: r6213
This commit is contained in:
@ -102,13 +102,13 @@ class _PersonWidget_base:
|
||||
self.force_mouse_over = False
|
||||
if self.person:
|
||||
self.connect("drag_data_get", self.drag_data_get)
|
||||
#self.connect('drag_begin', self.drag_begin)
|
||||
self.connect('drag_begin', self.drag_begin_cb)
|
||||
self.drag_source_set(gtk.gdk.BUTTON1_MASK,
|
||||
[DdTargets.PERSON_LINK.target()]+
|
||||
[t.target() for t in DdTargets._all_text_types],
|
||||
gtk.gdk.ACTION_COPY)
|
||||
|
||||
def drag_begin(self, widget, context, data):
|
||||
def drag_begin_cb(self, widget, *data):
|
||||
self.drag_source_set_icon_stock('gramps-person')
|
||||
|
||||
def drag_data_get(self, widget, context, sel_data, info, time):
|
||||
|
Reference in New Issue
Block a user