[pitivi: 6/94] Remove unuseful code
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 6/94] Remove unuseful code
- Date: Sun, 11 Sep 2011 16:12:57 +0000 (UTC)
commit daf27feeb5d79e88be27602361400437cc30312a
Author: Alex BÄluÈ <alexandru balut gmail com>
Date: Sun Aug 21 14:43:47 2011 +0200
Remove unuseful code
pitivi/plumber.py | 1 -
pitivi/settings.py | 1 -
pitivi/ui/effectlist.py | 3 +--
pitivi/ui/mainwindow.py | 6 +-----
4 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/pitivi/plumber.py b/pitivi/plumber.py
index de18db4..f30232e 100644
--- a/pitivi/plumber.py
+++ b/pitivi/plumber.py
@@ -79,7 +79,6 @@ class DefaultVideoSink(SinkFactory):
self._realsink = autovideosink
if self._realsink:
- props = list(self._realsink.props)
try:
self._realsink.props.force_aspect_ratio = True
except AttributeError:
diff --git a/pitivi/settings.py b/pitivi/settings.py
index e8b18f0..889e51c 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -30,7 +30,6 @@ from ConfigParser import SafeConfigParser, ParsingError
import xdg.BaseDirectory as xdg_dirs # Freedesktop directories spec
from gettext import gettext as _
-from gettext import ngettext
from pitivi.signalinterface import Signallable
from pitivi.encode import available_combinations, \
diff --git a/pitivi/ui/effectlist.py b/pitivi/ui/effectlist.py
index 3314f35..cfa3f71 100644
--- a/pitivi/ui/effectlist.py
+++ b/pitivi/ui/effectlist.py
@@ -34,7 +34,7 @@ from pitivi.configure import get_pixmap_dir
from pitivi.log.loggable import Loggable
from pitivi.effects import AUDIO_EFFECT, VIDEO_EFFECT
-from pitivi.ui.common import SPACING, PADDING
+from pitivi.ui.common import SPACING
from pitivi.settings import GlobalSettings
SHOW_TREEVIEW = 1
@@ -286,7 +286,6 @@ class EffectList(gtk.VBox, Loggable):
if len(path) < 1:
context.drag_abort(int(time.time()))
else:
- row = self.storemodel[path[0]]
if self._current_tooltip_icon:
context.set_icon_pixbuf(self._current_tooltip_icon, 0, 0)
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 0a91746..15e39cb 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -25,7 +25,6 @@ Main GTK+ window
"""
import os
-import platform
import gtk
import gobject
gobject.threads_init()
@@ -42,7 +41,7 @@ from pitivi.ui.timeline import Timeline
from pitivi.ui.basetabs import BaseTabs
from pitivi.ui.viewer import PitiviViewer
from pitivi.configure import pitivi_version, APPNAME, APPURL, \
- get_pixmap_dir, LIBDIR, get_ui_dir
+ get_pixmap_dir, get_ui_dir
from pitivi.ui import dnd
from pitivi.pipeline import Pipeline
from pitivi.action import ViewAction
@@ -240,7 +239,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
def _setActions(self, instance):
PLAY = _("Start Playback")
- PAUSE = _("Stop Playback")
LOOP = _("Loop over selected area")
""" sets up the GtkActions """
@@ -429,7 +427,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
self.viewer.connect("expose-event", self._exposeEventCb)
# window and pane position defaults
- self.mainhpaned = self.mainhpaned
self.hpaned = self.secondhpaned
self.vpaned = vpaned
height = -1
@@ -802,7 +799,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
hbox = gtk.HBox(False, SPACING * 2)
hbox.pack_start(image, expand=False)
hbox.pack_start(vbox, expand=True, fill=True)
- action_area = dialog.get_action_area()
hbox.set_border_width(SPACING)
# stuff the hbox in the dialog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]