mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed 'AlbumDialog' title
This commit is contained in:
parent
605d8ac8d5
commit
0b8b68bd69
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user