[gparted] Display busy status of the file system within LUKS encryption (#774818)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Display busy status of the file system within LUKS encryption (#774818)
- Date: Sat, 14 Jan 2017 15:52:25 +0000 (UTC)
commit 2be136b9fdd0a4882ac4438c0f4d4e2d8669297d
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Mon Aug 8 16:05:25 2016 +0100
Display busy status of the file system within LUKS encryption (#774818)
In the main window, display the busy status of the file system only
according to whether it is mounted or not, ignoring the status of the
encryption mapping.
Bug 774818 - Implement LUKS read-write actions NOT requiring a
passphrase
src/TreeView_Detail.cc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/TreeView_Detail.cc b/src/TreeView_Detail.cc
index 707da9d..3ef4608 100644
--- a/src/TreeView_Detail.cc
+++ b/src/TreeView_Detail.cc
@@ -154,7 +154,10 @@ void TreeView_Detail::create_row( const Gtk::TreeRow & treerow,
bool & show_mountpoints,
bool & show_labels )
{
- if ( partition .busy )
+ const Partition * filesystem_ptn = &partition;
+ if ( partition.filesystem == FS_LUKS && partition.busy )
+ filesystem_ptn = &dynamic_cast<const PartitionLUKS *>( &partition )->get_encrypted();
+ if ( filesystem_ptn->busy )
treerow[ treeview_detail_columns .icon1 ] =
render_icon( Gtk::Stock::DIALOG_AUTHENTICATION, Gtk::ICON_SIZE_BUTTON );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]