aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/msec/msecgui.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index fd93ab9..0a30102 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -339,7 +339,7 @@ class MsecGui:
curperms = self.permconfig
# creating preview window
- dialog = Gtk.Dialog(_('Saving changes...'), self.window, Gtk.DialogFlags.MODAL)
+ dialog = Gtk.Dialog(_('Saving changes...'), self.window, modal=True)
dialog.add_action_widget(Gtk.Button(label=_('Cancel')), Gtk.ResponseType.CANCEL)
if ask_ignore:
dialog.add_action_widget(Gtk.Button(label=_("Ignore and quit")), Gtk.ResponseType.REJECT)
@@ -365,7 +365,7 @@ class MsecGui:
vbox = Gtk.VBox()
exp_vbox.set_size_request(640, 280)
- sw.add_with_viewport(vbox)
+ sw.gtk_container_add(vbox)
# were there changes in configuration?
num_changes, allchanges, messages = self.check_for_changes(curconfig, curperms)
@@ -712,7 +712,7 @@ class MsecGui:
dialog = Gtk.MessageDialog(
parent=self.window,
flags=0,
- type=Gtk.MessageType.INFO,
+ message_type=Gtk.MessageType.INFO,
buttons=Gtk.ButtonsType.YES_NO)
dialog.set_markup(_("Do you want to run the <b>%s</b> periodic check? Please note that it could take a considerable time to finish.") % check)
dialog.show_all()
@@ -733,7 +733,7 @@ class MsecGui:
progressbar.set_text(_("Please wait, running checks..."))
vbox.pack_start(progressbar, True, True, 0)
- label = Gtk.Label(_("Please wait, this might take a few minutes."))
+ label = Gtk.Label(label=_("Please wait, this might take a few minutes."))
vbox.pack_start(label, True, True, 0)
# show window
@@ -1426,7 +1426,7 @@ class MsecGui:
# module
hbox = Gtk.HBox()
- hbox.pack_start(Gtk.Label(_("Check: ")), True, True, 0)
+ hbox.pack_start(Gtk.Label(label=_("Check: ")), True, True, 0)
entry_module = Gtk.ComboBoxText()
pos = 0
for item in config.CHECKS_WITH_EXCEPTIONS:
@@ -1441,7 +1441,7 @@ class MsecGui:
# exception
hbox = Gtk.HBox()
- hbox.pack_start(Gtk.Label(_("Exception: ")), True, True, 0)
+ hbox.pack_start(Gtk.Label(label=_("Exception: ")), True, True, 0)
entry_exception = Gtk.Entry()
entry_exception.set_text(exception)
hbox.pack_start(entry_exception, True, True, 0)
@@ -1502,8 +1502,8 @@ class MsecGui:
dialog.vbox.pack_start(label, False, False, padding=5)
# aligning entries
- sizegroup1 = Gtk.SizeGroup(Gtk.SizeGroupMode.HORIZONTAL)
- sizegroup2 = Gtk.SizeGroup(Gtk.SizeGroupMode.HORIZONTAL)
+ sizegroup1 = Gtk.SizeGroup(mode=Gtk.SizeGroupMode.HORIZONTAL)
+ sizegroup2 = Gtk.SizeGroup(mode=Gtk.SizeGroupMode.HORIZONTAL)
if not path:
# file
@@ -1517,7 +1517,7 @@ class MsecGui:
sizegroup2.add_widget(entry_file)
dialog.vbox.pack_start(hbox, False, False, 0)
- label = Gtk.Label(_("Please specify new file owner and permissions, or use 'current' to keep current settings."))
+ label = Gtk.Label(label=_("Please specify new file owner and permissions, or use 'current' to keep current settings."))
label.set_line_wrap(True)
label.set_use_markup(True)
dialog.vbox.pack_start(label, False, False, padding=5)
@@ -1649,7 +1649,7 @@ class MsecGui:
# new value
hbox = Gtk.HBox()
alignment = Gtk.Alignment.new(xalign=0.5, yalign=0.5, xscale=1.0, yscale=1.0)
- alignment.add(Gtk.Label(_("New value:")))
+ alignment.add(Gtk.Label(label=_("New value:")))
hbox.add(alignment)
if '*' in params:
# string parameter