[pitivi] mainwindow: Consistent log category



commit 7efddd72fe3845449bfab30598ebba639b9dea61
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Apr 25 05:24:38 2016 +0200

    mainwindow: Consistent log category
    
    The default log category is the lowercase class name.
    
    Differential Revision: https://phabricator.freedesktop.org/D962

 pitivi/application.py    |    6 +++---
 pitivi/mainwindow.py     |    6 +++---
 tests/test_mainwindow.py |    8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index c9533b5..c6a5e89 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -34,7 +34,7 @@ from pitivi.configure import RELEASES_URL
 from pitivi.configure import VERSION
 from pitivi.dialogs.startupwizard import StartUpWizard
 from pitivi.effects import EffectsManager
-from pitivi.mainwindow import PitiviMainWindow
+from pitivi.mainwindow import MainWindow
 from pitivi.project import ProjectManager
 from pitivi.settings import get_dir
 from pitivi.settings import GlobalSettings
@@ -60,7 +60,7 @@ class Pitivi(Gtk.Application, Loggable):
     Attributes:
         action_log (UndoableActionLog): The undo/redo log for the current project.
         effects (EffectsManager): The effects which can be applied to a clip.
-        gui (PitiviMainWindow): The main window of the app.
+        gui (MainWindow): The main window of the app.
         project_manager (ProjectManager): The holder of the current project.
         settings (GlobalSettings): The application-wide settings.
     """
@@ -197,7 +197,7 @@ class Pitivi(Gtk.Application, Loggable):
     def createMainWindow(self):
         if self.gui:
             return
-        self.gui = PitiviMainWindow(self)
+        self.gui = MainWindow(self)
         self.add_window(self.gui)
         self.gui.checkScreenConstraints()
         # We might as well show it.
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 419d625..a6927a2 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -113,7 +113,7 @@ GlobalSettings.addConfigOption('timelineAutoRipple',
                                default=False)
 
 
-class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
+class MainWindow(Gtk.ApplicationWindow, Loggable):
 
     """
     Pitivi's main window.
@@ -131,7 +131,7 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
         os.environ["PULSE_PROP_application.icon_name"] = "pitivi"
 
         Gtk.ApplicationWindow.__init__(self)
-        Loggable.__init__(self, "mainwindow")
+        Loggable.__init__(self)
         self.app = app
         self.log("Creating MainWindow")
         self.settings = app.settings
@@ -1294,7 +1294,7 @@ class PreviewAssetWindow(Gtk.Window):
 
     @ivar asset: The asset to be previewed.
     @type asset: L{GES.UriClipAsset}
-    @type main_window: L{PitiviMainWindow}
+    @type main_window: L{MainWindow}
     """
 
     def __init__(self, asset, main_window):
diff --git a/tests/test_mainwindow.py b/tests/test_mainwindow.py
index d377544..8f728cf 100644
--- a/tests/test_mainwindow.py
+++ b/tests/test_mainwindow.py
@@ -25,7 +25,7 @@ from unittest import mock
 from gi.repository import GES
 from gi.repository import Gtk
 
-from pitivi.mainwindow import PitiviMainWindow
+from pitivi.mainwindow import MainWindow
 from pitivi.project import ProjectManager
 from pitivi.utils.misc import disconnectAllByFunc
 from tests import common
@@ -33,7 +33,7 @@ from tests import common
 
 class TestMainWindow(common.TestCase):
     """
-    Test PitiviMainWindow
+    Test MainWindow
     """
 
     def testSwitchContextTab(self):
@@ -41,7 +41,7 @@ class TestMainWindow(common.TestCase):
         Test tab switches
         """
         app = common.create_pitivi_mock()
-        mainwindow = PitiviMainWindow(app)
+        mainwindow = MainWindow(app)
         for expected_tab, b_element in [
                 (2, GES.TitleClip()),
                 (0, GES.SourceClip()),
@@ -63,7 +63,7 @@ class TestMainWindow(common.TestCase):
         app = common.create_pitivi_mock(lastProjectFolder="/tmp",
                                         edgeSnapDeadband=32)
         app.project_manager = ProjectManager(app)
-        mainwindow = PitiviMainWindow(app)
+        mainwindow = MainWindow(app)
         mainwindow.viewer = mock.MagicMock()
 
         def __pm_missing_uri_cb(project_manager, project,


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