[pitivi] medialibrary: Properly use fallback icons
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] medialibrary: Properly use fallback icons
- Date: Wed, 11 Jul 2012 23:35:23 +0000 (UTC)
commit 17d7cae97fae7a50ffd66c1346a1c4dfc8c63d17
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Wed Jul 11 17:55:47 2012 -0400
medialibrary: Properly use fallback icons
Fixes bug #679703
pitivi/medialibrary.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index a279e53..c5520f1 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -617,8 +617,10 @@ class MediaLibraryWidget(gtk.VBox, Loggable):
except:
# empty except clause is bad but load_icon raises gio.Error.
# Right, *gio*.
- if not icon:
+ if alternate:
icon = gtk.gdk.pixbuf_new_from_file(os.path.join(pixdir, alternate))
+ else:
+ icon = icontheme.load_icon("dialog-question", 48, 0)
return icon
def _connectToProject(self, project):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]