[pitivi] effects: Set the sort column once
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] effects: Set the sort column once
- Date: Wed, 12 Oct 2016 08:38:46 +0000 (UTC)
commit ae7354430f676ac62f1f6d135e051dc4c3ead7de
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Oct 9 22:43:42 2016 +0200
effects: Set the sort column once
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D1364
pitivi/effects.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index 8654891..0f48af0 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -317,6 +317,8 @@ class EffectListWidget(Gtk.Box, Loggable):
# Store
self.storemodel = Gtk.ListStore(
str, str, int, object, str, GdkPixbuf.Pixbuf)
+ self.storemodel.set_sort_column_id(
+ COL_NAME_TEXT, Gtk.SortType.ASCENDING)
self.view = Gtk.TreeView(model=self.storemodel)
self.view.props.headers_visible = False
@@ -415,8 +417,6 @@ class EffectListWidget(Gtk.Box, Loggable):
effect_info.categories,
name,
effect_info.icon])
- self.storemodel.set_sort_column_id(
- COL_NAME_TEXT, Gtk.SortType.ASCENDING)
def populate_categories_widget(self):
self.categoriesWidget.get_model().clear()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]