Import new icons for VMs, VM status, and some devices.
BIN
pixmaps/device_cpu.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
pixmaps/device_mem.png
Normal file
After Width: | Height: | Size: 783 B |
BIN
pixmaps/device_pci.png
Normal file
After Width: | Height: | Size: 945 B |
BIN
pixmaps/device_serial.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
pixmaps/device_usb.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
pixmaps/icon_console.png
Normal file
After Width: | Height: | Size: 713 B |
Before Width: | Height: | Size: 1.6 KiB |
BIN
pixmaps/icon_details.png
Normal file
After Width: | Height: | Size: 915 B |
Before Width: | Height: | Size: 792 B |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 379 B |
BIN
pixmaps/state_progress.png
Normal file
After Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 366 B |
BIN
pixmaps/state_unknown.png
Normal file
After Width: | Height: | Size: 552 B |
BIN
pixmaps/vm_large.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
pixmaps/vm_medium.png
Normal file
After Width: | Height: | Size: 916 B |
BIN
pixmaps/vm_new.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
pixmaps/vm_new_large.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
pixmaps/vm_small.png
Normal file
After Width: | Height: | Size: 800 B |
BIN
pixmaps/vm_tiny.png
Normal file
After Width: | Height: | Size: 621 B |
@ -78,13 +78,13 @@ class vmmConfig:
|
|||||||
self.keyring = None
|
self.keyring = None
|
||||||
|
|
||||||
self.status_icons = {
|
self.status_icons = {
|
||||||
libvirt.VIR_DOMAIN_BLOCKED: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_blocked.png", 18, 18),
|
libvirt.VIR_DOMAIN_BLOCKED: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_running.png", 18, 18),
|
||||||
libvirt.VIR_DOMAIN_CRASHED: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_crashed.png", 18, 18),
|
libvirt.VIR_DOMAIN_CRASHED: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_crashed.png", 18, 18),
|
||||||
libvirt.VIR_DOMAIN_PAUSED: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_paused.png", 18, 18),
|
libvirt.VIR_DOMAIN_PAUSED: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_paused.png", 18, 18),
|
||||||
libvirt.VIR_DOMAIN_RUNNING: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_running.png", 18, 18),
|
libvirt.VIR_DOMAIN_RUNNING: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_running.png", 18, 18),
|
||||||
libvirt.VIR_DOMAIN_SHUTDOWN: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_shutdown.png", 18, 18),
|
libvirt.VIR_DOMAIN_SHUTDOWN: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_shutoff.png", 18, 18),
|
||||||
libvirt.VIR_DOMAIN_SHUTOFF: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_shutoff.png", 18, 18),
|
libvirt.VIR_DOMAIN_SHUTOFF: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_shutoff.png", 18, 18),
|
||||||
libvirt.VIR_DOMAIN_NOSTATE: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_idle.png", 18, 18),
|
libvirt.VIR_DOMAIN_NOSTATE: gtk.gdk.pixbuf_new_from_file_at_size(self.get_icon_dir() + "/state_running.png", 18, 18),
|
||||||
}
|
}
|
||||||
#initialize the help stuff
|
#initialize the help stuff
|
||||||
props = { gnome.PARAM_APP_DATADIR : self.get_data_dir()}
|
props = { gnome.PARAM_APP_DATADIR : self.get_data_dir()}
|
||||||
|
@ -337,8 +337,6 @@ class vmmDetails(gobject.GObject):
|
|||||||
|
|
||||||
self.update_widget_states(self.vm, self.vm.status())
|
self.update_widget_states(self.vm, self.vm.status())
|
||||||
|
|
||||||
self.pixbuf_processor = gtk.gdk.pixbuf_new_from_file(config.get_icon_dir() + "/icon_cpu.png")
|
|
||||||
self.pixbuf_memory = gtk.gdk.pixbuf_new_from_file(config.get_icon_dir() + "/icon_cpu.png")
|
|
||||||
self.prepare_hw_list()
|
self.prepare_hw_list()
|
||||||
self.hw_selected(page=0)
|
self.hw_selected(page=0)
|
||||||
self.refresh_vm_info()
|
self.refresh_vm_info()
|
||||||
@ -1757,10 +1755,12 @@ class vmmDetails(gobject.GObject):
|
|||||||
"computer")
|
"computer")
|
||||||
self.add_hw_list_option("Performance", HW_LIST_TYPE_STATS, [],
|
self.add_hw_list_option("Performance", HW_LIST_TYPE_STATS, [],
|
||||||
"utilities-system-monitor")
|
"utilities-system-monitor")
|
||||||
self.add_hw_list_option("Processor", HW_LIST_TYPE_CPU, [], "icon_cpu")
|
self.add_hw_list_option("Processor", HW_LIST_TYPE_CPU, [],
|
||||||
self.add_hw_list_option("Memory", HW_LIST_TYPE_MEMORY, [], "icon_cpu")
|
"device_cpu")
|
||||||
|
self.add_hw_list_option("Memory", HW_LIST_TYPE_MEMORY, [],
|
||||||
|
"device_mem")
|
||||||
self.add_hw_list_option("Boot Options", HW_LIST_TYPE_BOOT, [],
|
self.add_hw_list_option("Boot Options", HW_LIST_TYPE_BOOT, [],
|
||||||
"icon_cpu")
|
"system-run")
|
||||||
|
|
||||||
self.repopulate_hw_list()
|
self.repopulate_hw_list()
|
||||||
|
|
||||||
@ -1855,13 +1855,17 @@ class vmmDetails(gobject.GObject):
|
|||||||
label += " %s" % charinfo[3] # Don't show port for console
|
label += " %s" % charinfo[3] # Don't show port for console
|
||||||
|
|
||||||
update_hwlist(HW_LIST_TYPE_CHAR, charinfo, label,
|
update_hwlist(HW_LIST_TYPE_CHAR, charinfo, label,
|
||||||
gtk.STOCK_CONNECT)
|
"device_serial")
|
||||||
|
|
||||||
# Populate host devices
|
# Populate host devices
|
||||||
for hostdevinfo in self.vm.get_hostdev_devices():
|
for hostdevinfo in self.vm.get_hostdev_devices():
|
||||||
currentHostdevs[hostdevinfo[2]] = 1
|
currentHostdevs[hostdevinfo[2]] = 1
|
||||||
|
if hostdevinfo[4] == "usb":
|
||||||
|
icon = "device_usb"
|
||||||
|
else:
|
||||||
|
icon = "device_pci"
|
||||||
update_hwlist(HW_LIST_TYPE_HOSTDEV, hostdevinfo, hostdevinfo[2],
|
update_hwlist(HW_LIST_TYPE_HOSTDEV, hostdevinfo, hostdevinfo[2],
|
||||||
"system-run")
|
icon)
|
||||||
|
|
||||||
# Populate video devices
|
# Populate video devices
|
||||||
for vidinfo in self.vm.get_video_devices():
|
for vidinfo in self.vm.get_video_devices():
|
||||||
|