Commit Graph

39 Commits

Author SHA1 Message Date
Cole Robinson
3d8e6a9398 Set parent for all dialogs 2011-04-14 08:47:42 -04:00
Cole Robinson
1180c9c4e3 asyncjob: Do some cleanup to allow object to be garbage collected
Also ensure we don't carry around references to other objects
2011-04-11 16:16:29 -04:00
Cole Robinson
f1c41b0866 error: Use more consistent details reporting
Always try and report summary + "\n\n" + details
2011-04-06 11:52:26 -04:00
Cole Robinson
e0bc2563c7 error: Simplify basic show_err call
If no error details are specified, use the traceback from the most recent
exception. We were doing this in numerous callers anyways.
2011-04-06 11:22:03 -04:00
Cole Robinson
f6868918fc Simplify asyncjob cancel callbacks
Have the async class check for a cancel exception and handle it
2010-12-10 14:59:24 -05:00
Cole Robinson
ec56a33f7c Run domain startup asynchronously
Sometimes startup is actually a domain restore, which can take a while, so
run it all async
2010-12-10 14:40:08 -05:00
Cole Robinson
677f73fca7 Run pep8 with check-pylint, fix the fallout 2010-12-10 11:47:07 -05:00
Cole Robinson
d0d20148f7 asyncjob: Simplify error reporting 2010-12-10 09:57:42 -05:00
Cole Robinson
e78e2da3f5 Use the a base class for all libvirt object classes 2010-12-09 12:37:48 -05:00
Cole Robinson
2dd81900fa Have UI classes share a baseclass 2010-12-08 17:26:19 -05:00
Cole Robinson
1608a08227 progress: Don't show busy pointer if we can cancel a job 2010-12-08 15:23:40 -05:00
Cole Robinson
41605b2d6f progress: Show cancel errors in the progress dialog 2010-12-08 14:14:38 -05:00
Wen Congyang
45fab0153f Support job cancellation for migration, save functions 2010-12-08 12:52:33 -05:00
Cole Robinson
1c3e7a1ea3 Remove some unneeded imports and old pylint workarounds 2010-11-30 15:01:02 -05:00
Cole Robinson
779dcdd824 Don't use old style __gobject_init__() 2010-11-30 14:40:49 -05:00
Cole Robinson
716bec3e56 Enable some more basic pylint checks and clean the code 2010-11-29 14:06:43 -05:00
Cole Robinson
fa876ac6ea progress: Allow storing return data with the async class 2010-03-03 11:14:59 -05:00
Cole Robinson
320eb9a3e1 progress: Allow running a thread which calls its own gtk.main() 2010-03-03 10:51:09 -05:00
Cole Robinson
dfb8f8666a Make sure all idle and timeout routines are thread safe.
Unbeknownst to me, these functions are not run thread safe:

http://library.gnome.org/devel/gdk/unstable/gdk-Threads.html

However since they are run from the main loop, the chance of them conflicting
with another running thread is slim, since we have very few threads that
actually update the UI.
2010-02-11 12:32:00 -05:00
Cole Robinson
9fc947a314 A few more small UI tweaks
- Actually make console border black
- Don't set overly large progress bar values in asyncjob
- Use larger icon in progress dialog.
2009-12-03 13:36:28 -05:00
Cole Robinson
f9680aa8e0 Store errors in asyncjob instances.
This allows us to remove all the hackish global error reporting variables
whenever we run an async job.
2009-04-03 14:15:15 -04:00
Cole Robinson
7b24154f19 Don't leave app hanging around if user closes it while an async job is in
progress.
2009-04-03 14:15:14 -04:00
Cole Robinson
0187458ba9 Fix up various remaining pylint. 2008-11-18 17:01:22 -05:00
Daniel P. Berrange
847084ab23 Refresh GPL text with latest FSF address & fix spec file license tag 2007-11-20 11:12:20 -05:00
Daniel P. Berrange
25902bfe27 Fixed thread locking in async job callback 2007-04-13 16:01:03 -04:00
Hugh O. Brock
c2c259f2a0 Make console popups work right with inactive domains by adding a 'vm-started' signal thrown by vmmConnection. Also fix another threading bug. 2007-03-14 15:51:26 -04:00
Daniel P. Berrange
0c47d4251c Fixed timer ticks 2007-03-13 11:48:19 -04:00
Daniel P. Berrange
9650bb48b1 Fixed thread locking 2007-03-09 16:22:43 -05:00
Hugh O. Brock
6350cb33ea Split the glade files up into one per window, to make managing merges easier. This changes the makefile, so you'll need to rerun autogen.sh 2007-02-15 15:35:37 -05:00
Daniel P. Berrange
862ca28ea6 Make progress bar display a little prettier. Add support for setting max-memory when creating guests 2007-02-01 14:16:44 -05:00
Hugh O. Brock
4e647f1c17 Change save/restore code to work with new progress bar interface. Also clean up progress bar a bit so it doesn't jump around quite so much. 2007-01-12 15:39:18 -05:00
Hugh O. Brock
c6e5a99343 graphical progress bar hooks for pv guests 2007-01-10 16:11:57 -05:00
Hugh O. Brock
7b2cbb18ad add a radio button for sparse vs. non-sparse viles. Add appropriate cautions and text to the progress dialog. 2006-12-17 16:33:37 -05:00
Daniel P. Berrange
54316cd4f2 Explicitly pass i18n domain into glade constructor because it is failing to pick up default domain 2006-11-07 09:40:34 -05:00
Daniel P. Berrange
6cc3c10a18 Set busy cursor when displaying progress bar 2006-11-06 15:00:39 -05:00
Hugh O. Brock
0a1906936f Added error dialog for domain restore errors 2006-07-24 13:50:11 -04:00
Hugh O. Brock
d4fea88493 Add save feature to console, update save icons 2006-07-20 13:38:37 -04:00
Daniel P. Berrange
caecbc5ebc Fix timer callback return value to ensure it fires many times rather than just once 2006-07-20 12:52:00 -04:00
Hugh O. Brock
a5c0597604 Make the progress bar threaded so that it will bounce back and forth in the background (still doesn't work) and abstract the progress bar functionality 2006-07-20 11:16:07 -04:00