[WebUI] Fix creating icon on GTK3 prefs page

This commit is contained in:
Calum Lind 2018-11-06 11:38:21 +00:00
parent 83cac4978a
commit 775aef5f9b
1 changed files with 1 additions and 3 deletions

View File

@ -81,9 +81,7 @@ class GtkUI(Gtk3PluginBase):
vbox = self.builder.get_object('prefs_box') vbox = self.builder.get_object('prefs_box')
hbox = Gtk.HBox() hbox = Gtk.HBox()
icon = Gtk.image_new_from_stock( icon = Gtk.Image.new_from_icon_name('dialog-error', Gtk.IconSize.BUTTON)
Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.SMALL_TOOLBAR
)
icon.set_padding(5, 5) icon.set_padding(5, 5)
hbox.pack_start(icon, False, False, 0) hbox.pack_start(icon, False, False, 0)