[virt-tools-list] [PATCH 2/3] Use override_background_color instead of modify_bg
Cole Robinson
crobinso at redhat.com
Wed Mar 13 13:07:44 UTC 2013
On 03/11/2013 04:21 AM, Giuseppe Scrivano wrote:
> 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",
>
Thanks Giuseppe, pushed now.
- Cole
More information about the virt-tools-list
mailing list