[WebUI] Fix creating icon on GTK3 prefs page
This commit is contained in:
parent
83cac4978a
commit
775aef5f9b
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue