diff --git a/src/gui/editors/filtereditor.py b/src/gui/editors/filtereditor.py index 103e819f0..b030795c3 100644 --- a/src/gui/editors/filtereditor.py +++ b/src/gui/editors/filtereditor.py @@ -496,7 +496,7 @@ class EditRule(ManagedWindow): l2.set_alignment(0, 0.5) l2.show() c = Gtk.TreeView() - c.set_data('d', pos) + #c.set_data('d', pos) c.show() the_map[class_obj] = c # Only add a table with parameters if there are any parameters @@ -661,7 +661,7 @@ class EditRule(ManagedWindow): Return True if change done, False otherwise """ store, paths = self.selection.get_selected_rows() - if paths and len(paths[0]) == 1 : + if paths and len(paths[0].get_indices()) == 1 : if self.rname.row_expanded(paths[0]): self.rname.collapse_row(paths[0]) else: diff --git a/src/gui/glade/rule.glade b/src/gui/glade/rule.glade index 801aacea6..38defd83e 100644 --- a/src/gui/glade/rule.glade +++ b/src/gui/glade/rule.glade @@ -12,6 +12,7 @@ True False + vertical 8 @@ -306,6 +307,7 @@ True False + vertical 8 @@ -560,7 +562,7 @@ 5 6 GTK_FILL - + @@ -576,7 +578,7 @@ 3 4 GTK_FILL - + @@ -590,7 +592,7 @@ 4 GTK_FILL - + @@ -608,7 +610,7 @@ 2 3 GTK_FILL - + @@ -648,7 +650,7 @@ 1 2 GTK_FILL - + @@ -669,7 +671,7 @@ 7 8 GTK_FILL - + @@ -690,7 +692,7 @@ 6 7 GTK_FILL - + @@ -705,7 +707,7 @@ 1 2 GTK_EXPAND | GTK_SHRINK | GTK_FILL - + @@ -718,7 +720,7 @@ 3 2 3 - + @@ -753,6 +755,7 @@ True False + vertical True @@ -848,6 +851,7 @@ True True in + 200 250 @@ -984,6 +988,7 @@ True False + vertical 8 @@ -1045,7 +1050,7 @@ - False + True True 2 diff --git a/src/gui/selectors/selectperson.py b/src/gui/selectors/selectperson.py index a8ae30763..0213c0ef4 100644 --- a/src/gui/selectors/selectperson.py +++ b/src/gui/selectors/selectperson.py @@ -97,13 +97,13 @@ class SelectPerson(BaseSelector): def _on_row_activated(self, treeview, path, view_col): store, paths = self.selection.get_selected_rows() - if paths and len(paths[0].get_indices ()) == 2 : + if paths and len(paths[0].get_indices()) == 2 : self.window.response(Gtk.ResponseType.OK) def _key_press(self, obj, event): if event.keyval in (Gdk.KEY_Return, Gdk.KEY_KP_Enter): store, paths = self.selection.get_selected_rows() - if paths and len(paths[0].get_indices ()) == 1 : + if paths and len(paths[0].get_indices()) == 1 : if self.tree.row_expanded(paths[0]): self.tree.collapse_row(paths[0]) else: