[gnome-music] view: don't log empty renderers and some annoying discoveries
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] view: don't log empty renderers and some annoying discoveries
- Date: Tue, 15 Apr 2014 11:28:10 +0000 (UTC)
commit 87d4751cfffb30a4e199f5a4e9dd531d189572ea
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Tue Apr 15 13:26:28 2014 +0200
view: don't log empty renderers and some annoying discoveries
We'll request users to add them to get more information if needed, those log entries are useless most of
the time
gnomemusic/player.py | 2 --
gnomemusic/view.py | 10 ----------
2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index e03f5a7..3a0f328 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -110,7 +110,6 @@ class Player(GObject.GObject):
self.playlist_insert_handler = 0
self.playlist_delete_handler = 0
- @log
def discover_item(self, item, callback, data=None):
url = item.get_url()
if not url:
@@ -125,7 +124,6 @@ class Player(GObject.GObject):
self._discovering_urls[url] = [obj]
self.discoverer.discover_uri_async(url)
- @log
def _on_discovered(self, discoverer, info, error):
try:
cbs = self._discovering_urls[info.get_uri()]
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 4f06e78..57c2807 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -560,15 +560,12 @@ class Songs(ViewContainer):
list_widget.add_renderer(type_renderer,
self._on_list_widget_type_render, None)
- @log
def _on_list_widget_title_render(self, col, cell, model, _iter, data):
pass
- @log
def _on_list_widget_star_render(self, col, cell, model, _iter, data):
pass
- @log
def _on_list_widget_duration_render(self, col, cell, model, _iter, data):
item = model.get_value(_iter, 5)
if item:
@@ -577,11 +574,9 @@ class Songs(ViewContainer):
seconds %= 60
cell.set_property('text', '%i:%02i' % (minutes, seconds))
- @log
def _on_list_widget_artist_render(self, col, cell, model, _iter, data):
pass
- @log
def _on_list_widget_type_render(self, coll, cell, model, _iter, data):
item = model.get_value(_iter, 5)
if item:
@@ -943,15 +938,12 @@ class Playlist(ViewContainer):
cols[0].clear_attributes(type_renderer)
cols[0].add_attribute(type_renderer, "text", 2)
- @log
def _on_list_widget_title_render(self, col, cell, model, _iter, data):
pass
- @log
def _on_list_widget_star_render(self, col, cell, model, _iter, data):
pass
- @log
def _on_list_widget_duration_render(self, col, cell, model, _iter, data):
item = model.get_value(_iter, 5)
if item:
@@ -960,11 +952,9 @@ class Playlist(ViewContainer):
seconds %= 60
cell.set_property('text', '%i:%02i' % (minutes, seconds))
- @log
def _on_list_widget_artist_render(self, col, cell, model, _iter, data):
pass
- @log
def _on_list_widget_type_render(self, coll, cell, model, _iter, data):
item = model.get_value(_iter, 5)
if item:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]