finally fixed #169683!! ( party, party! :p ) cleanups
* src/TreeView_Detail.cc: finally fixed #169683!! ( party, party! :p ) * include/Win_GParted.h, src/Win_GParted.cc, src/main.cc: cleanups
This commit is contained in:
parent
133c4583e5
commit
f36b01f138
|
@ -1,3 +1,10 @@
|
||||||
|
2006-02-10 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||||
|
|
||||||
|
* src/TreeView_Detail.cc: finally fixed #169683!! ( party, party! :p )
|
||||||
|
* include/Win_GParted.h,
|
||||||
|
src/Win_GParted.cc,
|
||||||
|
src/main.cc: cleanups
|
||||||
|
|
||||||
2006-02-09 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
2006-02-09 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||||
|
|
||||||
* src/Dialog_Progress.cc: set a min. width for detailstree instead of
|
* src/Dialog_Progress.cc: set a min. width for detailstree instead of
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include "../include/GParted_Core.h"
|
#include "../include/GParted_Core.h"
|
||||||
|
|
||||||
#include <sigc++/class_slot.h>
|
#include <sigc++/class_slot.h>
|
||||||
#include <gtkmm/main.h>
|
|
||||||
#include <gtkmm/paned.h>
|
#include <gtkmm/paned.h>
|
||||||
#include <gtkmm/toolbar.h>
|
#include <gtkmm/toolbar.h>
|
||||||
#include <gtkmm/separatortoolitem.h>
|
#include <gtkmm/separatortoolitem.h>
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../include/TreeView_Detail.h"
|
#include "../include/TreeView_Detail.h"
|
||||||
|
#include <gtkmm/main.h>
|
||||||
|
|
||||||
namespace GParted
|
namespace GParted
|
||||||
{
|
{
|
||||||
|
@ -101,10 +102,8 @@ void TreeView_Detail::load_partitions( const std::vector<Partition> & partitions
|
||||||
|
|
||||||
get_column( 2 ) ->set_visible( mount_info ) ;
|
get_column( 2 ) ->set_visible( mount_info ) ;
|
||||||
|
|
||||||
//show logical partitions ( if any )
|
|
||||||
expand_all();
|
|
||||||
|
|
||||||
columns_autosize();
|
columns_autosize();
|
||||||
|
expand_all() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TreeView_Detail::set_selected( const Partition & partition )
|
void TreeView_Detail::set_selected( const Partition & partition )
|
||||||
|
@ -148,6 +147,11 @@ void TreeView_Detail::create_row( const Gtk::TreeRow & treerow, const Partition
|
||||||
treerow[ treeview_detail_columns .status_icon ] = render_icon( Gtk::Stock::DIALOG_WARNING, Gtk::ICON_SIZE_BUTTON );
|
treerow[ treeview_detail_columns .status_icon ] = render_icon( Gtk::Stock::DIALOG_WARNING, Gtk::ICON_SIZE_BUTTON );
|
||||||
|
|
||||||
treerow[ treeview_detail_columns .partition ] = partition .partition;
|
treerow[ treeview_detail_columns .partition ] = partition .partition;
|
||||||
|
|
||||||
|
//this fixes a weird issue (see #169683 for more info)
|
||||||
|
if ( partition .type == GParted::TYPE_EXTENDED && partition .busy )
|
||||||
|
treerow[ treeview_detail_columns .partition ] = treerow[ treeview_detail_columns .partition ] + " " ;
|
||||||
|
|
||||||
treerow[ treeview_detail_columns .color ] = Utils::get_color_as_pixbuf( partition .filesystem, 16, 16 ) ;
|
treerow[ treeview_detail_columns .color ] = Utils::get_color_as_pixbuf( partition .filesystem, 16, 16 ) ;
|
||||||
|
|
||||||
treerow[ treeview_detail_columns .text_color ] =
|
treerow[ treeview_detail_columns .text_color ] =
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <gtkmm/aboutdialog.h>
|
#include <gtkmm/aboutdialog.h>
|
||||||
#include <gtkmm/messagedialog.h>
|
#include <gtkmm/messagedialog.h>
|
||||||
#include <gtkmm/radiobuttongroup.h>
|
#include <gtkmm/radiobuttongroup.h>
|
||||||
|
#include <gtkmm/main.h>
|
||||||
|
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <sys/swap.h>
|
#include <sys/swap.h>
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include "../include/Win_GParted.h"
|
#include "../include/Win_GParted.h"
|
||||||
|
|
||||||
#include <gtkmm/messagedialog.h>
|
#include <gtkmm/messagedialog.h>
|
||||||
|
#include <gtkmm/main.h>
|
||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue