mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 23:23:23 -06:00
manager: Add _build_conn_row function
More consistent with VM function names
This commit is contained in:
parent
f1a0b99a38
commit
232c8608c2
@ -848,7 +848,7 @@ class vmmManager(vmmGObjectUI):
|
||||
# Expand a connection when adding a vm to it
|
||||
self.widget("vm-list").expand_row(model.get_path(parent), False)
|
||||
|
||||
def _append_conn(self, model, conn):
|
||||
def _build_conn_row(self, conn):
|
||||
row = []
|
||||
row.insert(ROW_HANDLE, conn)
|
||||
row.insert(ROW_NAME, conn.get_pretty_desc_inactive(False))
|
||||
@ -866,6 +866,11 @@ class vmmManager(vmmGObjectUI):
|
||||
row.insert(ROW_COLOR, self._build_conn_color(conn))
|
||||
row.insert(ROW_INSPECTION_OS_ICON, None)
|
||||
|
||||
return row
|
||||
|
||||
def _append_conn(self, model, conn):
|
||||
row = self._build_conn_row(conn)
|
||||
|
||||
_iter = model.append(None, row)
|
||||
path = model.get_path(_iter)
|
||||
self.rows[conn.get_uri()] = model[path]
|
||||
|
Loading…
Reference in New Issue
Block a user