From 6ba8e5281540635a70fe1182bc540a2e265388be Mon Sep 17 00:00:00 2001 From: gotik Date: Fri, 20 Apr 2012 01:34:14 +0200 Subject: [PATCH] 1) KeyboardInterrupt wird abgefangen 2) Labels f?r Grid-Elemente werden maskiert --- mcgGtk.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mcgGtk.py b/mcgGtk.py index ae3558c..cb29690 100755 --- a/mcgGtk.py +++ b/mcgGtk.py @@ -123,7 +123,7 @@ class MCGGtk(Gtk.Window): 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) 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: print("pixbuf none: "+album.get_title()) @@ -180,5 +180,8 @@ if __name__ == "__main__": GObject.threads_init() mcgg = MCGGtk() mcgg.show_all() - Gtk.main() + try: + Gtk.main() + except KeyboardInterrupt: + pass