[gparted] Make "Label File System" dialog a bit bigger (#778003)



commit d1ce653d1b71c987a2801537ca60be5ff2465699
Author: Refael Sheinker <refaelsh gmail com>
Date:   Wed Feb 1 20:34:09 2017 +0200

    Make "Label File System" dialog a bit bigger (#778003)
    
    On Arch Linux with XFCE 4.12 and Fedora 24 with GNOME 3.20 and later;
    the Label File System dialog is too small.  The problem is that the
    label entry box clips the Cancel and OK buttons.
    
    Stop specifying the dialog height, instead letting it fit the combined
    height of all the widgets automatically.
    
    Also make the dialog wider and the label entry box wider so that longer
    device names can be shown in the title before they are truncated.
    
    Bug 778003 - The "Label File System" dialog is too small

 src/Dialog_FileSystem_Label.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Dialog_FileSystem_Label.cc b/src/Dialog_FileSystem_Label.cc
index ce35f59..a64aa63 100644
--- a/src/Dialog_FileSystem_Label.cc
+++ b/src/Dialog_FileSystem_Label.cc
@@ -24,7 +24,7 @@ Dialog_FileSystem_Label::Dialog_FileSystem_Label( const Partition & partition )
 {
        this ->set_resizable( false ) ;
        this ->set_has_separator( false ) ;
-       this ->set_size_request( 300, 80 ) ;
+       this->set_size_request( 400, -1 );
 
        /* TO TRANSLATORS: dialog title, looks like   Set file system label on /dev/hda3 */
        this->set_title( String::ucompose( _("Set file system label on %1"), partition.get_path() ) );
@@ -45,7 +45,7 @@ Dialog_FileSystem_Label::Dialog_FileSystem_Label( const Partition & partition )
                //Create Text entry box
                entry = manage(new Gtk::Entry());
                entry->set_max_length( Utils::get_filesystem_label_maxlength( partition.filesystem ) ) ;
-               entry->set_width_chars(20);
+               entry->set_width_chars( 30 );
                entry->set_activates_default(true);
                entry->set_text(partition.get_filesystem_label());
                entry->select_region(0, entry ->get_text_length());


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