From 775aef5f9b44828619833b8739cee4fca8ab7666 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 6 Nov 2018 11:38:21 +0000 Subject: [PATCH] [WebUI] Fix creating icon on GTK3 prefs page --- deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py b/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py index 3697a1d00..f67791761 100644 --- a/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py +++ b/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py @@ -81,9 +81,7 @@ class GtkUI(Gtk3PluginBase): vbox = self.builder.get_object('prefs_box') hbox = Gtk.HBox() - icon = Gtk.image_new_from_stock( - Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.SMALL_TOOLBAR - ) + icon = Gtk.Image.new_from_icon_name('dialog-error', Gtk.IconSize.BUTTON) icon.set_padding(5, 5) hbox.pack_start(icon, False, False, 0)