[pitivi] viewer: Move viewer to own python package.



commit fcb9cdf0443fde0dde21b151e6e07a792168083e
Author: Lubosz Sarnecki <lubosz sarnecki collabora co uk>
Date:   Fri Jan 29 15:15:46 2016 +0100

    viewer: Move viewer to own python package.
    
    Differential Revision: https://phabricator.freedesktop.org/D723

 pitivi/mainwindow.py          |    9 ++++-----
 pitivi/mediafilespreviewer.py |    9 +++++----
 pitivi/{ => viewer}/viewer.py |   14 +++++++-------
 3 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index a2bd61c..a3b9d73 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -22,18 +22,17 @@
 
 import os
 import subprocess
-
-from time import time
-from urllib.parse import unquote
 from gettext import gettext as _
 from hashlib import md5
+from time import time
+from urllib.parse import unquote
 
 from gi.repository import GES
 from gi.repository import Gdk
 from gi.repository import Gio
 from gi.repository import Gst
-from gi.repository import Gtk
 from gi.repository import GstPbutils
+from gi.repository import Gtk
 
 from pitivi.clipproperties import ClipProperties
 from pitivi.configure import in_devel, VERSION, APPNAME, APPURL, \
@@ -51,7 +50,7 @@ from pitivi.utils.loggable import Loggable
 from pitivi.utils.misc import show_user_manual, path_from_uri
 from pitivi.utils.ui import clear_styles, beautify_length, \
     beautify_time_delta, info_name, SPACING, TIMELINE_CSS
-from pitivi.viewer import ViewerContainer
+from pitivi.viewer.viewer import ViewerContainer
 
 
 GlobalSettings.addConfigSection("main-window")
diff --git a/pitivi/mediafilespreviewer.py b/pitivi/mediafilespreviewer.py
index d258c52..4a158ab 100644
--- a/pitivi/mediafilespreviewer.py
+++ b/pitivi/mediafilespreviewer.py
@@ -22,21 +22,22 @@
 # Boston, MA 02110-1301, USA.
 
 from gettext import gettext as _
+
 from gi.repository import GLib
 from gi.repository import GObject
-from gi.repository import Gst
-from gi.repository import Gtk
 from gi.repository import Gdk
 from gi.repository import GdkPixbuf
-from gi.repository import Pango
+from gi.repository import Gst
 from gi.repository import GstPbutils
+from gi.repository import Gtk
+from gi.repository import Pango
 
 from pitivi.settings import GlobalSettings
 from pitivi.utils.loggable import Loggable
 from pitivi.utils.misc import uri_is_valid
 from pitivi.utils.pipeline import AssetPipeline
 from pitivi.utils.ui import beautify_length, beautify_stream, SPACING
-from pitivi.viewer import ViewerWidget
+from pitivi.viewer.viewer import ViewerWidget
 
 PREVIEW_WIDTH = 250
 PREVIEW_HEIGHT = 100
diff --git a/pitivi/viewer/__init__.py b/pitivi/viewer/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/pitivi/viewer.py b/pitivi/viewer/viewer.py
similarity index 99%
rename from pitivi/viewer.py
rename to pitivi/viewer/viewer.py
index 45c812b..831ec1b 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer/viewer.py
@@ -1,6 +1,6 @@
 # Pitivi video editor
 #
-#       pitivi/viewer.py
+#       pitivi/viewer/viewer.py
 #
 # Copyright (c) 2005, Edward Hervey <bilboed bilboed com>
 #
@@ -19,15 +19,15 @@
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-from gi.repository import Gtk
-from gi.repository import Gdk
-from gi.repository import Gst
-from gi.repository import GObject
-from gi.repository import GES
-
 from gettext import gettext as _
 from time import time
 
+from gi.repository import GES
+from gi.repository import GObject
+from gi.repository import Gdk
+from gi.repository import Gst
+from gi.repository import Gtk
+
 from pitivi.settings import GlobalSettings
 from pitivi.utils.loggable import Loggable
 from pitivi.utils.misc import format_ns


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]