~givre/disk-manager/branch1.0

Viewing all changes in revision 102.

  • Committer: Mertens Florent
  • Date: 2007-06-04 21:48:33 UTC
  • Revision ID: flomertens@gmail.com-20070604214833-fnmthv80ukyb4n3r
changes in python-fstab :
* Fstab :
- umount mount point and not dev to support duplicate
- refactor check_path to make it a little faster.
- refactot device_is_mounted, to return the list of
path, device is mounted to.
* FstabHandler :
- A lot of works done to support duplicate entry :
- replace _link_fstab by _create_object that add new device
to an fstab object. That make dynamic recreation of 
FstabHandler object more reliable in case of duplicate entry.
- use it in _restore_copy, undo and revert_to
- remove duplicate when they are unmounted and no more in fstab
- fix get_changes_* to really to what it should do
- reapply change if global *or* local change are not fully apply - emit new "internal_change_cancel" event when mount or umount fail
- emit new "internal_change_cancel" event when mount or umount fail
* EventHandler :
- use _create_object on fstab extarnal change
- add event "on_internal_change_cancel" to desinhibit watch
when finaly there is no internal change to apply
* FstabUtility :
- refactor change_tracker to support duplicate entry.
- change check_duplicate to only check duplicate path
since now we support duplicate device
* Mounter :
- big refacoring to make it more flexible and support duplicate.
- begin separation of the GTK part. Still need some works. 
This will not be done for 1.0 anyway.
- change api to a more sane on -> (mount = , umount =)
- don't suppot remount. If you want to remount a partition,
you should add it to umount explicitly.
This was needed for duplicate entry.
* FstabDialog :
- create dialog with a modular DialogBuilder dialog, that
can create dialog with a treeview or a textview and/or a 
check buttons area, depending of the data you give him.
This make creation of new dialog with a simple 3 line fct
- while i was on it, i changed the way we set the size to 
depend on the font.

change in disk-manager :
* DiskManager :
Make it support duplicate device
* Dialogs/HistoryDialog :
Show changes between selected versionn and current one
in main window, and when asking if we apply or not

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: