diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-18 19:17:32 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-18 19:17:32 +0000 |
commit | f4b0e17eb9ff458b495ef7e3f6a24c8cc6f7e27b (patch) | |
tree | 2ec11c00287a8fbeda2168bcbe1dce4423d5a3a5 /src | |
parent | 90a6d73b0dec9dd17365a369ef8af1bba0dd8e6b (diff) | |
download | msec-f4b0e17eb9ff458b495ef7e3f6a24c8cc6f7e27b.tar msec-f4b0e17eb9ff458b495ef7e3f6a24c8cc6f7e27b.tar.gz msec-f4b0e17eb9ff458b495ef7e3f6a24c8cc6f7e27b.tar.bz2 msec-f4b0e17eb9ff458b495ef7e3f6a24c8cc6f7e27b.tar.xz msec-f4b0e17eb9ff458b495ef7e3f6a24c8cc6f7e27b.zip |
Improve email location placement
Diffstat (limited to 'src')
-rwxr-xr-x | src/msec/msecgui.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py index ebb25ba..35795e9 100755 --- a/src/msec/msecgui.py +++ b/src/msec/msecgui.py @@ -619,27 +619,24 @@ class MsecGui: # putting levels to vbox # notifications by email - self.notify_mail = gtk.CheckButton(_("Send security alerts by email")) + hbox = gtk.HBox() + self.notify_mail = gtk.CheckButton(_("Send security alerts by email to:")) if self.msecconfig.get("MAIL_WARN") == "yes": self.notify_mail.set_active(True) - vbox.pack_start(self.notify_mail, False, False) + hbox.pack_start(self.notify_mail, False, False) # email address - hbox = gtk.HBox() - label = gtk.Label(_("System administrator email address:")) - label.set_property("xalign", 0.2) - hbox.pack_start(label, False, False) self.email_entry = gtk.Entry() email = self.msecconfig.get("MAIL_USER") if not email: email = "" self.email_entry.set_text(email) self.email_entry.connect('changed', self.change_email) - hbox.pack_start(self.email_entry, False, False) + hbox.pack_start(self.email_entry, False, False, 5) vbox.pack_start(hbox, False, False) # updating the mail address/checkbox relationship - self.notify_mail.connect('clicked', self.notify_mail_changed, hbox) + self.notify_mail.connect('clicked', self.notify_mail_changed, self.email_entry) self.checkboxes_callbacks["MAIL_WARN"] = (self.notify_mail_changed, self.notify_mail, hbox) self.notify_mail_changed(self.notify_mail, hbox) |