aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2024-04-13 11:20:27 +0200
committerPapoteur <papoteur@mageia.org>2024-05-15 23:10:30 +0200
commit30d6ae8c1eb646b3e42fe0a171e89c2a8058b015 (patch)
treec12933a678cefeb6aba0d6a351605b9117260919 /src
parent5ef08e9a44aa7f93651907268faafbe76819cf64 (diff)
downloadmsec-30d6ae8c1eb646b3e42fe0a171e89c2a8058b015.tar
msec-30d6ae8c1eb646b3e42fe0a171e89c2a8058b015.tar.gz
msec-30d6ae8c1eb646b3e42fe0a171e89c2a8058b015.tar.bz2
msec-30d6ae8c1eb646b3e42fe0a171e89c2a8058b015.tar.xz
msec-30d6ae8c1eb646b3e42fe0a171e89c2a8058b015.zip
Remove deprecaetd Gtk.Widget.modify_font
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/msecgui.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index a005bb3..19bd387 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -174,7 +174,6 @@ class MsecGui:
# loading the current config
self.reload_config()
-
if embed:
# embedding in MCC
self.window = Gtk.Plug.new(embed)
@@ -236,7 +235,7 @@ class MsecGui:
image.set_from_pixbuf(pixbuf)
banner.pack_start(image, False, False, 0)
label = Gtk.Label(label=_("MSEC: System Security and Audit"))
- label.modify_font(Pango.FontDescription("13"))
+ #label.modify_font(Pango.FontDescription("13"))
banner.pack_start(label, False, False, 0)
main_vbox.pack_start(banner, False, False, 0)
except:
@@ -491,7 +490,6 @@ class MsecGui:
# treeview
treeview = Gtk.TreeView(model=lstore)
- treeview.set_rules_hint(True)
treeview.set_search_column(self.COLUMN_DESCR)
treeview.connect('row-activated', self.option_changed, lstore)
@@ -589,7 +587,7 @@ class MsecGui:
print("Unable to load icon %s: %s" % (icon, sys.exc_info()[1]))
label = Gtk.Label(label=text)
label.set_property("xalign", 0.0)
- label.modify_font(Pango.FontDescription("12"))
+ #label.modify_font(Pango.FontDescription("12"))
label.set_property("xalign", 0.0)
label.set_property("yalign", 0.5)
@@ -656,7 +654,7 @@ class MsecGui:
label = Gtk.Label(label=_("Periodic checks"))
label.set_property("xalign", 0.0)
label.set_property("yalign", 0.5)
- label.modify_font(Pango.FontDescription("11"))
+ # label.modify_font(Pango.FontDescription("11"))
table.attach(label, 2, 3, row, row + 1, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, 0, 0, 0)
row += 1
for check, logfile, updated_n, updated in tools.periodic_check_status(log):
@@ -1155,7 +1153,6 @@ class MsecGui:
# treeview
treeview = Gtk.TreeView(model=lstore)
- treeview.set_rules_hint(True)
treeview.set_search_column(self.COLUMN_EXCEPTION)
# TODO: fix
@@ -1227,7 +1224,6 @@ class MsecGui:
# treeview
treeview = Gtk.TreeView(model=lstore)
- treeview.set_rules_hint(True)
treeview.set_search_column(self.COLUMN_DESCR)
# TODO: fix