[gnome-music/wip/mschraal/glib-logging: 52/65] baseview: New logger



commit 24d5719d81e8f21775b1800d917b2f31c31d455f
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 1 15:06:22 2020 +0100

    baseview: New logger

 gnomemusic/views/baseview.py | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/gnomemusic/views/baseview.py b/gnomemusic/views/baseview.py
index 80235b52..0323c42e 100644
--- a/gnomemusic/views/baseview.py
+++ b/gnomemusic/views/baseview.py
@@ -24,18 +24,12 @@
 
 from gi.repository import GObject, Gtk
 
-from gnomemusic import log
-
 
 class BaseView(Gtk.Stack):
     """Base Class for all view classes"""
 
     selection_mode = GObject.Property(type=bool, default=False)
 
-    def __repr__(self):
-        return '<BaseView>'
-
-    @log
     def __init__(self, name, title, application, sidebar=None):
         """Initialize
         :param name: The view name
@@ -72,12 +66,10 @@ class BaseView(Gtk.Stack):
         self._selection_mode_id = self.connect(
             "notify::selection-mode", self._on_selection_mode_changed)
 
-    @log
     def _setup_view(self):
         """Instantiate and set up the view object"""
         pass
 
-    @log
     def _on_selection_mode_changed(self, widget, data=None):
         if self.get_parent().get_visible_child() != self:
             return


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