[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH 2/3] Use override_background_color instead of modify_bg



override_background_color accepts a RGBA struct, use it directly.
---
 src/virtManager/clone.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/virtManager/clone.py b/src/virtManager/clone.py
index 7410bb4..4bbc97a 100644
--- a/src/virtManager/clone.py
+++ b/src/virtManager/clone.py
@@ -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",
-- 
1.7.10.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]