FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 04-08-2008, 11:32 AM
Alan Pevec
 
Default fix Delete button visibility

fix Delete button visibility

change Delete button visibility if selected vm is started/stopped, in the same way it's changed upon row selection

Signed-off-by: Alan Pevec <apevec@redhat.com>

--- a/src/virtManager/manager.py Thu Apr 03 19:12:20 2008 -0400
+++ b/src/virtManager/manager.py Tue Apr 08 13:11:13 2008 +0200
@@ -475,8 +475,16 @@ class vmmManager(gobject.GObject):
del self.rows[vm.get_uuid()]
break

- if missing and wanted:
- self._append_vm(model, vm, vm.get_connection())
+ if wanted:
+ if missing:
+ self._append_vm(model, vm, vm.get_connection())
+ elif vm.get_uuid() == self.current_vmuuid():
+ if vm.is_active():
+ self.window.get_widget("vm-delete").set_sensitive(False)
+ else:
+ self.window.get_widget("vm-delete").set_sensitive(True)
+
+


def vm_resources_sampled(self, vm):

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-08-2008, 07:17 PM
Alan Pevec
 
Default fix Delete button visibility

Alan Pevec wrote:

fix Delete button visibility

change Delete button visibility if selected vm is started/stopped, in
the same way it's changed upon row selection


Cole pointed out this is already fixed by http://hg.et.redhat.com/virt/applications/virt-manager--devel?cs=dc9c723e13ff
and it's in 0.5.4

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 01:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org