Use override_background_color instead of modify_bg

override_background_color accepts a RGBA struct, use it directly.
This commit is contained in:
Giuseppe Scrivano 2013-03-11 09:21:47 +01:00 committed by Cole Robinson
parent d2d759abb4
commit a6881c6ff1

View File

@ -219,8 +219,8 @@ class vmmCloneVM(vmmGObjectUI):
context = self.topwin.get_style_context()
defcolor = context.get_background_color(Gtk.StateType.NORMAL)
self.widget("storage-viewport").modify_bg(Gtk.StateType.NORMAL,
defcolor.to_color())
self.widget("storage-viewport").override_background_color(Gtk.StateType.NORMAL,
defcolor)
box = self.widget("clone-vm-icon-box")
image = Gtk.Image.new_from_icon_name("vm_clone_wizard",