Cole Robinson
1ca94861ae
Remove a few more unneeded gobject imports
2011-04-28 16:17:44 -04:00
Cole Robinson
efde9cb863
Register all gobject signals through vmmGObject baseclass
...
Allows us to remove gobject imports in various places which will help when
merging code with TUI.
2011-04-28 16:06:57 -04:00
Cole Robinson
6ef71911ce
tui: Hack in an 'import' blacklist
...
When we start sharing code between GUI and TUI, it will be easy to have
unwanted deps on gtk and gobject to sneak into the TUI code. Add fake
modules that override the offending imports and throw an easy to trackdown
exception.
2011-04-28 14:38:47 -04:00
Cole Robinson
ad32003729
tui: Show backtrace of startup errors
2011-04-28 14:38:46 -04:00
Cole Robinson
d48b071e66
tui: Save URIs in ~/.virt-manager, not /etc
...
Let's us run as nonroot.
2011-04-28 14:38:46 -04:00
Cole Robinson
cb77770692
tui: Hook up --connect option for setting the default URI
...
Kind of a hack, but works for now. Allows us to pass in libvirt test:///...
URIs which making client development way way easier.
2011-04-28 14:38:46 -04:00
Cole Robinson
ebb228b76b
virt-manager-tui: Log to ~/.virt-manager, not /var/log
...
Add a new file virtManager/cli.py to share code between virt-manager
and virt-manager-tui. Move virt-manager.py setup_logging there
Have virt-manager-tui log to ~/.virt-manager/virt-manager-tui.log, rather
than the hardcoded path in /var/log that requires root perms
2011-04-28 14:38:46 -04:00
Cole Robinson
0445be92c2
virt-manager.py: Fix setup_logging to be a bit more general
2011-04-28 14:38:46 -04:00
Cole Robinson
9fcf63b559
baseclass: Prevent a pylint warning about bind_escape_key_close
2011-04-28 14:38:46 -04:00
Cole Robinson
b26a150e45
Fix some pylint and long lines
2011-04-28 14:24:07 -04:00
Marc-André Lureau
615740e9c4
console/spice: in multi-head cases, it should display first channel
...
Currently, it may pick up second display first. This patch makes sure
to display the primary display.
2011-04-28 13:54:21 -04:00
Marc-André Lureau
a8f77da827
console: fix resize_to_guest for Spice
...
We also avoid division by zero if desktop_resolution has height of 0
This can happen with Spice, when switching resolution or when the
resolution is unknown (not ready yet).
2011-04-28 13:53:01 -04:00
Cole Robinson
6a14834c7d
create: Bump default memory from 512 to 1024MB
...
F15 needs more than 512 or the installer crashes, pretty sure recent windows
require at least a GB as well. Long term plan is to track a default mem value
per OS being installed.
2011-04-28 10:39:12 -04:00
Gerhard Stenzel
a505618f52
virt-manager: make mode for direct interfaces selectable
...
Next try ...
The following patch adds support to select the mode for direct
interfaces.
crobinso: small fixes to make check-pylint happy
Signed-off-by: Gerhard Stenzel <gerhard.stenzel@de.ibm.com>
2011-04-21 09:20:33 -04:00
Cole Robinson
f9f4210ec2
connection: Tweak lookup failure logging
2011-04-20 17:00:32 -04:00
Cole Robinson
458664423b
spec: Fix spice-gtk-python dep
2011-04-19 10:29:35 -04:00
Richard W.M. Jones
568e7184cc
Ignore emacs temporary files (*~).
...
This is an annoyance if you use emacs ...
2011-04-18 17:51:40 -04:00
Cole Robinson
90679a0a0b
Store running_config in util, not config.py
...
Will help with TUI integration
2011-04-18 13:24:23 -04:00
Cole Robinson
36040e3f00
config: Move constants into vmmConfig class
2011-04-18 13:24:22 -04:00
Cole Robinson
18a82b8ea3
config: Do spice check on demand
2011-04-18 13:24:22 -04:00
Cole Robinson
f7f6fa04ee
util: Push gtk dep down into relevant functions
...
Will help with possibly sharing code with TUI
2011-04-18 11:32:12 -04:00
Cole Robinson
2fa12ffa15
Move bind_escape_key_close helper to baseclass
2011-04-18 11:25:28 -04:00
Cole Robinson
de8c901d7b
Move idle wrappers to baseclass
...
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2011-04-18 11:13:33 -04:00
Cole Robinson
b7de618897
Move connect helpers from util to baseclass
...
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2011-04-18 11:13:33 -04:00
Cole Robinson
ad8060d191
baseclass: Fix early error reporting before we setup running_config
2011-04-15 18:38:29 -04:00
Cole Robinson
50c8d9559c
uihelpers: Tweak 'no networking' label
2011-04-15 15:34:54 -04:00
Cole Robinson
9b26e093e9
create: Warn about PXE and 'no networking'
2011-04-15 15:34:24 -04:00
Cole Robinson
33162f20b9
create: Don't overwrite net warnings in reset_state
2011-04-15 15:33:56 -04:00
Cole Robinson
450f88cf66
Make all start/stop/delete operations run async
...
Applies for domains, nets, pools, volumes, interfaces. Domain pause, unpause
save and restore all run async as well.
2011-04-15 15:23:13 -04:00
Cole Robinson
7e211aa151
More pause button state fixes
...
Make sure we reset the pause button state _before_ we invoke the
operation, otherwise we might overwrite the already updated state
2011-04-15 14:56:24 -04:00
Cole Robinson
6590233b7e
prefs: Remove console popup option
...
This was originally requested when the console window didn't have option to
start/stop a VM (see https://bugzilla.redhat.com/show_bug.cgi?id=211385 ).
That hasn't been valid for a long time. The option was pretty unclear in
the prefs dialog anyways, and had weird behavior like 'open the domain for
all running vms when we start virt-manager'
Just always use the current default of opening the console for VMs that
we create with New VM.
2011-04-15 14:43:52 -04:00
Cole Robinson
46e28f0b1d
manager: Instantly update VM state after pause/unpause
2011-04-15 14:14:12 -04:00
Cole Robinson
8b576f4b2a
connection: Remove unneeded vm-started signal
...
We are already notified of vm state change by it's own state-changed signal
2011-04-15 14:13:05 -04:00
Cole Robinson
ac7d5f3825
console: Cleanup VNC auth callback
2011-04-15 14:12:50 -04:00
Cole Robinson
888d7dba0e
manager: Remove obsolete comment
2011-04-15 13:34:13 -04:00
Cole Robinson
28e2677944
Break out helper for prompting user before performing an op
2011-04-14 16:45:18 -04:00
Cole Robinson
a29c25bcce
config: Globally cache support_threading
...
It's specific to libvirt client library version, so won't change from
under us. Use it in simple async to preserve behavior for old libvirt clients
2011-04-14 15:43:31 -04:00
Cole Robinson
682c1d233b
asyncjob: Simplify interface for simple_async
2011-04-14 15:28:22 -04:00
Cole Robinson
6ebf751299
storagebrowse: Fix createvol sensitivity for media browsing
2011-04-14 14:07:42 -04:00
Cole Robinson
b2cd36eb50
systray: Don't leak when vm is removed
2011-04-14 13:26:44 -04:00
Cole Robinson
fa250a76ef
create: Make sure we properly cleanup customize window
2011-04-14 13:22:05 -04:00
Cole Robinson
2c98bc6788
clone: Fix cleanup when repopulating the UI
2011-04-14 13:12:24 -04:00
Cole Robinson
cc8e930613
clone: Fix some UI resizing issues
2011-04-14 13:07:52 -04:00
Cole Robinson
4a4d5ebaa6
domain: Fix stats_memory stubs
2011-04-14 12:57:09 -04:00
Cole Robinson
fc6814d186
baseclass: Use logging for logtrace
2011-04-14 12:51:52 -04:00
Cole Robinson
3a3057b52b
details: Make sure aborted pause op doesn't leave UI inconsistent
2011-04-14 12:51:52 -04:00
Cole Robinson
845e6aa57e
connection: Better organize stats methods
2011-04-14 12:51:52 -04:00
Cole Robinson
c6dcde8288
domain: Make forced status update more explicit
2011-04-14 12:51:52 -04:00
Cole Robinson
07018e2eda
engine: Slightly reorganize leak debugging
2011-04-14 11:26:53 -04:00
Cole Robinson
e799d101de
Don't show virt-manager.py in --help usage:
2011-04-14 10:49:37 -04:00