aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-04-30 10:19:55 +0200
committerRémi Verschelde <rverschelde@gmail.com>2015-04-30 10:19:55 +0200
commitce3090f8b6d3b08fe2b64f21c89389db71d110c6 (patch)
treee97fd7ad06094f4053d9e61c38de2bb9a82ea637
parent758449cc292949eee122b1fdc2369e3bc17106e9 (diff)
downloadmsec-ce3090f8b6d3b08fe2b64f21c89389db71d110c6.tar
msec-ce3090f8b6d3b08fe2b64f21c89389db71d110c6.tar.gz
msec-ce3090f8b6d3b08fe2b64f21c89389db71d110c6.tar.bz2
msec-ce3090f8b6d3b08fe2b64f21c89389db71d110c6.tar.xz
msec-ce3090f8b6d3b08fe2b64f21c89389db71d110c6.zip
Add "label=" argument for Gtk.Expander calls (Thierry Vignaud, mga#14586)
-rwxr-xr-xsrc/msec/msecgui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 81dffac..787a0ab 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -394,13 +394,13 @@ class MsecGui:
break
# adding specific messages
- advanced = Gtk.Expander(_("Details"))
+ advanced = Gtk.Expander(label=_("Details"))
vbox_advanced = Gtk.VBox()
advanced.add(vbox_advanced)
vbox.pack_start(advanced, False, False, padding=DEFAULT_SPACING)
for cat in ['info', 'critical', 'error', 'warn', 'debug']:
msgs = messages[cat]
- expander = Gtk.Expander(_('MSEC messages (%s): %d') % (cat, len(msgs)))
+ expander = Gtk.Expander(label=_('MSEC messages (%s): %d') % (cat, len(msgs)))
textview = Gtk.TextView()
textview.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)
textview.set_editable(False)
@@ -414,7 +414,7 @@ class MsecGui:
vbox_advanced.pack_start(expander, False, False, padding=DEFAULT_SPACING)
# hide all information in an expander
- expander = Gtk.Expander(_("Details (%d changes)..") % num_changes)
+ expander = Gtk.Expander(label=_("Details (%d changes)..") % num_changes)
expander.add(exp_vbox)
dialog.vbox.pack_start(expander, False, False, padding=DEFAULT_SPACING)