From ce3090f8b6d3b08fe2b64f21c89389db71d110c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 30 Apr 2015 10:19:55 +0200 Subject: Add "label=" argument for Gtk.Expander calls (Thierry Vignaud, mga#14586) --- src/msec/msecgui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.1