From: Benny M. <ben...@gm...> - 2013-02-18 09:19:16
|
2013/2/12 Helge.Herz <Hel...@we...> > Hi all, > > if try to add a media file from any os directory into the media list view > of Gramps 4.0 using drag&drop then I get an error: > > 2013-02-12 09:56:54.447: ERROR: grampsapp.py: line 113: Unhandled > exception Traceback (most recent call last): > File > "D:\EclipseWorkspace\Gramps4.0nativPy2.7.3\gramps\plugins\view\mediaview.py", > line 188, in drag_data_received > files = sel_data.data.split('\n') > AttributeError: 'SelectionData' object has no attribute 'data' > > > (python.exe:4992): Gtk-WARNING **: You must override the default > 'drag_data_received' handler on GtkTreeView when using models that don't > support the GtkTreeDragDest interface and enabling drag-and-drop. The > simplest way to do this is to connect to 'drag_data_received' and call > g_signal_stop_emission_by_name() in your signal handler to prevent the > default handler from running. Look at the source code for the default > handler in gtktreeview.c to get an idea what your handler should do. > (gtktreeview.c is in the GTK source code.) If you're using GTK from a > language other than C, there may be a more natural way to override default > handlers, e.g. via derivation. > [Inferior 1 (process 4992) exited normally] > > > If I try the eclipse debugger: the application doesn't accept drop without > any additional information or error message. > > Here is my question: Is this a special issue of my Gtk version or is this > a general issue to be added to the bug tracker? > Drag and drop works for me on KDE from dolphin to Gramps I remember testing drag and drop code when doing the initial conversion. Note this bug though: https://bugzilla.gnome.org/show_bug.cgi?id=680640 So some parts had new stuff some old tuples, but I worked around that bug. Benny > - Helge > > > > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > > |