host: Show hostname in window title

Activating a connected host entry in manager opens host window.
This commit is contained in:
Jon Nordby 2009-11-10 21:33:51 +01:00
parent 297e199d6e
commit 00b10a93d3
2 changed files with 6 additions and 1 deletions

View File

@ -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"),

View File

@ -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():