1) KeyboardInterrupt wird abgefangen
2) Labels f?r Grid-Elemente werden maskiert
This commit is contained in:
parent
d2d8cddb77
commit
6ba8e52815
1 changed files with 5 additions and 2 deletions
|
@ -123,7 +123,7 @@ class MCGGtk(Gtk.Window):
|
||||||
if album.get_cover() is not None:
|
if album.get_cover() is not None:
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(album.get_cover(), self._default_cover_size, self._default_cover_size)
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(album.get_cover(), self._default_cover_size, self._default_cover_size)
|
||||||
if pixbuf is not None:
|
if pixbuf is not None:
|
||||||
self._cover_grid_model.append([pixbuf, album.get_title(), "\n".join([album.get_title(), album.get_artist()])])
|
self._cover_grid_model.append([pixbuf, album.get_title(), GObject.markup_escape_text("\n".join([album.get_title(), album.get_artist()]))])
|
||||||
else:
|
else:
|
||||||
print("pixbuf none: "+album.get_title())
|
print("pixbuf none: "+album.get_title())
|
||||||
|
|
||||||
|
@ -180,5 +180,8 @@ if __name__ == "__main__":
|
||||||
GObject.threads_init()
|
GObject.threads_init()
|
||||||
mcgg = MCGGtk()
|
mcgg = MCGGtk()
|
||||||
mcgg.show_all()
|
mcgg.show_all()
|
||||||
|
try:
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue