[gparted] Add "Available online only" to the Supported Actions legend (#774818)



commit 5cd1f718a139d10037f0bf85a8baff34e8a7b691
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Wed Jan 11 07:50:03 2017 +0000

    Add "Available online only" to the Supported Actions legend (#774818)
    
    Shrinking LUKS encryption is only possible while the mapping is open and
    active.  Therefore the File System Support dialog shows Cross + Tick for
    this operation.  Add this new combination to the legend.
    
    Bug 774818 - Implement LUKS read-write actions NOT requiring a
                 passphrase

 src/DialogFeatures.cc |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/DialogFeatures.cc b/src/DialogFeatures.cc
index 58bd9d7..16062d0 100644
--- a/src/DialogFeatures.cc
+++ b/src/DialogFeatures.cc
@@ -96,6 +96,19 @@ DialogFeatures::DialogFeatures()
                        _("Available offline and online")), Gtk::PACK_EXPAND_WIDGET ) ;
        icon_legend_vbox ->pack_start( *available_both_hbox ) ;
 
+       Gtk::HBox *available_online_hbox = manage( new Gtk::HBox() );
+       Gtk::Image *image_no( manage( new Gtk::Image( icon_no ) ) );
+       available_online_hbox->pack_start( *image_no, Gtk::PACK_SHRINK );
+       image_yes = manage( new Gtk::Image( icon_yes ) );
+       available_online_hbox->pack_start( *image_yes, Gtk::PACK_SHRINK );
+       available_online_hbox->pack_start( *Utils::mk_label(
+                       /* TO TRANSLATORS:  Available online only
+                        * means that this action is valid for this file system only
+                        * when it is mounted.
+                        */
+                       _("Available online only")), Gtk::PACK_EXPAND_WIDGET );
+       icon_legend_vbox->pack_start( *available_online_hbox );
+
        Gtk::HBox *available_offline_hbox = manage(new Gtk::HBox() ) ;
        image_yes = manage( new Gtk::Image( icon_yes ) ) ;
        available_offline_hbox ->pack_start( *image_yes, Gtk::PACK_SHRINK ) ;
@@ -110,7 +123,7 @@ DialogFeatures::DialogFeatures()
        icon_legend_vbox ->pack_start( *available_offline_hbox ) ;
 
        Gtk::HBox *not_available_hbox = manage( new Gtk::HBox() ) ;
-       Gtk::Image *image_no( manage( new Gtk::Image( icon_no ) ) ) ;
+       image_no = manage( new Gtk::Image( icon_no ) );
        not_available_hbox ->pack_start( *image_no, Gtk::PACK_SHRINK ) ;
        image_blank = manage( new Gtk::Image( icon_blank ) ) ;
        not_available_hbox ->pack_start( *image_blank, Gtk::PACK_SHRINK ) ;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]