Commit Graph

2599 Commits

Author SHA1 Message Date
Cole Robinson
88603e4fad Merge code from python-virtinst.git
As outlined here:

https://www.redhat.com/archives/virt-tools-list/2012-February/msg00040.html

For now this is just a direct import of the code from virtinst commit
dca5a4d6245f21d554f8853197a6a234bfc8e52c. History is not merged, so
please refer to original git for detailed commit histor:

http://git.fedorahosted.org/cgit/python-virtinst.git/
2013-04-03 18:22:05 -04:00
Cole Robinson
9d05583c26 Remove autotools, replace with distutils-extra
Despite being a known quantity, autotools is so overkill for our needs,
so let's drop it and replace it with a much simpler and easy to customize
system.
2013-04-03 18:20:51 -04:00
Cole Robinson
b1bfc7ab85 Remove another TODO item fixed by Giuseppe's last patch 2013-04-03 18:14:02 -04:00
Giuseppe Scrivano
823c3b20b5 Fix a segfault when the connection is dropped
The error dialog window was created on the "tick" thread, causing a
crash in GTK.  Fix it by moving its invocation to the main thread.
2013-04-03 18:14:01 -04:00
Giuseppe Scrivano
a6881c6ff1 Use override_background_color instead of modify_bg
override_background_color accepts a RGBA struct, use it directly.
2013-04-03 18:14:01 -04:00
Giuseppe Scrivano
d2d759abb4 Fix exception with older gi versions
The method gi.check_version was defined in 3.3.5.  Prevent an exception
with older versions of the library.

(crobinso: Add Giuseppe to AUTHORS)
2013-04-03 18:14:01 -04:00
Cole Robinson
2d786a1ca9 todo: Add entry about wiki-ifying the website 2013-04-03 18:13:28 -04:00
Cole Robinson
c6b4310f72 virt-manager: Just print bogus GTK errors 2013-04-03 18:13:28 -04:00
Cole Robinson
6cd6b1dad9 Add gtk3 todo.txt 2013-04-03 18:13:28 -04:00
Cole Robinson
976e6db68f details: Don't expand CPU model dropdown 2013-04-03 18:13:27 -04:00
Cole Robinson
dfc6a37977 man: Mention that standard GTK args are also accepted. 2013-04-03 18:13:27 -04:00
Cole Robinson
6208d67129 Fix GObject deprecation warnings with latest pygobject 2013-04-03 18:13:27 -04:00
Cole Robinson
2787e0ba40 manager: Fix empty desc tooltip if pygobject is new enough 2013-04-03 18:13:27 -04:00
Cole Robinson
bcfbbb2bc7 s/self.window/self.builder/g
Since 'window' is overloaded, let's not make it worse.
2013-04-03 18:13:27 -04:00
Cole Robinson
abbdd1743a Fix some pylint 2013-04-03 18:13:27 -04:00
Cole Robinson
0ffa69e760 Fix serial consoles after gtk3 conversion 2013-04-03 18:13:27 -04:00
Cole Robinson
eba8f6f7e9 Turn off leak debugging, since gtk3 is messing us up 2013-04-03 18:13:27 -04:00
Cole Robinson
8da021cf3a create: Fix OS autodetect for URLs 2013-04-03 18:13:27 -04:00
Cole Robinson
8c479dbdd3 progress: Fix label spacing 2013-04-03 18:13:27 -04:00
Cole Robinson
c342b58b84 console: Fix send keys for spice and vnc
Unfortunately the bindings were both broken here, so patches are needed
to make this work:

https://bugs.freedesktop.org/show_bug.cgi?id=59444
https://bugzilla.gnome.org/show_bug.cgi?id=691821
2013-04-03 18:13:26 -04:00
Cole Robinson
9b2fd63480 console: Fix spice audio tunneling after conversion 2013-04-03 18:13:26 -04:00
Cole Robinson
2e4afccb07 Fix up a ton of UI regressions from gtk3 conversion 2013-04-03 18:13:26 -04:00
Cole Robinson
3de927d109 Remove rhel compat get_system_shutdown_icon 2013-04-03 18:13:26 -04:00
Cole Robinson
cb512f61e7 Cleanup gnome-keyring code (still broken with introspection) 2013-04-03 18:13:26 -04:00
Cole Robinson
5df0a108f8 baseclass: Allow not passing a msg to _logtrace helper 2013-04-03 18:13:26 -04:00
Cole Robinson
12a4e34bad Remove unused gconf key console/grab_notify 2013-04-03 18:13:26 -04:00
Cole Robinson
d9112f9d54 Remove all code and hidden UI for accessing help docs
Those docs were removed a few commits back
2013-04-03 18:13:26 -04:00
Cole Robinson
eac0f93da7 Drop comboboxentry RHEL6 compat 2013-04-03 18:13:26 -04:00
Cole Robinson
bdfd0d4143 Resave glade files to drop gtk2 bits 2013-04-03 18:13:25 -04:00
Cole Robinson
12fcac8268 s/get_property("sensitive")/get_sensitive()/g 2013-04-03 18:13:25 -04:00
Cole Robinson
e741d9cab6 Clean up all pylint + pep8 violations 2013-04-03 18:13:25 -04:00
Cole Robinson
179e94fda5 engine: Don't rewrite connection list when we read stored URIs 2013-04-03 18:13:25 -04:00
Cole Robinson
d057cce292 Remove local copy of IPy 2013-04-03 18:13:25 -04:00
Cole Robinson
dc640d7506 configure: Don't drop so many files in topdir 2013-04-03 18:13:25 -04:00
Cole Robinson
f872720d39 Add .mailmap 2013-04-03 18:13:25 -04:00
Cole Robinson
14485f2a08 Remove the docs/ dir
Release process doesn't need to be documented in the repo

