[gnome-music/wip/mschraal/albumsview-drop-baseview: 4/4] albumsview: Remove @log decorators
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/albumsview-drop-baseview: 4/4] albumsview: Remove @log decorators
- Date: Mon, 29 Jul 2019 14:49:25 +0000 (UTC)
commit 0b6eb3a93aff448acc23c43b4587cd53f300f3bd
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Jul 29 16:48:04 2019 +0200
albumsview: Remove @log decorators
gnomemusic/views/albumsview.py | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index d583399a..e7a0ba0a 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016 The GNOME Music Developers
+# Copyright 2019 The GNOME Music Developers
#
# GNOME Music is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -25,7 +25,6 @@
from gettext import gettext as _
from gi.repository import GObject, Gtk
-from gnomemusic import log
from gnomemusic.widgets.headerbar import HeaderBar
from gnomemusic.widgets.albumcover import AlbumCover
from gnomemusic.widgets.albumwidget import AlbumWidget
@@ -50,7 +49,6 @@ class AlbumsView(Gtk.Stack):
def __repr__(self):
return '<AlbumsView>'
- @log
def __init__(self, application, player=None):
"""Initialize AlbumsView
@@ -87,19 +85,16 @@ class AlbumsView(Gtk.Stack):
self.show_all()
- @log
def _on_selection_mode_changed(self, widget, data=None):
if not self.props.selection_mode:
self.unselect_all()
- @log
def _on_search_mode_changed(self, klass, param):
if (not self.props.search_mode_active
and self._headerbar.props.stack.props.visible_child == self
and self.get_visible_child() == self._album_widget):
self._set_album_headerbar(self._album_widget.props.album)
- @log
def _create_widget(self, corealbum):
album_widget = AlbumCover(corealbum)
@@ -117,13 +112,11 @@ class AlbumsView(Gtk.Stack):
return album_widget
- @log
def _back_button_clicked(self, widget, data=None):
self._headerbar.state = HeaderBar.State.MAIN
# self.set_visible_child(self._grid)
self.props.visible_child = self._all_albums
- @log
def _on_child_activated(self, widget, child, user_data=None):
corealbum = child.props.corealbum
if self.props.selection_mode:
@@ -135,7 +128,6 @@ class AlbumsView(Gtk.Stack):
self._set_album_headerbar(corealbum)
self.set_visible_child(self._album_widget)
- @log
def _set_album_headerbar(self, corealbum):
self._headerbar.props.state = HeaderBar.State.CHILD
self._headerbar.props.title = corealbum.props.title
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]