[pitivi] effects: Do not ignore defaultthumbnail.svg missing
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] effects: Do not ignore defaultthumbnail.svg missing
- Date: Tue, 30 Sep 2014 07:31:02 +0000 (UTC)
commit 0caf4818909554574fe90216c86fd0ca85770880
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Sep 29 23:55:05 2014 +0200
effects: Do not ignore defaultthumbnail.svg missing
pitivi/effects.py | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index 98e83f6..3e19ff5 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -317,21 +317,16 @@ class EffectsManager(object):
audio_categories = property(getAudioCategories)
def getEffectIcon(self, effect_name):
- effect_name = effect_name + ".png"
icon = None
try:
# We can afford to scale the images here, the impact is negligible
icon = GdkPixbuf.Pixbuf.new_from_file_at_size(
- os.path.join(self._pixdir, effect_name),
+ os.path.join(self._pixdir, effect_name + ".png"),
ICON_WIDTH, ICON_WIDTH)
# An empty except clause is bad, but "gi._glib.GError" is not helpful.
except:
- try:
- icon = GdkPixbuf.Pixbuf.new_from_file(
- os.path.join(self._pixdir, "defaultthumbnail.svg"))
- except:
- return None
-
+ icon = GdkPixbuf.Pixbuf.new_from_file(
+ os.path.join(self._pixdir, "defaultthumbnail.svg"))
return icon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]