call GParted_Core::find_supported_filesystems( ) in

* src/GParted_Core.cc,
  src/Win_GParted.cc: call GParted_Core::find_supported_filesystems( ) in GParted_Core::GParted_Core() instead of Win_GParted::Win_GParted().
  Also replaced 0xFFFF with GDK_Delete to improve readability of the source.
This commit is contained in:
Bart Hakvoort 2005-01-08 23:45:45 +00:00
parent 1c629c16d4
commit 4cd424532c
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-01-09 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc,
src/Win_GParted.cc: call GParted_Core::find_supported_filesystems( ) in GParted_Core::GParted_Core() instead of Win_GParted::Win_GParted().
Also replaced 0xFFFF with GDK_Delete to improve readability of the source.
2004-12-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
* replaced atoi with atol .

View File

@ -15,6 +15,8 @@ GParted_Core::GParted_Core( )
//get valid flags ...
for ( PedPartitionFlag flag = ped_partition_flag_next( (PedPartitionFlag) NULL ) ; flag ; flag = ped_partition_flag_next( flag ) )
flags .push_back( flag ) ;
find_supported_filesystems( ) ;
}
void GParted_Core::find_supported_filesystems( )

View File

@ -28,9 +28,6 @@ Win_GParted::Win_GParted( )
vbox_visual_disk = NULL;
pulse = false ;
//store filesystems in vector and find out if their respective libs are installed
gparted_core .find_supported_filesystems( ) ;
//==== GUI =========================
this ->set_title( _("GParted") );
this ->set_default_size( 775, 500 );
@ -157,7 +154,7 @@ void Win_GParted::init_popupmenu()
{
//fill menu_popup
menu_popup.items().push_back( Gtk::Menu_Helpers::StockMenuElem( Gtk::Stock::NEW, sigc::mem_fun(*this, &Win_GParted::activate_new) ) );
menu_popup.items().push_back( Gtk::Menu_Helpers::StockMenuElem( Gtk::Stock::DELETE, Gtk::AccelKey( 0xFFFF, Gdk::BUTTON1_MASK ), sigc::mem_fun(*this, &Win_GParted::activate_delete) ) );
menu_popup.items().push_back( Gtk::Menu_Helpers::StockMenuElem( Gtk::Stock::DELETE, Gtk::AccelKey( GDK_Delete, Gdk::BUTTON1_MASK ), sigc::mem_fun(*this, &Win_GParted::activate_delete) ) );
menu_popup.items().push_back( Gtk::Menu_Helpers::SeparatorElem() );
image = manage( new Gtk::Image( Gtk::Stock::GOTO_LAST, Gtk::ICON_SIZE_MENU ) );
menu_popup.items().push_back( Gtk::Menu_Helpers::ImageMenuElem( _("Resize/Move"), *image, sigc::mem_fun(*this, &Win_GParted::activate_resize) ) );