From 6c55b3bd0635349f85d025d17ebb1d533d8f59a3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 31 Mar 2020 15:17:36 +0200 Subject: Use label= for GtkLabel to avoid deprecation warning --- src/prepaid-manager-applet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/prepaid-manager-applet.py') diff --git a/src/prepaid-manager-applet.py b/src/prepaid-manager-applet.py index ab47f88..f0a4dbf 100755 --- a/src/prepaid-manager-applet.py +++ b/src/prepaid-manager-applet.py @@ -518,7 +518,7 @@ class PPMEnableModemInfoBar(PPMInfoBar): PPMInfoBar.__init__(self, view) self.info_bar.add_button(_("Enable"), Gtk.ResponseType.OK) self.info_bar.set_message_type(Gtk.MessageType.WARNING) - self.msg_label = Gtk.Label(_("Modem not enabled")) + self.msg_label = Gtk.Label(label=_("Modem not enabled")) content_area = self.info_bar.get_content_area() content_area.add(self.msg_label) self.msg_label.show() @@ -560,7 +560,7 @@ class PPMNoModemFoundInfoBar(PPMInfoBar): def __init__(self, container): PPMInfoBar.__init__(self, container) self.info_bar.set_message_type(Gtk.MessageType.WARNING) - self.msg_label = Gtk.Label(_("No modem found.")) + self.msg_label = Gtk.Label(label=_("No modem found.")) content_area = self.info_bar.get_content_area() content_area.add(self.msg_label) self.info_bar.add_button(_("Try again"), Gtk.ResponseType.OK) -- cgit v1.2.3