Dbus interface is basically unused, I've got no problem with having people
look at the code to figure it out if they care that much.
2013-04-03 18:13:25 -04:00
Cole Robinson
53b12d82c5 Stop tracking old help files, they are long dead 2013-04-03 18:13:25 -04:00
Daniel P. Berrange
3c3237b951 Convert to use GTK3 and GObject Introspection bindings
Switch over to use GObject introspection bindings for all python
modules related to GObject/GTK3/etc. It is not possible to mix
and match old pyggtk/pygobject manual bindings with new introspection
based bindings so it must be all changed in one go.

Imports like

    import gtk

Change to

    from gi.repository import Gtk

The vmmGObject class is changed to always inherit from GObject.GObject
There is no compelling reason to avoid a GObject dep for the
virt-manager TUI & it horribly messed up the code.

Signal declarations are changed from

  vmmChooseCD.signal_new(vmmChooseCD, "cdrom-chosen", [object, str])

To

     __gsignals__ = {
        "cdrom-chosen": (GObject.SignalFlags.RUN_FIRST, None, [object, str])
    }

which is required by new GObject bindings

Most of the rest of the change is simply dealing with renamed
constants / classes.

Alot of legacy compat code was removed - ie helpers which
check to see if certain GTK2 methods are available are no
longer required since we're mandating GTK3 only.

The event loop is replaced with LibvirtGLib's event loop.

Still todo

 - Rip out all DBus stuff & make vmmEngine class inherit GtkApplication
   which provides unique support & DBus method handling
 - Switch to use LibvirtGConfig & LibvirtGObject for libvirt interaction
 - Possibly switch to Python 3 too ?
 - Figure out why GNOME keyring is missing Introspection support

My suggestion is that the standalone GIT repo for virt-install
only live on as a support branch for legacy platforms.

A stable-0.9 branch of virt-manager can be kept for legacy PyGtk2
based virt-manager releases.

The virt-manager master branch should exclusively use GObject
inspection and ideally Python3 and contain both the virt-manager
and virt-install codebases in one since they are intimately
related to each other & using separate GIT repos has needlessly
complicated life for everyone.

crobinso:
    Some locking fixes
    Misc cleanups and dropping now-useless code
    Fix dbus usage
    Fix graph cell renderer regression
    Fix a couple tooltip issues
2013-04-03 18:13:24 -04:00
Cole Robinson
be49fa63c0 Prep for release 0.9.5 2013-04-01 07:36:57 -04:00
Ken ICHIKAWA
2381016b4b Allow empty cpu model
If we specify cpu model and apply once, we could not specify empty
cpu model again with following error.
"Error changing VM configuration: internal error Non-empty feature
list specified without CPU model"
That is not useful to restore default cpu model.
This patch fixes above issue.

Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>

(crobinso: minor cleanup, add Ken to AUTHORS)
2013-03-25 13:25:46 -04:00
John Doyle
9f4fddba04 Add a force reset item to all shutdown menus 2013-03-16 17:59:32 -04:00
Cole Robinson
507640ea85 createvol: Don't default to sparse LVM
Sparse LVM volumes don't autogrow, which makes them not as useful for
virt-manager target users. Don't do it by default
2013-03-13 10:29:22 -04:00
Dave Allan
46a3d2c57f Strip whitespace from remote hostname
If users accidentally add whitespace to the beginning or end of a hostname their connection will fail, so strip it.

Fixes BZ 818438 - Whitespace in remote connection hostname field is not trimmed

(crobinso: Add Dave to AUTHORS)
2013-03-01 14:19:04 -05:00
Chen Hanxiao
11539ef480 Update tips for Checkbox "Allocate entire disk now"
As discussed in:
https://www.redhat.com/archives/virt-tools-list/2013-February/msg00154.html
There is a bug when creating disk image as qcow2, enable
fully allocating but get the minimal sparse image.

We should give users a notification which describing this.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>

(crobinso: tweak message a bit)
2013-03-01 14:11:42 -05:00
David Shane Holden
e6d5c10129 virt-manager: add support for iotune
(crobinso: Add David to AUTHORS, pylint cleanups, enable for test driver)
2013-03-01 14:08:41 -05:00
Cole Robinson
97156c6e15 spec: Add explicit pod2man dep 2013-03-01 12:40:48 -05:00
Martin Kletzander
b6f0ba364f Add support for security relabeling
virt-install already supports relabeling, but virt-manager doesn't and
in some cases, this can cause problems, for example when switching to
dynamic labeling with the relabeling turned off.  I took the approach
of allowing the user to choose, with safe fallbacks to defaults.

Deals also with this:

https://bugzilla.redhat.com/show_bug.cgi?id=907390
2013-02-06 15:54:14 -05:00
Martin Kletzander
46c8ee58dc Match default storage size values
When creating a new volume, there is either 8GB or 1000MB default.
This patch simply changes the second default to match the first one.
2013-02-06 15:52:02 -05:00
Cole Robinson
12dcebcc0a Disable a bunch of pep8 tests I won't fix before gtk3 port 2013-02-06 15:41:43 -05:00
Cole Robinson
0ca8cf6d43 Grrr, fix dbus int cast (how did I screw this up??) 2013-01-06 17:17:45 -05:00