GTK3: allow drag and drop of files on mediaview, fix metadata gramplet
svn: r20106
This commit is contained in:
parent
f21dd31e91
commit
1d21989810
@ -168,6 +168,11 @@ class ListView(NavigationView):
|
|||||||
[self.drag_dest_info().target()],
|
[self.drag_dest_info().target()],
|
||||||
Gdk.DragAction.MOVE |
|
Gdk.DragAction.MOVE |
|
||||||
Gdk.DragAction.COPY)
|
Gdk.DragAction.COPY)
|
||||||
|
tglist = Gtk.TargetList.new([])
|
||||||
|
tglist.add(self.drag_dest_info().atom_drag_type,
|
||||||
|
self.drag_dest_info().target_flags,
|
||||||
|
self.drag_dest_info().app_id)
|
||||||
|
self.list.drag_dest_set_target_list(tglist)
|
||||||
|
|
||||||
scrollwindow = Gtk.ScrolledWindow()
|
scrollwindow = Gtk.ScrolledWindow()
|
||||||
scrollwindow.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
|
scrollwindow.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
|
||||||
|
@ -21,6 +21,19 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# GNOME modules
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
from gi.repository import GObject
|
||||||
|
from gi.repository import Gtk
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Gramps modules
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
from gui.listmodel import ListModel
|
from gui.listmodel import ListModel
|
||||||
from gen.ggettext import gettext as _
|
from gen.ggettext import gettext as _
|
||||||
@ -29,7 +42,6 @@ from fractions import Fraction
|
|||||||
import gen.lib
|
import gen.lib
|
||||||
import gen.datehandler
|
import gen.datehandler
|
||||||
import datetime
|
import datetime
|
||||||
from gi.repository import Gtk
|
|
||||||
import pyexiv2
|
import pyexiv2
|
||||||
|
|
||||||
# v0.1 has a different API to v0.2 and above
|
# v0.1 has a different API to v0.2 and above
|
||||||
|
Loading…
x
Reference in New Issue
Block a user