mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
host: Show hostname in window title
Activating a connected host entry in manager opens host window.
This commit is contained in:
parent
297e199d6e
commit
00b10a93d3
@ -49,6 +49,9 @@ class vmmHost(gobject.GObject):
|
||||
topwin = self.window.get_widget("vmm-host")
|
||||
topwin.hide()
|
||||
|
||||
self.title = conn.get_short_hostname() + " " + topwin.get_title()
|
||||
topwin.set_title(self.title)
|
||||
|
||||
self.err = vmmErrorDialog(topwin,
|
||||
0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE,
|
||||
_("Unexpected Error"),
|
||||
|
@ -697,12 +697,14 @@ class vmmManager(gobject.GObject):
|
||||
conn = self.current_connection()
|
||||
if conn.get_state() == vmmConnection.STATE_DISCONNECTED:
|
||||
conn.open()
|
||||
return True
|
||||
|
||||
def open_vm_console(self,ignore,ignore2=None,ignore3=None):
|
||||
if self.current_vmuuid():
|
||||
self.emit("action-show-console", self.current_connection_uri(), self.current_vmuuid())
|
||||
elif self.current_connection():
|
||||
self.open_connection()
|
||||
if not self.open_connection():
|
||||
self.emit("action-show-host", self.current_connection_uri())
|
||||
|
||||
def open_clone_window(self, ignore1=None, ignore2=None, ignore3=None):
|
||||
if self.current_vmuuid():
|
||||
|
Loading…
Reference in New Issue
Block a user