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
This commit is contained in:
parent
eb034b1759
commit
47960037f7
|
@ -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 ) ;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue