made message about max. primary partitions a bit more informative.

* src/Win_GParted.cc: made message about max. primary partitions a bit
  more informative.
This commit is contained in:
Bart Hakvoort 2006-03-06 11:56:59 +00:00
parent 170eb4b4a4
commit cca8bb415d
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-03-06 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Win_GParted.cc: made message about max. primary partitions a bit
more informative.
2006-03-05 Bart Hakvoort <hakvoort@cvs.gnome.org> 2006-03-05 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/GParted_Core.h, * include/GParted_Core.h,

View File

@ -1069,8 +1069,7 @@ bool Win_GParted::max_amount_prim_reached()
{ {
//Display error if user tries to create more primary partitions than the partition table can hold. //Display error if user tries to create more primary partitions than the partition table can hold.
if ( ! selected_partition .inside_extended && primary_count >= devices[ current_device ] .max_prims ) if ( ! selected_partition .inside_extended && primary_count >= devices[ current_device ] .max_prims )
{//FIXME..maybe we should mention the fact the user needs to remove an primary before {
//he can add an extended..
Gtk::MessageDialog dialog( Gtk::MessageDialog dialog(
*this, *this,
String::ucompose( _("It is not possible to create more than %1 primary partitions"), String::ucompose( _("It is not possible to create more than %1 primary partitions"),
@ -1081,7 +1080,7 @@ bool Win_GParted::max_amount_prim_reached()
true ) ; true ) ;
dialog .set_secondary_text( dialog .set_secondary_text(
_( "If you want more partitions you should first create an extended partition. Such a partition can contain other partitions.") ) ; _( "If you want more partitions you should first create an extended partition. Such a partition can contain other partitions. Because an extended partition is also a primary partition it might be necessary to remove a primary partition first.") ) ;
dialog .run() ; dialog .run() ;