[gnome-tweak-tool] No need to set sort_func and sort_column_id
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] No need to set sort_func and sort_column_id
- Date: Mon, 6 Jun 2011 04:53:33 +0000 (UTC)
commit 7e19d0ac022591cb6db123617cd0774ee38ee5ba
Author: John Stowers <john stowers gmail com>
Date: Thu Jun 2 19:12:58 2011 +1200
No need to set sort_func and sort_column_id
gtweak/tweakmodel.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
index 7e97501..d3e7f12 100644
--- a/gtweak/tweakmodel.py
+++ b/gtweak/tweakmodel.py
@@ -76,12 +76,8 @@ class TweakModel(Gtk.ListStore):
self._tweak_dir = gtweak.TWEAK_DIR
assert(os.path.exists(self._tweak_dir))
- self.set_sort_func(self.COLUMN_NAME, self._sort_tweak_groups)
self.set_sort_column_id(self.COLUMN_NAME, Gtk.SortType.ASCENDING)
- def _sort_tweak_groups(self, model, iter1, iter2, user_data):
- return cmp(model.get_value(iter1, self.COLUMN_NAME), model.get_value(iter2, self.COLUMN_NAME))
-
@property
def tweaks(self):
return [t for row in self for t in row[TweakModel.COLUMN_TWEAK].tweaks]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]