[pitivi] Reenable drag'n'drop reordering of layers
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Reenable drag'n'drop reordering of layers
- Date: Fri, 14 Sep 2012 02:50:46 +0000 (UTC)
commit dcb40f1e6a627f080d1388339774c697f2a6458b
Author: Paul Lange <palango gmx de>
Date: Tue Sep 11 19:27:47 2012 +0200
Reenable drag'n'drop reordering of layers
pitivi/timeline/layer.py | 2 --
pitivi/timeline/timeline.py | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index 0442936..fe2e31b 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -278,10 +278,8 @@ class BaseLayerControl(Gtk.VBox, Loggable):
Used for visual drag'n'drop feedback
"""
if highlighted:
- print "set normal highlight"
self.sep.override_background_color(Gtk.StateType.NORMAL, self.SELECTED_COLOR)
else:
- print "set highlight highlight"
self.sep.override_background_color(Gtk.StateType.NORMAL, self.UNSELECTED_COLOR)
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 048ac3f..8e1799d 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -751,8 +751,7 @@ class TimelineControls(Gtk.VBox, Loggable):
"""
Handles received drag data to reorder layers
"""
- widget = context.get_source_widget()
-
+ widget = Gtk.drag_get_source_widget(context)
self._unhighlightSeparators()
current = self.getControlIndex(widget)
@@ -771,7 +770,7 @@ class TimelineControls(Gtk.VBox, Loggable):
"""
Highlight separator where control would go when dropping
"""
- index = self._getIndexForPosition(y, context.get_source_widget())
+ index = self._getIndexForPosition(y, Gtk.drag_get_source_widget(context))
self._unhighlightSeparators()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]