~ubuntu-branches/ubuntu/maverick/audit/maverick

« back to all changes in this revision

Viewing changes to system-config-audit/src/main_window.py

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Matthias Hahn
  • Date: 2008-06-25 09:56:59 UTC
  • mfrom: (1.1.4 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080625095659-ljx2fwefr4x3bb6v
Tags: 1.7.4-1
* New upstream release (Closes: #452414)
* Drop debian/audispd.8 in favour of updtream version.
* debian/control:
  - Build-Deps: +libldap2-dev
  - Bump Standards-Version: 3.8.0
  - New audispd-plugins package.
  - system-config-audit package is currently disabled: rpath problem.
* debian/rules
  - Include /usr/share/quilt/quilt.mak
  - Start auditd already in rcS.
* Add debian/README.source as required by 3.8.0
* debian/auditd.postinst adopted from the Ubuntu branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Main application window.
2
2
# coding=utf-8
3
3
#
4
 
# Copyright (C) 2007 Red Hat, Inc.  All rights reserved.
 
4
# Copyright (C) 2007, 2008 Red Hat, Inc.  All rights reserved.
5
5
# This copyrighted material is made available to anyone wishing to use, modify,
6
6
# copy, or redistribute it subject to the terms and conditions of the GNU
7
7
# General Public License v.2.  This program is distributed in the hope that it
62
62
                           'status_enabled', 'status_lost', 'status_refresh')
63
63
 
64
64
    def __init__(self):
65
 
        DialogBase.__init__(self, 'app_window')
 
65
        DialogBase.__init__(self, 'app_window', None)
66
66
 
67
67
        self.window.connect('delete-event', self.__menu_quit_activate)
68
68
        self.menu_quit.connect('activate', self.__menu_quit_activate)
144
144
        Return True if saved successfully, False otherwise.'''
145
145
        if self.config == self.original_config: # See Config.__ne__
146
146
            return True
147
 
        dlg = SaveDialog()
 
147
        dlg = SaveDialog(self.window)
148
148
        (res, apply_config) = dlg.run(self.config.rules)
149
149
        dlg.destroy()
150
150
        if not res:
255
255
    def __config_watches_edit_clicked(self, *_):
256
256
        rules = self.config.rules
257
257
        (exit_rules, watch_rules) = exit_watch_rules(rules.exit_rules)
258
 
        dlg = WatchListDialog()
 
258
        dlg = WatchListDialog(self.window)
259
259
        dlg.run(watch_rules)
260
260
        dlg.destroy()
261
261
        rules.exit_rules = exit_rules + watch_rules
264
264
    def __config_rules_edit_clicked(self, *_):
265
265
        rules = self.config.rules
266
266
        (exit_rules, watch_rules) = exit_watch_rules(rules.exit_rules)
267
 
        dlg = RuleListDialog()
 
267
        dlg = RuleListDialog(self.window)
268
268
        dlg.run(rules.task_rules, rules.entry_rules, exit_rules)
269
269
        dlg.destroy()
270
270
        rules.exit_rules = exit_rules + watch_rules
271
271
        self._refresh_config_stats()
272
272
 
273
273
    def __config_types_edit_clicked(self, *_):
274
 
        dlg = TypeListDialog()
 
274
        dlg = TypeListDialog(self.window)
275
275
        dlg.run(self.config)
276
276
        dlg.destroy()
277
277
        self._refresh_config_stats()
278
278
 
279
279
    def __config_global_edit_clicked(self, *_):
280
 
        dlg = GlobalDialog()
 
280
        dlg = GlobalDialog(self.window)
281
281
        dlg.run(self.config)
282
282
        dlg.destroy()
283
283
        self._refresh_config_stats()