fixed 'AlbumDialog' title

This commit is contained in:
Martin Wagner 2020-04-02 20:40:43 +02:00
parent 605d8ac8d5
commit 0b8b68bd69

View File

@ -964,10 +964,16 @@ class SongsView(Gtk.ScrolledWindow):
class AlbumDialog(Gtk.Dialog): class AlbumDialog(Gtk.Dialog):
def __init__(self, parent, client, settings, album, artist, year): def __init__(self, parent, client, settings, album, artist, year):
Gtk.Dialog.__init__(self, title=(artist+" - "+album+" ("+year+")"), transient_for=parent) Gtk.Dialog.__init__(self, transient_for=parent)
self.add_buttons(Gtk.STOCK_ADD, Gtk.ResponseType.ACCEPT, Gtk.STOCK_MEDIA_PLAY, Gtk.ResponseType.YES, Gtk.STOCK_OPEN, Gtk.ResponseType.OK, Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE) self.add_buttons(Gtk.STOCK_ADD, Gtk.ResponseType.ACCEPT, Gtk.STOCK_MEDIA_PLAY, Gtk.ResponseType.YES, Gtk.STOCK_OPEN, Gtk.ResponseType.OK, Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE)
self.set_default_size(800, 600) self.set_default_size(800, 600)
#title
if year == "":
self.set_title(artist+" - "+album)
else:
self.set_title(artist+" - "+album+" ("+year+")")
#adding vars #adding vars
self.client=client self.client=client
self.settings=settings self.settings=settings