gparted r961 - in trunk: . include src
- From: gedakc svn gnome org
- To: svn-commits-list gnome org
- Subject: gparted r961 - in trunk: . include src
- Date: Tue, 11 Nov 2008 17:21:22 +0000 (UTC)
Author: gedakc
Date: Tue Nov 11 17:21:22 2008
New Revision: 961
URL: http://svn.gnome.org/viewvc/gparted?rev=961&view=rev
Log:
Added read UUID read display
Modified:
trunk/ChangeLog
trunk/include/Partition.h
trunk/src/Dialog_Partition_Info.cc
trunk/src/GParted_Core.cc
trunk/src/Partition.cc
Modified: trunk/include/Partition.h
==============================================================================
--- trunk/include/Partition.h (original)
+++ trunk/include/Partition.h Tue Nov 11 17:21:22 2008
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004 Bart
+/* Copyright (C) 2004, 2005, 2006, 2007, 2008 Bart Hakvoort
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -99,6 +99,7 @@
PartitionStatus status; //STAT_REAL, STAT_NEW, etc..
FILESYSTEM filesystem ;
Glib::ustring label ;
+ Glib::ustring uuid ;
Sector sector_start;
Sector sector_end;
Sector sectors_used;
Modified: trunk/src/Dialog_Partition_Info.cc
==============================================================================
--- trunk/src/Dialog_Partition_Info.cc (original)
+++ trunk/src/Dialog_Partition_Info.cc Tue Nov 11 17:21:22 2008
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004 Bart
+/* Copyright (C) 2004, 2005, 2006, 2007, 2008 Bart Hakvoort
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -271,7 +271,20 @@
top++, bottom++,
Gtk::FILL) ;
}
-
+
+ //uuid
+ if ( partition.type != GParted::TYPE_UNALLOCATED && partition.type != GParted::TYPE_EXTENDED )
+ {
+ table ->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("UUID:") ) + "</b>"),
+ 0, 1,
+ top, bottom,
+ Gtk::FILL) ;
+ table ->attach( * Utils::mk_label( partition .uuid ),
+ 1, 2,
+ top++, bottom++,
+ Gtk::FILL) ;
+ }
+
//one blank line
table ->attach( * Utils::mk_label( "" ), 1, 2, top++, bottom++, Gtk::FILL ) ;
Modified: trunk/src/GParted_Core.cc
==============================================================================
--- trunk/src/GParted_Core.cc (original)
+++ trunk/src/GParted_Core.cc Tue Nov 11 17:21:22 2008
@@ -17,6 +17,7 @@
#include "../include/Win_GParted.h"
#include "../include/GParted_Core.h"
+#include "../include/FS_Info.h"
#include "../include/OperationCopy.h"
#include "../include/OperationCreate.h"
#include "../include/OperationDelete.h"
@@ -676,6 +677,7 @@
{
int EXT_INDEX = -1 ;
char * lp_path ;//we have to free the result of ped_partition_get_path()..
+ FS_Info fs_info ; //Build cache of file system information
//clear partitions
device .partitions .clear() ;
@@ -733,7 +735,12 @@
break;
}
- read_label( partition_temp ) ;
+ //Avoid reading additional file system information if there is no path
+ //FIXME: Why is there an empty path for the first primary partition, and an empty path for each logical partition?
+ if ( partition_temp .get_path() != "" ) {
+ read_label( partition_temp ) ;
+ partition_temp .uuid = fs_info .get_uuid( partition_temp .get_path() ) ;
+ }
partition_temp .messages .insert( partition_temp .messages .end(),
libparted_messages. begin(),
Modified: trunk/src/Partition.cc
==============================================================================
--- trunk/src/Partition.cc (original)
+++ trunk/src/Partition.cc Tue Nov 11 17:21:22 2008
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004 Bart
+/* Copyright (C) 2004, 2005, 2006, 2007, 2008 Bart Hakvoort
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -40,6 +40,7 @@
type = GParted::TYPE_UNALLOCATED ;
filesystem = GParted::FS_UNALLOCATED ;
label .clear() ;
+ uuid .clear() ;
partition_number = sector_start = sector_end = sectors_used = sectors_unused = -1;
color .set( "black" ) ;
inside_extended = busy = strict = false ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]