From 6698ebe9327e715e5fded187885b8f7f4915ce6e Mon Sep 17 00:00:00 2001 From: flatberg Date: Thu, 20 Sep 2007 16:12:58 +0000 Subject: [PATCH] Removed actiavtion in dimcontroller opt. of compare func --- fluents/selections.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fluents/selections.py b/fluents/selections.py index 59b3917..d3684a6 100644 --- a/fluents/selections.py +++ b/fluents/selections.py @@ -195,11 +195,7 @@ class IdListController: except: logger.log("notice", "Could not convert to float: %s, %s" %(item1, item2)) - if item1==item2: return 0 - if item1>item2: - return 1 - else: - return -1 + return cmp(item1, item2) def _popup_menu(self, *rest): self._update_annotations_menu() @@ -597,7 +593,8 @@ class DimListController: self._seltree_controller.activate() def _dim_row_activated(self, widget, path, column): - self._seltree_controller.set_dimension(dim) + #self._seltree_controller.set_dimension(dim) + pass def _dimlist_button_pressed(self, widget, event): if event.button == 3: