Cole Robinson
3b88bfb1ee
cli: Drop clear_attr property
...
It slightly complicates the generic machinery, and the one usage we
can handle directly
2018-03-21 11:17:36 -04:00
Cole Robinson
f69b823fad
devices: Switch to normal _XML_PROP_ORDER
...
Drop the register_device stuff, rename virtual_device_type
2018-03-21 11:17:36 -04:00
Cole Robinson
7b61c45d3b
guest: Move all_devices to guest.devices.X
...
The way we enumerate devices doesn't conform with the way all
other XMLBuilder instances expose child objects. Move more towards
that direction.
This requires some virt-xml and cli.py hacks but we will remove those
in future patches
2018-03-21 11:17:36 -04:00
Cole Robinson
fe9ed2340c
virtinst: move <domain> XML files to virtinst/domain
...
And give the classes consistent naming
2018-03-21 11:17:36 -04:00
Cole Robinson
b6dcee8eb7
Use consistent and minimal license header for every file
2018-03-21 07:29:40 -04:00
Cole Robinson
3909c10441
virtinst: Move all devices to virtinst/devices/
2018-03-21 07:29:40 -04:00
Cole Robinson
1c911ce567
virtinst: Give device classes consistent DeviceX naming
...
Previous state was inconsistenty and needlessly wordy. Fix up
a few other class namings that have redundant Virtual in the name
2018-03-21 07:29:40 -04:00
Cole Robinson
93c22eff79
xmlbuilder: Move xml_indent to util
2018-03-20 10:35:22 -04:00
Cole Robinson
3d34f6a231
storage: Fix validating empty hosts value (bz #1557942 )
...
https://bugzilla.redhat.com/show_bug.cgi?id=1557942
2018-03-19 10:29:00 -04:00
Cole Robinson
bf458c2274
kernelupload: Fix it with python3
2018-03-18 11:51:09 -04:00
Cole Robinson
1994b4cf2d
devicedisk: fix _is_dir_searchable
...
And add a test case that would have caught this
2018-03-18 11:51:09 -04:00
Cole Robinson
a55abc8e89
details: Again fix default page showing
2018-03-18 11:36:02 -04:00
Cole Robinson
4d4a07c65b
tests: uitests: Add window cleanup tests
...
And fix some bugs I found as a result
2018-03-17 19:42:19 -04:00
Cole Robinson
259c70a090
error: Drop unused parent callback
2018-03-17 18:49:55 -04:00
Cole Robinson
defdfd4b51
engine: Fix backtrace from manager->exit
2018-03-17 18:47:13 -04:00
Cole Robinson
591dda6d1e
uitests: connect: Test double click to open
2018-03-17 18:46:40 -04:00
Cole Robinson
edc79a3272
uitests: Add VM 'doubleclick' open testing
2018-03-17 18:46:40 -04:00
Cole Robinson
97db1ac18a
manager: Simplify row management a bit
...
Drop the self.rows dict, use more pygobject row[] convenience
helpers, add some helper properties for VM
2018-03-17 18:46:40 -04:00
Cole Robinson
7de9028221
manager: Fix some menu item sensitivity issues
2018-03-17 18:46:40 -04:00
Cole Robinson
b423d8ffe7
uitests: cli: test --connect with a bad URI
2018-03-17 18:46:40 -04:00
Cole Robinson
b5377f8f0f
engine: Make a decorator function for showing startup errors
2018-03-17 18:46:40 -04:00
Cole Robinson
3c1e0a8a12
virtManager/*: Give pylint hints about singleton classes
...
It can't seem to figure out that what 'cls' is in this context,
so make it explicit.
2018-03-17 18:46:39 -04:00
Cole Robinson
7ad15769dc
virt-manager: fix git startup on wayland
...
Apparently we need to do these env settings much earlier...
2018-03-17 13:14:04 -04:00
Cole Robinson
483a8de6c1
systray: Change window tracking a bit
...
We should only prevent app closing if the systray is actually embedded
2018-03-17 12:18:38 -04:00
Cole Robinson
9ec865e4c0
systray: Only create statusicon if showing
...
Since even if it's marked as not visible, it can cause some movement
on the gnome3 topbar with topicons extension
2018-03-17 11:42:12 -04:00
Cole Robinson
dac860e8ce
engine: Show modal startup errors if window open fails
2018-03-16 19:09:55 -04:00
Cole Robinson
ee817c32ce
s/connect_opt_out/connect_once/ for open-completed callback
...
Forgot about that helper function...
2018-03-16 18:05:52 -04:00
Cole Robinson
ad632383c8
virt-manager: if new --connect fails, don't save the URI
2018-03-16 18:05:52 -04:00
Cole Robinson
6969066b9f
cli: Don't double print uncaught exceptions with --debug
...
We have an excepthook that logs uncaught exceptions for good
reason, but if printing --debug to stdout this exception gets
printed twice when we invoke the stock __excepthook__. Skip that
in the debug_stdout case.
2018-03-16 17:56:05 -04:00
Cole Robinson
2f0e730efc
error: Don't double log summary
...
details is often composed of a summary + traceback, so if users copy
it into a bug report we get all the info. But when logging the contents
we don't want to double log the summary, so try to strip it out
2018-03-16 17:30:39 -04:00
Cole Robinson
465b04ea18
Remove gconf->gsettings conversion script
...
It was first released with v1.2.0 in May 2015. I think that's long
enough for people to have run the app and had their settings
converted.
2018-03-16 14:41:53 -04:00
Cole Robinson
c9b2ec163f
preferences: Add UI for disabling spice usb autoredir
...
We already have a gconf key and command line option for this.
Drop the CLI option and add UI for it, we should have just done
that to begin with
2018-03-16 14:38:22 -04:00
Cole Robinson
30cc70ccf4
virt-manager: Drop --no-conn-autostart
...
It was mildly interesting back before libvirt supported threads but
I don't think anyone cares about it now.
2018-03-16 14:19:35 -04:00
Cole Robinson
f5562e77ae
tests: uitests: Make an addhw test less flakey
2018-03-15 21:24:48 -04:00
Cole Robinson
dabbc8d5bd
engine: Remove centralized conn.open handling
...
Move connection opening logic to each caller, since needs are
slightly different.
2018-03-15 21:24:48 -04:00
Cole Robinson
5ebe8b8184
create: Fix customize dialog launching
...
After the increment/decrement rework
2018-03-15 21:24:48 -04:00
Cole Robinson
b72db888f6
ui: create: Fix container rootpw mismerge
2018-03-15 21:24:48 -04:00
Cole Robinson
cad809fe80
Make all dialogs clean up when vm/conn disappears
...
Moves all the window cleanup handling to each class and audit for
all --test-leak-debug errors and fix
2018-03-15 21:24:48 -04:00
Cole Robinson
2ee69edc8e
snapshots: Fix generating screenshot after py3 conversion
2018-03-15 21:24:48 -04:00
Cole Robinson
20d5c1887a
baseclass: Export GObject.SignalFlags.RUN_FIRST
...
Saves some typing and imports
2018-03-15 21:24:48 -04:00
Cole Robinson
1d17b98852
engine: Move most remaining window tracking to UI classes
...
Kind of a big mess but it was difficult to untangle piecemeal.
Basically this drops nearly all the centralized window tracking
in engine.py and moves it to each UI class. If manager.py wants
to open a details window it does it directly, and vmmDetails tracks
the window object list itself. This simplifies things and makes
the code easier to follow.
There's still some weirdness with vmmConnect and connection callbacks,
but future patches will break those apart.
2018-03-15 21:24:48 -04:00
Cole Robinson
92aea7c565
engine: Have windows increment/decrement windows directly
2018-03-15 21:24:48 -04:00
Cole Robinson
9fa9777f1c
engine: Have windows call exit_app directly
2018-03-15 21:24:48 -04:00
Cole Robinson
6180a3c81f
engine: Cleanup function names, comments, etc.
2018-03-15 21:24:48 -04:00
Cole Robinson
58f872a205
clone: Convert to per-connection singleton-ish pattern
...
And convert the dialog VM handling to match other dialogs
2018-03-15 21:24:48 -04:00
Cole Robinson
b94a9fdffb
migrate: convert to singleton
2018-03-15 21:24:48 -04:00
Cole Robinson
a915b089cd
migrate: Drop cached conn list
...
Not needed since we have connmanager now
2018-03-15 21:24:48 -04:00
Cole Robinson
65b512ae6f
delete: Convert to singleton
2018-03-15 21:24:48 -04:00
Cole Robinson
1780d0e9f0
details: Call inspection VM refresh directly
2018-03-15 21:24:48 -04:00
Cole Robinson
f088537798
engine: break out vmmConnectionManager
...
Have a separate class for tracking the connection list, and emitting
conn-added and conn-removed signals. It exists as a singleton instance
that UI classes can talk directly to
2018-03-15 21:24:48 -04:00