[pitivi] Remove reference to IconList in EffectList
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Remove reference to IconList in EffectList
- Date: Wed, 22 Sep 2010 13:37:59 +0000 (UTC)
commit 8690816637e618408d08f28900d8b07ef11a7b62
Author: Thibault Saunier <tsaunier gnome org>
Date: Fri Jul 2 18:14:50 2010 -0400
Remove reference to IconList in EffectList
pitivi/ui/effectlist.py | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/ui/effectlist.py b/pitivi/ui/effectlist.py
index 1ac76ea..ea49f16 100644
--- a/pitivi/ui/effectlist.py
+++ b/pitivi/ui/effectlist.py
@@ -222,14 +222,8 @@ class EffectList(gtk.VBox, Loggable):
result = view.get_path_at_pos(int(event.x), int(event.y))
if result:
path = result[0]
- if isinstance(view, gtk.TreeView):
- selection = view.get_selection()
- return selection.path_is_selected(path) and selection.count_selected_rows() > 0
- elif isinstance(view, gtk.IconView):
- selection = view.get_selected_items()
- return view.path_is_selected(path) and len(selection)
- else:
- assert False
+ selection = view.get_selection()
+ return selection.path_is_selected(path) and selection.count_selected_rows() > 0
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]