[gnome-music/wip/jfelder/playlistsview-template: 3/3] playlistsview: Misc cleanup
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlistsview-template: 3/3] playlistsview: Misc cleanup
- Date: Sat, 1 Feb 2020 16:21:21 +0000 (UTC)
commit 18d4873eec411891f4787964d159d3d1b84a4823
Author: Jean Felder <jfelder src gnome org>
Date: Sat Feb 1 16:44:51 2020 +0100
playlistsview: Misc cleanup
* update copyright information
* remove @log decorator
* remove __repr__ method
* update rename_active flags
gnomemusic/views/playlistsview.py | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index 6c7b67f3..cdfc809c 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016 The GNOME Music Developers
+# Copyright 2020 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
@@ -26,7 +26,6 @@ from gettext import gettext as _
from gi.repository import GObject, Gtk
-from gnomemusic import log
from gnomemusic.grilowrappers.grltrackerplaylists import Playlist
from gnomemusic.widgets.playlistswidget import PlaylistsWidget
from gnomemusic.widgets.playlisttile import PlaylistTile
@@ -41,10 +40,6 @@ class PlaylistsView(Gtk.Stack):
_main_container = Gtk.Template.Child()
_sidebar = Gtk.Template.Child()
- def __repr__(self):
- return '<PlaylistsView>'
-
- @log
def __init__(self, application, player):
"""Initialize
@@ -77,7 +72,6 @@ class PlaylistsView(Gtk.Stack):
self._model.connect("items-changed", self._on_playlists_model_changed)
self._on_playlists_model_changed(self._model, 0, 0, 0)
- @log
def _add_playlist_to_sidebar(self, playlist):
"""Add a playlist to sidebar
@@ -115,7 +109,6 @@ class PlaylistsView(Gtk.Stack):
return selection.props.playlist
@Gtk.Template.Callback()
- @log
def _on_playlist_activated(self, sidebar, row, untouched=False):
"""Update view with content from selected playlist"""
if untouched is False:
@@ -145,7 +138,8 @@ class PlaylistsView(Gtk.Stack):
self._sidebar.select_row(playlist_row)
self._on_playlist_activated(self._sidebar, playlist_row)
- @GObject.Property(type=bool, default=False)
+ @GObject.Property(
+ type=bool, default=False, flags=GObject.ParamFlags.READABLE)
def rename_active(self):
"""Indicate if renaming dialog is active"""
return self._playlist_widget.props.rename_active
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]