Always show the File System Support dialog legend (#342682)

Make the legend always shown, ready for when the dialog is resizable.

Change the widget containing the legend from an expander to a frame
widget.  Set the frame to be borderless using a bold label as
recommended in the GNOME Human Interface Guidelines 2.2.1 / Controls /
Frames and Separators.

    https://developer.gnome.org/hig-book/2.32/controls-frames.html.en

Bug #342682 - too much information in 'features' dialog
This commit is contained in:
Mike Fleetwood 2013-09-28 09:17:39 +01:00 committed by Curtis Gedak
parent dd9e2161d4
commit 59f684d8cd
2 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@
#include "../include/Utils.h"
#include <gtkmm/dialog.h>
#include <gtkmm/expander.h>
#include <gtkmm/frame.h>
#include <gtkmm/treeview.h>
#include <gtkmm/liststore.h>
#include <gtkmm/image.h>
@ -40,7 +40,7 @@ public:
private:
void show_filesystem( const FS & fs ) ;
Gtk::Expander expander_legend ;
Gtk::Frame legend_frame ;
Gtk::TreeView treeview_filesystems;
Gtk::TreeRow treerow;
Glib::RefPtr<Gtk::ListStore> liststore_filesystems;

View File

@ -119,10 +119,10 @@ DialogFeatures::DialogFeatures()
str_temp = "<b>" ;
str_temp += _("Legend") ;
str_temp += "</b>" ;
expander_legend .set_label( str_temp ) ;
expander_legend .set_use_markup( true ) ;
expander_legend .add( *legend_hbox ) ;
this ->get_vbox() ->pack_start( expander_legend, Gtk::PACK_SHRINK ) ;
legend_frame .set_label_widget( *Utils::mk_label( str_temp ) ) ;
legend_frame .set_shadow_type( Gtk::SHADOW_NONE ) ;
legend_frame .add( *legend_hbox ) ;
this ->get_vbox() ->pack_start( legend_frame, Gtk::PACK_SHRINK ) ;
/*TO TRANSLATORS: This is a button that will search for the software tools installed and then refresh the screen with the file system actions supported. */
add_button( _("Rescan For Supported Actions"), Gtk::RESPONSE_OK );