[pitivi] Remove obsolete code
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Remove obsolete code
- Date: Wed, 24 Sep 2014 17:07:32 +0000 (UTC)
commit 1ddf68263044553f8c17155bee4874331f4a2546
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat May 24 19:24:09 2014 +0200
Remove obsolete code
pitivi/effects.py | 9 ---------
pitivi/medialibrary.py | 3 ---
pitivi/utils/ui.py | 9 ---------
3 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index cd12cd3..c82d26b 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -50,7 +50,6 @@ from gettext import gettext as _
from pitivi.configure import get_ui_dir, get_pixmap_dir
from pitivi.settings import GlobalSettings
-import pitivi.utils.ui as dnd
from pitivi.utils.loggable import Loggable
from pitivi.utils.ui import SPACING, TYPE_PITIVI_EFFECT
@@ -582,14 +581,6 @@ class EffectListWidget(Gtk.VBox, Loggable):
else:
return False
- def _nothingUnderMouse(self, view, event):
- return not bool(view.get_path_at_pos(int(event.x), int(event.y)))
-
- def _getTargetEntries(self):
- if self._effectType == VIDEO_EFFECT:
- return [dnd.VIDEO_EFFECT_TARGET_ENTRY, dnd.EFFECT_TARGET_ENTRY]
- else:
- return [dnd.AUDIO_EFFECT_TARGET_ENTRY, dnd.EFFECT_TARGET_ENTRY]
PROPS_TO_IGNORE = ['name', 'qos', 'silent', 'message']
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 622aada..8d00936 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -858,9 +858,6 @@ class MediaLibraryWidget(Gtk.VBox, Loggable):
return False
- def _nothingUnderMouse(self, view, event):
- return not bool(view.get_path_at_pos(int(event.x), int(event.y)))
-
def _viewGetFirstSelected(self):
paths = self.getSelectedPaths()
return paths[0]
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 12e7db8..dc239ff 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -73,22 +73,13 @@ TYPE_URI_LIST = 25
# FileSourceFactory (or subclasses)
TYPE_PITIVI_FILESOURCE = 26
-# What objects do these correspond to ???
TYPE_PITIVI_EFFECT = 27
-TYPE_PITIVI_AUDIO_EFFECT = 28
-TYPE_PITIVI_VIDEO_EFFECT = 29
-TYPE_PITIVI_AUDIO_TRANSITION = 30
-TYPE_PITIVI_VIDEO_TRANSITION = 31
TYPE_PITIVI_LAYER_CONTROL = 32
FILE_TARGET_ENTRY = Gtk.TargetEntry.new("text/plain", Gtk.TargetFlags.OTHER_APP, TYPE_TEXT_PLAIN)
URI_TARGET_ENTRY = Gtk.TargetEntry.new("text/uri-list", 0, TYPE_URI_LIST)
FILESOURCE_TARGET_ENTRY = Gtk.TargetEntry.new("pitivi/file-source", 0, TYPE_PITIVI_FILESOURCE)
EFFECT_TARGET_ENTRY = Gtk.TargetEntry.new("pitivi/effect", 0, TYPE_PITIVI_EFFECT)
-AUDIO_EFFECT_TARGET_ENTRY = Gtk.TargetEntry.new("pitivi/audio-effect", 0, TYPE_PITIVI_AUDIO_EFFECT)
-VIDEO_EFFECT_TARGET_ENTRY = Gtk.TargetEntry.new("pitivi/video-effect", 0, TYPE_PITIVI_VIDEO_EFFECT)
-AUDIO_TRANSITION_TARGET_ENTRY = Gtk.TargetEntry.new("pitivi/audio-transition", 0,
TYPE_PITIVI_AUDIO_TRANSITION)
-VIDEO_TRANSITION_TARGET_ENTRY = Gtk.TargetEntry.new("pitivi/video-transition", 0,
TYPE_PITIVI_VIDEO_TRANSITION)
LAYER_CONTROL_TARGET_ENTRY = Gtk.TargetEntry.new("pitivi/layer-control", 0, TYPE_PITIVI_LAYER_CONTROL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]