gparted r965 - in trunk: . include src
- From: gedakc svn gnome org
- To: svn-commits-list gnome org
- Subject: gparted r965 - in trunk: . include src
- Date: Fri, 14 Nov 2008 19:45:14 +0000 (UTC)
Author: gedakc
Date: Fri Nov 14 19:45:14 2008
New Revision: 965
URL: http://svn.gnome.org/viewvc/gparted?rev=965&view=rev
Log:
Created method get_filesystem_software()
Modified:
trunk/ChangeLog
trunk/include/Utils.h
trunk/src/Utils.cc
Modified: trunk/include/Utils.h
==============================================================================
--- trunk/include/Utils.h (original)
+++ trunk/include/Utils.h Fri Nov 14 19:45:14 2008
@@ -126,6 +126,7 @@
static Glib::ustring get_color( FILESYSTEM filesystem ) ;
static Glib::RefPtr<Gdk::Pixbuf> get_color_as_pixbuf( FILESYSTEM filesystem, int width, int height ) ;
static Glib::ustring get_filesystem_string( FILESYSTEM filesystem ) ;
+ static Glib::ustring get_filesystem_software( FILESYSTEM filesystem ) ;
static Glib::ustring format_size( Sector size ) ;
static Glib::ustring format_time( std::time_t seconds ) ;
static double sector_to_unit( Sector sectors, SIZE_UNIT size_unit ) ;
Modified: trunk/src/Utils.cc
==============================================================================
--- trunk/src/Utils.cc (original)
+++ trunk/src/Utils.cc Fri Nov 14 19:45:14 2008
@@ -133,6 +133,28 @@
}
}
+Glib::ustring Utils::get_filesystem_software( FILESYSTEM filesystem )
+{
+ switch( filesystem )
+ {
+ case FS_EXT2 : return "e2fsprogs" ;
+ case FS_EXT3 : return "e2fsprogs" ;
+ case FS_FAT16 : return "dosfstools, mtools" ;
+ case FS_FAT32 : return "dosfstools, mtools" ;
+ case FS_HFS : return "hfsutils" ;
+ case FS_HFSPLUS : return "hfsprogs" ;
+ case FS_JFS : return "jfsutils" ;
+ case FS_LINUX_SWAP : return "util-linux" ;
+ case FS_NTFS : return "ntfsprogs" ;
+ case FS_REISER4 : return "reiser4progs" ;
+ case FS_REISERFS : return "reiserfsprogs" ;
+ case FS_UFS : return "" ;
+ case FS_XFS : return "xfsprogs" ;
+
+ default : return "" ;
+ }
+}
+
Glib::ustring Utils::format_size( Sector size )
{
std::stringstream ss ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]