fix drag icon in filter mode

This commit is contained in:
DYefremov
2021-01-14 23:05:31 +03:00
parent 45cc506dd0
commit 9016143bb9

View File

@@ -1010,7 +1010,7 @@ class Application(Gtk.Application):
We have to use "connect_after" (after="yes" in xml) to override what the default handler did.
https://lazka.github.io/pgi-docs/Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.drag_begin
"""
model, paths = view.get_selection().get_selected_rows()
top_model, paths = view.get_selection().get_selected_rows()
if len(paths) < 1:
return
@@ -1023,7 +1023,7 @@ class Application(Gtk.Application):
elif name == self.ALT_MODEL_NAME:
name_column, type_column = Column.ALT_SERVICE, Column.ALT_TYPE
# https://stackoverflow.com/a/52248549
Gtk.drag_set_icon_pixbuf(context, self.get_drag_icon_pixbuf(model, paths, name_column, type_column), 0, 0)
Gtk.drag_set_icon_pixbuf(context, self.get_drag_icon_pixbuf(top_model, paths, name_column, type_column), 0, 0)
return True
def on_view_drag_end(self, view, context):