[pitivi/ges: 224/287] When possible, get the store model reference directly from GTK
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 224/287] When possible, get the store model reference directly from GTK
- Date: Thu, 15 Mar 2012 16:44:40 +0000 (UTC)
commit 97a66c3367c5de369a84abb1c5e8bcdf7d82aa2a
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Thu Jan 12 15:51:27 2012 -0500
When possible, get the store model reference directly from GTK
Fixes bug #666916 (selecting unused clips in treeview mode)
pitivi/medialibrary.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 139eac8..158c647 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -891,7 +891,7 @@ class MediaLibraryWidget(gtk.VBox, Loggable):
Determine which clips are selected in the icon or list view,
and ask MediaLibrary to remove them from the project.
"""
- model = self.storemodel
+ model = self.treeview.get_model()
paths = self.getSelectedPaths()
if paths == None or paths < 1:
return
@@ -924,7 +924,7 @@ class MediaLibraryWidget(gtk.VBox, Loggable):
sources = self.app.current.medialibrary.getSources()
unused_sources_uris = []
- model = self.storemodel
+ model = self.treeview.get_model()
selection = self.treeview.get_selection()
for source in sources:
if not self._sourceIsUsed(source.get_uri()):
@@ -958,7 +958,7 @@ class MediaLibraryWidget(gtk.VBox, Loggable):
""" Called when a user clicks on the play button """
# get the selected filesourcefactory
paths = self.getSelectedPaths()
- model = self.storemodel
+ model = self.treeview.get_model()
if len(paths) < 1:
return
paths = paths[0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]