mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
ui: Set non-stock button images in glade, not explicitly in code
This commit is contained in:
@@ -168,19 +168,9 @@ class vmmCreateInterface(vmmGObjectUI):
|
||||
self.widget("pages").set_show_tabs(False)
|
||||
self.widget("bond-pages").set_show_tabs(False)
|
||||
|
||||
finish_img = Gtk.Image.new_from_stock(Gtk.STOCK_QUIT,
|
||||
Gtk.IconSize.BUTTON)
|
||||
self.widget("finish").set_image(finish_img)
|
||||
|
||||
blue = Gdk.Color.parse("#0072A8")[1]
|
||||
self.widget("header").modify_bg(Gtk.StateType.NORMAL, blue)
|
||||
|
||||
box = self.widget("header-icon-box")
|
||||
image = Gtk.Image.new_from_icon_name("network-idle",
|
||||
Gtk.IconSize.DIALOG)
|
||||
image.show()
|
||||
box.pack_end(image, False, False, False)
|
||||
|
||||
# Interface type
|
||||
type_list = self.widget("interface-type")
|
||||
type_model = Gtk.ListStore(str, str)
|
||||
|
||||
Reference in New Issue
Block a user