[gnome-music/wip/mschraal/gtk4: 80/102] songwidget: Disable DnD
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 80/102] songwidget: Disable DnD
- Date: Mon, 8 Jun 2020 23:44:49 +0000 (UTC)
commit d9865550d84f3b038335f81fcbb696b711d314ca
Author: Marinus Schraal <mschraal gnome org>
Date: Fri May 1 14:07:04 2020 +0200
songwidget: Disable DnD
It got reworked.
gnomemusic/widgets/songwidget.py | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gnomemusic/widgets/songwidget.py b/gnomemusic/widgets/songwidget.py
index 6c8e2a14..8ae7958f 100644
--- a/gnomemusic/widgets/songwidget.py
+++ b/gnomemusic/widgets/songwidget.py
@@ -24,7 +24,7 @@
from enum import IntEnum
-from gi.repository import Gdk, GObject, Gtk
+from gi.repository import GObject, Gtk
from gnomemusic import utils
from gnomemusic.coresong import CoreSong
@@ -139,18 +139,18 @@ class SongWidget(Gtk.Box):
if not self.props.coresong.props.is_tracker:
self._star_stack.props.visible_child_name = "empty"
- if can_dnd is True:
- self._dnd_eventbox.props.visible = True
- self._drag_widget = None
- entries = [
- Gtk.TargetEntry.new(
- "GTK_EVENT_BOX", Gtk.TargetFlags.SAME_APP, 0)
- ]
- self._dnd_eventbox.drag_source_set(
- Gdk.ModifierType.BUTTON1_MASK, entries,
- Gdk.DragAction.MOVE)
- self.drag_dest_set(
- Gtk.DestDefaults.ALL, entries, Gdk.DragAction.MOVE)
+ # if can_dnd is True:
+ # self._dnd_eventbox.props.visible = True
+ # self._drag_widget = None
+ # entries = [
+ # Gtk.TargetEntry.new(
+ # "GTK_EVENT_BOX", Gtk.TargetFlags.SAME_APP, 0)
+ # ]
+ # self._dnd_eventbox.drag_source_set(
+ # Gdk.ModifierType.BUTTON1_MASK, entries,
+ # Gdk.DragAction.MOVE)
+ # self.drag_dest_set(
+ # Gtk.DestDefaults.ALL, entries, Gdk.DragAction.MOVE)
# @Gtk.Template.Callback()
# def _on_selection_changed(self, klass, value):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]