[gparted] Show online file system labelling in the Features dialog (#163)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Show online file system labelling in the Features dialog (#163)
- Date: Fri, 30 Jul 2021 16:32:28 +0000 (UTC)
commit 47960037f7bbde33ac87cacea2a31b2d72c73039
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Thu Jul 22 10:39:50 2021 +0100
Show online file system labelling in the Features dialog (#163)
Show support for online labelling using a second tick mark in the
Features dialog. This matches how online grow and shrink are shown.
Closes #163 - Feature request: set label on a mounted btrfs
include/DialogFeatures.h | 2 ++
src/DialogFeatures.cc | 6 +++++-
2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/include/DialogFeatures.h b/include/DialogFeatures.h
index 5633247e..b78a1356 100644
--- a/include/DialogFeatures.h
+++ b/include/DialogFeatures.h
@@ -63,6 +63,7 @@ private:
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > copy ;
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > check ;
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > label ;
+ Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf>> online_label;
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > uuid ;
Gtk::TreeModelColumn<Glib::ustring> software ;
@@ -78,6 +79,7 @@ private:
add( copy ) ;
add( check ) ;
add( label ) ;
+ add(online_label);
add( uuid ) ;
add( software ) ;
}
diff --git a/src/DialogFeatures.cc b/src/DialogFeatures.cc
index d180ffa2..de58dbea 100644
--- a/src/DialogFeatures.cc
+++ b/src/DialogFeatures.cc
@@ -65,7 +65,10 @@ DialogFeatures::DialogFeatures()
treeview_filesystems .append_column( _("Move"), treeview_filesystems_columns .move );
treeview_filesystems .append_column( _("Copy"), treeview_filesystems_columns .copy );
treeview_filesystems .append_column( _("Check"), treeview_filesystems_columns .check );
- treeview_filesystems .append_column( _("Label"), treeview_filesystems_columns .label );
+ col = manage(new Gtk::TreeView::Column(_("Label")));
+ col->pack_start(treeview_filesystems_columns.label, false);
+ col->pack_start(treeview_filesystems_columns.online_label, false);
+ treeview_filesystems.append_column(*col);
treeview_filesystems .append_column( _("UUID"), treeview_filesystems_columns .uuid );
treeview_filesystems .append_column( _("Required Software"), treeview_filesystems_columns .software );
treeview_filesystems .get_selection() ->set_mode( Gtk::SELECTION_NONE );
@@ -200,6 +203,7 @@ void DialogFeatures::load_one_filesystem(const FS& fs)
treerow[ treeview_filesystems_columns .copy ] = fs .copy ? icon_yes : icon_no ;
treerow[ treeview_filesystems_columns .check ] = fs .check ? icon_yes : icon_no ;
treerow[ treeview_filesystems_columns .label ] = fs .write_label ? icon_yes : icon_no ;
+ treerow[treeview_filesystems_columns.online_label] = fs.online_write_label ? icon_yes : icon_blank;
treerow[ treeview_filesystems_columns .uuid ] = fs .write_uuid ? icon_yes : icon_no ;
treerow[treeview_filesystems_columns.software] = Utils::get_filesystem_software(fs.fstype);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]