[gnome-music/wip/mschraal/glib-logging: 47/65] starhandlerwidget: New logger



commit b2c945573e3b9c43bc7e28cbf4877b9d387884c4
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 1 15:00:18 2020 +0100

    starhandlerwidget: New logger

 gnomemusic/widgets/starhandlerwidget.py | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/gnomemusic/widgets/starhandlerwidget.py b/gnomemusic/widgets/starhandlerwidget.py
index 5e276de4..2657237f 100644
--- a/gnomemusic/widgets/starhandlerwidget.py
+++ b/gnomemusic/widgets/starhandlerwidget.py
@@ -24,8 +24,6 @@
 
 from gi.repository import GObject, Gtk
 
-from gnomemusic import log
-
 
 class CellRendererStar(Gtk.CellRendererPixbuf):
     """Starwidget cellrenderer implementation"""
@@ -34,9 +32,6 @@ class CellRendererStar(Gtk.CellRendererPixbuf):
         'clicked': (GObject.SignalFlags.RUN_LAST, None, (str,))
     }
 
-    def __repr__(self):
-        return '<CellRendererStar>'
-
     def __init__(self):
         super().__init__()
 
@@ -104,10 +99,6 @@ class CellRendererStar(Gtk.CellRendererPixbuf):
 class StarHandlerWidget(object):
     """Handles the treeview column for favorites (stars)."""
 
-    def __repr__(self):
-        return '<StarHandlerWidget>'
-
-    @log
     def __init__(self, parent, star_index):
         """Initialize.
 
@@ -118,7 +109,6 @@ class StarHandlerWidget(object):
         self._star_index = star_index
         self._parent = parent
 
-    @log
     def add_star_renderers(self, col):
         """Adds the star renderer column
 
@@ -130,7 +120,6 @@ class StarHandlerWidget(object):
         col.pack_start(star_renderer, False)
         col.add_attribute(star_renderer, 'show_star', self._star_index)
 
-    @log
     def _on_star_toggled(self, widget, path):
         """Called if a star is clicked"""
         model = self._parent._view.props.model


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