aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-02-26 15:46:43 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-02-26 15:46:43 +0000
commit145f88ef158b614aabcf9a6b97bf4a4614cf7657 (patch)
treee6976ea3306b25bc57ce3f4bbc7c45816741c0dc
parent66182514fa1d6b4943687619542136c52760cb1b (diff)
downloadmsec-145f88ef158b614aabcf9a6b97bf4a4614cf7657.tar
msec-145f88ef158b614aabcf9a6b97bf4a4614cf7657.tar.gz
msec-145f88ef158b614aabcf9a6b97bf4a4614cf7657.tar.bz2
msec-145f88ef158b614aabcf9a6b97bf4a4614cf7657.tar.xz
msec-145f88ef158b614aabcf9a6b97bf4a4614cf7657.zip
Improve UI
-rwxr-xr-xsrc/msec/msecgui.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index fbbaec3..678098b 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -575,7 +575,7 @@ class MsecGui:
firewall_status = tools.find_firewall_info(log)
label = gtk.Label(firewall_status)
v.pack_start(label, False, False)
- button = gtk.Button(_("Configure.."))
+ button = gtk.Button(_("Configure"))
button.connect('clicked', self.run_configure_app, tools.FIREWALL_CMD)
v.pack_start(button, False, False)
# size groups
@@ -606,12 +606,12 @@ class MsecGui:
msec_status.append(_("Custom settings: %d") % custom_count)
label = gtk.Label("\n".join(msec_status))
v.pack_start(label, False, False)
- button = gtk.Button(_("Configure.."))
+ button = gtk.Button(_("Configure"))
button.connect('clicked', lambda x: self.main_notebook.set_current_page(1))
# size groups
sizegroup1.add_widget(label)
sizegroup2.add_widget(button)
- v.pack_start(button)
+ v.pack_start(button, False, False)
item.pack_start(v, False, False, padding=12)
vbox.pack_start(item, False, False)
@@ -782,7 +782,8 @@ class MsecGui:
self.msecconfig.set("MAIL_WARN", "yes")
param.set_sensitive(True)
else:
- self.msecconfig.set("MAIL_WARN", "no")
+ if self.msecconfig.get("MAIL_WARN"):
+ self.msecconfig.set("MAIL_WARN", "no")
param.set_sensitive(False)
def notify_changed(self, widget, param):