changed width of optionmenus from 150 to 160 pixels. (in certain langs the
* src/Dialog_Partition_New.cc: changed width of optionmenus from 150 to 160 pixels. (in certain langs the strings didn't fit) * src/VBox_VisualDisk.cc: used/unused legend doesn't have to show up if there's only linux-swap.
This commit is contained in:
parent
053073ac2a
commit
3901d29ac8
|
@ -1,3 +1,8 @@
|
||||||
|
2004-10-18 Bart Hakvoort <gparted@users.sf.net>
|
||||||
|
|
||||||
|
* src/Dialog_Partition_New.cc: changed width of optionmenus from 150 to 160 pixels. (in certain langs the strings didn't fit)
|
||||||
|
* src/VBox_VisualDisk.cc: used/unused legend doesn't have to show up if there's only linux-swap.
|
||||||
|
|
||||||
2004-10-17 Bart Hakvoort <gparted@users.sf.net>
|
2004-10-17 Bart Hakvoort <gparted@users.sf.net>
|
||||||
|
|
||||||
* src/Dialog_About.cc (Show_Credits): Fixed Gtk-Warning with unknown pango markup and placed a 5 pixel-border around
|
* src/Dialog_About.cc (Show_Credits): Fixed Gtk-Warning with unknown pango markup and placed a 5 pixel-border around
|
||||||
|
|
|
@ -74,7 +74,7 @@ void Dialog_Partition_New::Set_Data( const Partition & partition, bool any_exten
|
||||||
}
|
}
|
||||||
|
|
||||||
optionmenu_type.set_menu( menu_type );
|
optionmenu_type.set_menu( menu_type );
|
||||||
optionmenu_type.set_size_request( 150, -1 ); //150 is the ideal width for this table column, (when one widget is set, the rest wil take this width as well)
|
optionmenu_type.set_size_request( 160, -1 ); //160 is the ideal width for this table column, (when one widget is set, the rest wil take this width as well)
|
||||||
optionmenu_type.signal_changed().connect( sigc::bind<bool>(sigc::mem_fun(*this, &Dialog_Partition_New::optionmenu_changed), true) );
|
optionmenu_type.signal_changed().connect( sigc::bind<bool>(sigc::mem_fun(*this, &Dialog_Partition_New::optionmenu_changed), true) );
|
||||||
table_create.attach( optionmenu_type, 1,2,0,1,Gtk::FILL);
|
table_create.attach( optionmenu_type, 1,2,0,1,Gtk::FILL);
|
||||||
|
|
||||||
|
|
|
@ -171,12 +171,12 @@ void VBox_VisualDisk::Build_Legend( )
|
||||||
this ->pack_start( hbox_legend_main );
|
this ->pack_start( hbox_legend_main );
|
||||||
|
|
||||||
std::vector<Glib::ustring> legende;
|
std::vector<Glib::ustring> legende;
|
||||||
bool only_unallocated = true;
|
bool hide_used_unused = true;
|
||||||
|
|
||||||
for ( unsigned int i=0;i<partitions.size();i++ )
|
for ( unsigned int i=0;i<partitions.size();i++ )
|
||||||
{
|
{
|
||||||
if ( partitions[i].type != GParted::UNALLOCATED && partitions[i].type != GParted::EXTENDED )
|
if ( partitions[i] .type != GParted::UNALLOCATED && partitions[i] .type != GParted::EXTENDED && partitions[i] .filesystem != "linux-swap" )
|
||||||
only_unallocated = false;
|
hide_used_unused = false;
|
||||||
|
|
||||||
if ( std::find( legende .begin(), legende .end(), partitions[i] .filesystem ) == legende .end() )
|
if ( std::find( legende .begin(), legende .end(), partitions[i] .filesystem ) == legende .end() )
|
||||||
{
|
{
|
||||||
|
@ -195,7 +195,7 @@ void VBox_VisualDisk::Build_Legend( )
|
||||||
}
|
}
|
||||||
|
|
||||||
//if there are any partitions add used/unused
|
//if there are any partitions add used/unused
|
||||||
if ( ! only_unallocated )
|
if ( ! hide_used_unused )
|
||||||
{
|
{
|
||||||
frame_disk_legend = manage( new Gtk::Frame() ) ;
|
frame_disk_legend = manage( new Gtk::Frame() ) ;
|
||||||
hbox_legend_main.pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING );
|
hbox_legend_main.pack_start( *frame_disk_legend, Gtk::PACK_EXPAND_PADDING );
|
||||||
|
|
Loading…
Reference in New Issue