aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-03 15:16:12 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-03 15:16:12 +0000
commit0324cead2304a52a184a7c564e910cc061bd04a7 (patch)
tree9bde865fb053cc5c2f122e211d1a0a760b955ad6
parentee04bc718eaa80bd438812156583c86c0b0d6e4b (diff)
downloadmsec-0324cead2304a52a184a7c564e910cc061bd04a7.tar
msec-0324cead2304a52a184a7c564e910cc061bd04a7.tar.gz
msec-0324cead2304a52a184a7c564e910cc061bd04a7.tar.bz2
msec-0324cead2304a52a184a7c564e910cc061bd04a7.tar.xz
msec-0324cead2304a52a184a7c564e910cc061bd04a7.zip
Added banner.
-rw-r--r--Makefile2
-rw-r--r--src/msec/msec.pngbin0 -> 2193 bytes
-rwxr-xr-xsrc/msec/msecgui.py18
3 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 003758a..7529e9a 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,8 @@ install: all
install -m755 src/msec/$$i $(RPM_BUILD_ROOT)/usr/sbin ; \
done
cp conf/perm.* conf/server.* conf/level.* $(RPM_BUILD_ROOT)/etc/security/msec
+ # install banner
+ install -m755 src/msec/msec.png $(RPM_BUILD_ROOT)/usr/share/msec
mkdir -p $(RPM_BUILD_ROOT)/var/log
mkdir -p $(RPM_BUILD_ROOT)/var/log/security
diff --git a/src/msec/msec.png b/src/msec/msec.png
new file mode 100644
index 0000000..373b691
--- /dev/null
+++ b/src/msec/msec.png
Binary files differ
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 90e9721..bc0120e 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -8,6 +8,7 @@ import sys
import string
import getopt
import signal
+import traceback
import Queue
# PyGTK
@@ -88,6 +89,7 @@ SAVE_SETTINGS_TEXT=_("""Save and apply new configuration?""")
# gui-related settings
DEFAULT_SPACING=5
+BANNER="msec.png"
class MsecGui:
"""Msec GUI"""
@@ -180,6 +182,22 @@ class MsecGui:
menuitem.set_sensitive(False)
menu.add(menuitem)
+ # creating logo
+ banner = gtk.HBox(homogeneous=False, spacing=10)
+ try:
+ # logo
+ image = gtk.Image()
+ pixbuf = gtk.gdk.pixbuf_new_from_file(BANNER)
+ image.set_from_pixbuf(pixbuf)
+ banner.pack_start(image, False, False)
+ label = gtk.Label(_("MSEC: System Security and Audit"))
+ label.modify_font(pango.FontDescription("13"))
+ banner.pack_start(label, False, False)
+ main_vbox.pack_start(banner, False, False)
+ except:
+ traceback.print_exc()
+ print "Not found"
+
# creating tabs
self.notebook = gtk.Notebook()
main_vbox.add(self.notebook)