From 3b927c9db007a8d2b542b1ac58a729dbd8e96be0 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Mon, 27 Mar 2006 08:07:57 +0000 Subject: [PATCH] * 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 --- gramps2/ChangeLog | 4 ++++ gramps2/src/DataViews/_PedigreeView.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index c3c6ab547..d034831c0 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-03-27 Martin Hawlisch + * src/DataViews/_PedigreeView.py (_PersonWidget_base): Use other name for + the drag_begin callback to not conflict with a gtk.Widget internal method. + 2006-03-26 Don Allingham * src/DataViews/_PedigreeView.py: start of dnd-icon - not working yet * src/DataViews/_PersonView.py: set dnd icon diff --git a/gramps2/src/DataViews/_PedigreeView.py b/gramps2/src/DataViews/_PedigreeView.py index ba68b114a..d3732efe4 100644 --- a/gramps2/src/DataViews/_PedigreeView.py +++ b/gramps2/src/DataViews/_PedigreeView.py @@ -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):