Move sharedui.py to vmmenu.py

Since that's all it contains now
This commit is contained in:
Cole Robinson 2014-01-28 18:04:46 -05:00
parent 00d5312bd6
commit c5581c01d2
4 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ from gi.repository import Gdk
import libvirt
from virtManager import sharedui
from virtManager import vmmenu
from virtManager import uiutil
from virtManager.baseclass import vmmGObjectUI
from virtManager.addhardware import vmmAddHardware
@ -638,13 +638,13 @@ class vmmDetails(vmmGObjectUI):
def init_menus(self):
# Virtual Machine menu
menu = sharedui.VMShutdownMenu(self, lambda: self.vm)
menu = vmmenu.VMShutdownMenu(self, lambda: self.vm)
self.widget("control-shutdown").set_menu(menu)
self.widget("control-shutdown").set_icon_name("system-shutdown")
topmenu = self.widget("details-vm-menu")
submenu = topmenu.get_submenu()
newmenu = sharedui.VMActionMenu(self, lambda: self.vm,
newmenu = vmmenu.VMActionMenu(self, lambda: self.vm,
show_open=False)
for child in submenu.get_children():
submenu.remove(child)

View File

@ -29,7 +29,7 @@ from gi.repository import GdkPixbuf
from virtinst import util
from virtManager import sharedui
from virtManager import vmmenu
from virtManager import uiutil
from virtManager.connection import vmmConnection
from virtManager.baseclass import vmmGObjectUI
@ -126,7 +126,7 @@ class vmmManager(vmmGObjectUI):
self.topwin.set_default_size(w or 550, h or 550)
self.prev_position = None
self.vmmenu = sharedui.VMActionMenu(self, self.current_vm)
self.vmmenu = vmmenu.VMActionMenu(self, self.current_vm)
self.connmenu = Gtk.Menu()
self.connmenu_items = {}
@ -297,7 +297,7 @@ class vmmManager(vmmGObjectUI):
self.widget("vm-new").set_icon_name("vm_new")
self.widget("vm-open").set_icon_name("icon_console")
menu = sharedui.VMShutdownMenu(self, self.current_vm)
menu = vmmenu.VMShutdownMenu(self, self.current_vm)
self.widget("vm-shutdown").set_icon_name("system-shutdown")
self.widget("vm-shutdown").set_menu(menu)

View File

@ -25,7 +25,7 @@ from gi.repository import GObject
from gi.repository import Gtk
# pylint: enable=E0611
from virtManager import sharedui
from virtManager import vmmenu
from virtManager.baseclass import vmmGObject
from virtManager.error import vmmErrorDialog
@ -303,7 +303,7 @@ class vmmSystray(vmmGObject):
# Build VM list entry
menu_item = build_image_menu_item(vm.get_name())
vm_mappings[uuid] = menu_item
vm_action_menu = sharedui.VMActionMenu(self, lambda: vm)
vm_action_menu = vmmenu.VMActionMenu(self, lambda: vm)
menu_item.set_submenu(vm_action_menu)
self.vm_action_dict[uuid] = vm_action_menu