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:
parent
1c629c16d4
commit
4cd424532c
|
@ -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>
|
2004-12-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||||
|
|
||||||
* replaced atoi with atol .
|
* replaced atoi with atol .
|
||||||
|
|
|
@ -15,6 +15,8 @@ GParted_Core::GParted_Core( )
|
||||||
//get valid flags ...
|
//get valid flags ...
|
||||||
for ( PedPartitionFlag flag = ped_partition_flag_next( (PedPartitionFlag) NULL ) ; flag ; flag = ped_partition_flag_next( flag ) )
|
for ( PedPartitionFlag flag = ped_partition_flag_next( (PedPartitionFlag) NULL ) ; flag ; flag = ped_partition_flag_next( flag ) )
|
||||||
flags .push_back( flag ) ;
|
flags .push_back( flag ) ;
|
||||||
|
|
||||||
|
find_supported_filesystems( ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GParted_Core::find_supported_filesystems( )
|
void GParted_Core::find_supported_filesystems( )
|
||||||
|
|
|
@ -28,9 +28,6 @@ Win_GParted::Win_GParted( )
|
||||||
vbox_visual_disk = NULL;
|
vbox_visual_disk = NULL;
|
||||||
pulse = false ;
|
pulse = false ;
|
||||||
|
|
||||||
//store filesystems in vector and find out if their respective libs are installed
|
|
||||||
gparted_core .find_supported_filesystems( ) ;
|
|
||||||
|
|
||||||
//==== GUI =========================
|
//==== GUI =========================
|
||||||
this ->set_title( _("GParted") );
|
this ->set_title( _("GParted") );
|
||||||
this ->set_default_size( 775, 500 );
|
this ->set_default_size( 775, 500 );
|
||||||
|
@ -157,7 +154,7 @@ void Win_GParted::init_popupmenu()
|
||||||
{
|
{
|
||||||
//fill menu_popup
|
//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::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() );
|
menu_popup.items().push_back( Gtk::Menu_Helpers::SeparatorElem() );
|
||||||
image = manage( new Gtk::Image( Gtk::Stock::GOTO_LAST, Gtk::ICON_SIZE_MENU ) );
|
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) ) );
|
menu_popup.items().push_back( Gtk::Menu_Helpers::ImageMenuElem( _("Resize/Move"), *image, sigc::mem_fun(*this, &Win_GParted::activate_resize) ) );
|
||||||
|
|
Loading…
Reference in New Issue