added libparted version string to details export.

* include/Dialog_Progress.h,
  include/GParted_Core.h,
  src/Dialog_Progress.cc,
  src/GParted_Core.cc,
  src/Win_GParted.cc: added libparted version string to details
  export.
This commit is contained in:
Bart Hakvoort 2006-12-01 13:01:46 +00:00
parent 7a29fdd631
commit 7a413f6401
6 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2006-12-01 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/Dialog_Progress.h,
include/GParted_Core.h,
src/Dialog_Progress.cc,
src/GParted_Core.cc,
src/Win_GParted.cc: added libparted version string to details
export.
2006-11-26 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Win_GParted.cc: fixed bug with copying partition to a disk

View File

@ -41,6 +41,7 @@ public:
~Dialog_Progress();
sigc::signal< bool, Operation * > signal_apply_operation ;
sigc::signal< Glib::ustring > signal_get_libparted_version ;
private:
void on_signal_update( const OperationDetail & operationdetail ) ;

View File

@ -50,6 +50,7 @@ public:
std::vector<Glib::ustring> get_disklabeltypes() ;
std::vector<Glib::ustring> get_all_mountpoints() ;
std::map<Glib::ustring, bool> get_available_flags( const Partition & partition ) ;
Glib::ustring get_libparted_version() ;
private:
//detectionstuff..

View File

@ -343,6 +343,7 @@ void Dialog_Progress::on_save()
if ( out )
{
out << "GParted " << VERSION << "<BR><BR>" << std::endl ;
out << "Libparted " << signal_get_libparted_version .emit() << "<BR><BR>" << std::endl ;
for ( unsigned int t = 0 ; t < operations .size() ; t++ )
{
echo_operation_details( operations[ t ] ->operation_detail, out ) ;

View File

@ -449,6 +449,11 @@ std::map<Glib::ustring, bool> GParted_Core::get_available_flags( const Partition
return flag_info ;
}
Glib::ustring GParted_Core::get_libparted_version()
{
return ped_get_version() ;
}
//private functions...

View File

@ -1837,6 +1837,8 @@ void Win_GParted::activate_apply()
dialog_progress .set_transient_for( *this ) ;
dialog_progress .signal_apply_operation .connect(
sigc::mem_fun(gparted_core, &GParted_Core::apply_operation_to_disk) ) ;
dialog_progress .signal_get_libparted_version .connect(
sigc::mem_fun(gparted_core, &GParted_Core::get_libparted_version) ) ;
int response ;
do