diff --git a/src/FilterEditor/_EditFilter.py b/src/FilterEditor/_EditFilter.py index a3b5af92f..a608fbd1c 100644 --- a/src/FilterEditor/_EditFilter.py +++ b/src/FilterEditor/_EditFilter.py @@ -80,7 +80,7 @@ class EditFilter(ManagedWindow.ManagedWindow): self.set_window( self.get_widget('define_filter'), - self.get_widget('title'), + self.get_widget('definition_title'), _('Define filter')) self.rlist = ListModel.ListModel( @@ -93,19 +93,19 @@ class EditFilter(ManagedWindow.ManagedWindow): self.logical = self.get_widget('rule_apply') self.logical_not = self.get_widget('logical_not') self.comment = self.get_widget('comment') - self.ok_btn = self.get_widget('ok') - self.edit_btn = self.get_widget('edit') - self.del_btn = self.get_widget('delete') - self.add_btn = self.get_widget('add') + self.ok_btn = self.get_widget('definition_ok') + self.edit_btn = self.get_widget('definition_edit') + self.del_btn = self.get_widget('definition_delete') + self.add_btn = self.get_widget('definition_add') self.ok_btn.connect('clicked', self.on_ok_clicked) self.edit_btn.connect('clicked', self.on_edit_clicked) self.del_btn.connect('clicked', self.on_delete_clicked) self.add_btn.connect('clicked', self.on_add_clicked) - self.get_widget('help').connect('clicked', + self.get_widget('definition_help').connect('clicked', self.on_help_clicked) - self.get_widget('cancel').connect('clicked', + self.get_widget('definition_cancel').connect('clicked', self.close_window) self.fname.connect('changed', self.filter_name_changed) diff --git a/src/FilterEditor/_EditRule.py b/src/FilterEditor/_EditRule.py index 225a626c0..3abcf8b81 100644 --- a/src/FilterEditor/_EditRule.py +++ b/src/FilterEditor/_EditRule.py @@ -392,7 +392,7 @@ class EditRule(ManagedWindow.ManagedWindow): self.define_glade('rule_editor', const.RULE_GLADE) self.set_window(self.get_widget('rule_editor'), - self.get_widget('title'),label) + self.get_widget('rule_editor_title'),label) self.window.hide() self.valuebox = self.get_widget('valuebox') self.rname = self.get_widget('ruletree') @@ -559,9 +559,9 @@ class EditRule(ManagedWindow.ManagedWindow): self.selection.connect('changed', self.on_node_selected) self.rname.connect('button-press-event', self._button_press) self.rname.connect('key-press-event', self._key_press) - self.get_widget('ok').connect('clicked', self.rule_ok) - self.get_widget('cancel').connect('clicked', self.close_window) - self.get_widget('help').connect('clicked', self.on_help_clicked) + self.get_widget('rule_editor_ok').connect('clicked', self.rule_ok) + self.get_widget('rule_editor_cancel').connect('clicked', self.close_window) + self.get_widget('rule_editor_help').connect('clicked', self.on_help_clicked) self.show() diff --git a/src/FilterEditor/_FilterEditor.py b/src/FilterEditor/_FilterEditor.py index 0c2eb247b..f34085115 100644 --- a/src/FilterEditor/_FilterEditor.py +++ b/src/FilterEditor/_FilterEditor.py @@ -83,10 +83,10 @@ class FilterEditor(ManagedWindow.ManagedWindow): self.define_glade('filter_list', const.RULE_GLADE) self.filter_list = self.get_widget('filters') - self.edit = self.get_widget('edit') - self.clone = self.get_widget('clone') - self.delete = self.get_widget('delete') - self.test = self.get_widget('test') + self.edit = self.get_widget('filter_list_edit') + self.clone = self.get_widget('filter_list_clone') + self.delete = self.get_widget('filter_list_delete') + self.test = self.get_widget('filter_list_test') self.edit.set_sensitive(False) self.clone.set_sensitive(False) @@ -94,7 +94,7 @@ class FilterEditor(ManagedWindow.ManagedWindow): self.test.set_sensitive(False) self.set_window(self.get_widget('filter_list'), - self.get_widget('title'), + self.get_widget('filter_list_title'), _TITLES[self.namespace]) self.edit.connect('clicked', self.edit_filter) @@ -102,9 +102,9 @@ class FilterEditor(ManagedWindow.ManagedWindow): self.test.connect('clicked', self.test_clicked) self.delete.connect('clicked', self.delete_filter) - self.connect_button('help', self.help_clicked) - self.connect_button('close', self.close) - self.connect_button('add', self.add_new_filter) + self.connect_button('filter_list_help', self.help_clicked) + self.connect_button('filter_list_close', self.close) + self.connect_button('filter_list_add', self.add_new_filter) self.uistate.connect('filter-name-changed', self.clean_after_rename) diff --git a/src/FilterEditor/_ShowResults.py b/src/FilterEditor/_ShowResults.py index 5d48f78ec..3c505a75c 100644 --- a/src/FilterEditor/_ShowResults.py +++ b/src/FilterEditor/_ShowResults.py @@ -74,7 +74,7 @@ class ShowResults(ManagedWindow.ManagedWindow): self.define_glade('test', const.RULE_GLADE,) self.set_window( self.get_widget('test'), - self.get_widget('title'), + self.get_widget('test_title'), _('Filter Test')) render = gtk.CellRendererText() @@ -89,7 +89,7 @@ class ShowResults(ManagedWindow.ManagedWindow): column_n = gtk.TreeViewColumn(_('ID'), render, text=1) tree.append_column(column_n) - self.get_widget('close').connect('clicked', self.close) + self.get_widget('test_close').connect('clicked', self.close) new_list = sorted( (self.sort_val_from_handle(h) for h in handle_list), diff --git a/src/glade/rule.glade b/src/glade/rule.glade index 4646b9537..346da5831 100644 --- a/src/glade/rule.glade +++ b/src/glade/rule.glade @@ -33,7 +33,7 @@ True - + True 6 center @@ -57,7 +57,7 @@ True 6 - + True True True @@ -79,7 +79,7 @@ - + True False True @@ -102,7 +102,7 @@ - + True False True @@ -340,7 +340,7 @@ True end - + gtk-cancel True True @@ -356,7 +356,7 @@ - + gtk-ok True False @@ -373,7 +373,7 @@ - + gtk-help True True @@ -398,9 +398,9 @@ - cancel - ok - help + definition_cancel + definition_ok + definition_help @@ -418,7 +418,7 @@ True - + True center @@ -457,7 +457,7 @@ True 6 - + True True True @@ -479,7 +479,7 @@ - + True False True @@ -502,7 +502,7 @@ - + True False True @@ -525,7 +525,7 @@ - + True True False @@ -546,7 +546,7 @@ - + True False True @@ -606,7 +606,7 @@ True end - + gtk-close True True @@ -622,7 +622,7 @@ - + gtk-help True True @@ -647,8 +647,8 @@ - close - help + filter_list_close + filter_list_help @@ -663,7 +663,7 @@ True 8 - + True 6 @@ -696,7 +696,7 @@ True end - + gtk-close True True @@ -721,7 +721,7 @@ - close + test_close @@ -738,7 +738,7 @@ True 6 - + True True @@ -870,7 +870,7 @@ True end - + gtk-cancel True True @@ -886,7 +886,7 @@ - + gtk-ok True True @@ -902,7 +902,7 @@ - + gtk-help True True @@ -927,9 +927,9 @@ - cancel - ok - help + rule_editor_cancel + rule_editor_ok + rule_editor_help