placed a small (2px) border around the legend.

* src/VBox_VisualDisk.cc: placed a small (2px) border around the legend.
This commit is contained in:
Bart Hakvoort 2004-12-08 21:39:23 +00:00
parent f3db876345
commit 296b6d4b56
2 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2004-12-07 Bart Hakvoort <gparted@users.sf.net>
* src/VBox_VisualDisk.cc: placed a small (2px) border around the legend.
2004-12-08 Dmitry G. Mastrukov <dmitry@taurussoft.org> 2004-12-08 Dmitry G. Mastrukov <dmitry@taurussoft.org>
* configure.in: Added Russian to ALL_LINGUAS. * configure.in: Added Russian to ALL_LINGUAS.

View File

@ -30,14 +30,13 @@ VBox_VisualDisk::VBox_VisualDisk( const std::vector<Partition> & partitions, con
//create frame which contains the visual disk //create frame which contains the visual disk
frame_disk_legend = manage( new Gtk::Frame( ) ) ; frame_disk_legend = manage( new Gtk::Frame( ) ) ;
frame_disk_legend ->set_shadow_type( Gtk::SHADOW_ETCHED_OUT ); frame_disk_legend ->set_shadow_type( Gtk::SHADOW_ETCHED_OUT );
frame_disk_legend ->set_border_width( 5 );
hbox_disk_main .pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING ); hbox_disk_main .pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING );
hbox_disk = NULL ; hbox_disk = NULL ;
hbox_extended = NULL ; hbox_extended = NULL ;
this ->set_border_width( 10 ); this ->set_border_width( 10 );
this->set_spacing( 8 ); this ->set_spacing( 12 );
this ->pack_start( hbox_disk_main, Gtk::PACK_SHRINK ); this ->pack_start( hbox_disk_main, Gtk::PACK_SHRINK );
//set and allocated some standard colors //set and allocated some standard colors
@ -195,6 +194,7 @@ void VBox_VisualDisk::Build_Legend( )
hbox_legend_main .pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING ); hbox_legend_main .pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING );
hbox_legend = manage( new Gtk::HBox( ) ); hbox_legend = manage( new Gtk::HBox( ) );
hbox_legend ->set_border_width( 2 ) ;
frame_disk_legend ->add( *hbox_legend ) ; frame_disk_legend ->add( *hbox_legend ) ;
this ->pack_start( hbox_legend_main ); this ->pack_start( hbox_legend_main );
@ -230,6 +230,7 @@ void VBox_VisualDisk::Build_Legend( )
hbox_legend_main .pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING ); hbox_legend_main .pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING );
hbox_legend = manage( new Gtk::HBox( ) ); hbox_legend = manage( new Gtk::HBox( ) );
hbox_legend ->set_border_width( 2 ) ;
frame_disk_legend ->add( *hbox_legend ); frame_disk_legend ->add( *hbox_legend );
hbox_legend ->pack_start( * mk_label( " ██ ", false, false, false, "#F8F8BA" ), Gtk::PACK_SHRINK ); hbox_legend ->pack_start( * mk_label( " ██ ", false, false, false, "#F8F8BA" ), Gtk::PACK_SHRINK );