*)
type columns = string GTree.column * string GTree.column * string GTree.column * string GTree.column * string GTree.column * int GTree.column
-let debug_repopulate = false
+let debug_repopulate = true
(* Populate the tree with the current list of connections, domains.
* This function is called once per second.
model#set ~row ~column:col_name_id name;
model#set ~row ~column:col_id conn_id;
(* Expand the new row. *)
- (* XXX This doesn't work, why? - Because we haven't create subrows yet.*)
+ (* XXX This doesn't work, why? - Because we haven't created subrows yet.*)
tree#expand_row (model#get_path row)
) added;
dh.hist_posn <- dh.hist_posn+1
with
- Libvirt.Virterror _ -> () (* Ignore any transient error *)
+ (* Ignore any transient error *)
+ | Libvirt.Virterror err ->
+ prerr_endline (Libvirt.Virterror.to_string err)
+ | Failure msg | Invalid_argument msg ->
+ prerr_endline msg
)
) (model#iter_children (Some parent));
| Libvirt.Virterror err ->
prerr_endline (Libvirt.Virterror.to_string err);
conn_id, (old_active, old_inactive)
- | Failure msg ->
+ | Failure msg | Invalid_argument msg ->
prerr_endline msg;
conn_id, (old_active, old_inactive)
) conns in