removed inheritance from sigc::trackable. (this is already done by
* include/Frame_Resizer_Base.h: removed inheritance from sigc::trackable. (this is already done by Glib::Object). * src/Dialog_Partition_Copy.cc, src/Frame_Resizer_Base.cc: fixed issues with resizing reiserfs filesystems.
This commit is contained in:
parent
c65731a497
commit
bcb05b8540
|
@ -1,3 +1,9 @@
|
|||
2004-10-08 Bart Hakvoort <gparted@users.sf.net>
|
||||
|
||||
* include/Frame_Resizer_Base.h: removed inheritance from sigc::trackable. (this is already done by Glib::Object)
|
||||
* src/Dialog_Partition_Copy.cc,
|
||||
src/Frame_Resizer_Base.cc: fixed issues with resizing reiserfs filesystems.
|
||||
|
||||
2004-10-08 Bart Hakvoort <gparted@users.sf.net>
|
||||
|
||||
* src/Dialog_About.cc: updated translatorcomment.
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#define BORDER 8
|
||||
|
||||
class Frame_Resizer_Base : public Gtk::Frame, virtual public sigc::trackable
|
||||
class Frame_Resizer_Base : public Gtk::Frame
|
||||
{
|
||||
public:
|
||||
|
||||
|
|
|
@ -46,6 +46,10 @@ void Dialog_Partition_Copy::Set_Data( Partition & selected_partition, Partition
|
|||
frame_resizer_base ->set_x_end( ( Round( (double) (copied_partition.sector_end - copied_partition.sector_start) / ( (double)total_length/500) )) ) ;
|
||||
frame_resizer_base ->set_used( frame_resizer_base ->get_x_end() ) ;
|
||||
|
||||
//used to store current positions (see Dialog_Base_Partition::on_signal_resize)
|
||||
this ->x_start = frame_resizer_base ->get_x_start( ) ;
|
||||
this ->x_end = frame_resizer_base ->get_x_end( ) ;
|
||||
|
||||
//set values of spinbutton_before
|
||||
spinbutton_before .set_range( 0, TOTAL_MB - copied_partition .Get_Length_MB() -1 ) ;//mind the -1 !!
|
||||
spinbutton_before .set_value( 0 ) ;
|
||||
|
@ -55,7 +59,7 @@ void Dialog_Partition_Copy::Set_Data( Partition & selected_partition, Partition
|
|||
if ( copied_partition.filesystem == "fat16" && Sector_To_MB( total_length ) > 1023 )
|
||||
UPPER = 1023 ;
|
||||
else
|
||||
UPPER = TOTAL_MB;
|
||||
UPPER = TOTAL_MB ;
|
||||
|
||||
spinbutton_size .set_range( copied_partition .Get_Length_MB() +1, UPPER ) ;
|
||||
spinbutton_size .set_value( copied_partition .Get_Length_MB() ) ;
|
||||
|
|
|
@ -61,14 +61,14 @@ void Frame_Resizer_Base::init()
|
|||
void Frame_Resizer_Base::set_rgb_partition_color( const Gdk::Color & color )
|
||||
{
|
||||
this ->get_colormap() ->free_colors( color_partition, 1 ) ;
|
||||
this->color_partition = color ;
|
||||
this ->color_partition = color ;
|
||||
this ->get_colormap() ->alloc_color( color_partition ) ;
|
||||
}
|
||||
|
||||
void Frame_Resizer_Base::override_default_rgb_unused_color( const Gdk::Color & color )
|
||||
{
|
||||
this ->get_colormap() ->free_colors( color_unused, 1 ) ;
|
||||
this->color_unused = color ;
|
||||
this ->color_unused = color ;
|
||||
this ->get_colormap() ->alloc_color( color_unused ) ;
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,7 @@ void Frame_Resizer_Base::Draw_Partition( )
|
|||
if ( UNUSED < 0 )
|
||||
UNUSED = 0 ;
|
||||
|
||||
drawingarea .get_window() ->clear () ;
|
||||
drawingarea .get_window() ->clear() ;
|
||||
|
||||
//the two rectangles on each side of the partition
|
||||
gc ->set_foreground( color_arrow_rectangle );
|
||||
|
@ -253,24 +253,24 @@ void Frame_Resizer_Base::Draw_Resize_Grip( ArrowType arrow_type )
|
|||
{
|
||||
if ( arrow_type == ARROW_LEFT )
|
||||
{
|
||||
arrow_points[0] .set_x( X_START) ;
|
||||
arrow_points[1] .set_x( X_START -10) ;
|
||||
arrow_points[2] .set_x( X_START) ;
|
||||
arrow_points[0] .set_x( X_START ) ;
|
||||
arrow_points[1] .set_x( X_START -10 ) ;
|
||||
arrow_points[2] .set_x( X_START ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
arrow_points[0] .set_x( X_END) ;
|
||||
arrow_points[1] .set_x( X_END +10) ;
|
||||
arrow_points[2] .set_x( X_END) ;
|
||||
arrow_points[0] .set_x( X_END ) ;
|
||||
arrow_points[1] .set_x( X_END +10 ) ;
|
||||
arrow_points[2] .set_x( X_END ) ;
|
||||
}
|
||||
|
||||
//attach resize arrows to the partition
|
||||
gc ->set_foreground( color_arrow_rectangle );
|
||||
|
||||
if ( arrow_type == ARROW_LEFT )
|
||||
drawingarea .get_window() ->draw_rectangle( gc, false, X_START -10 , 5, 9 , 40 );
|
||||
drawingarea .get_window() ->draw_rectangle( gc, false, X_START -10 , 5, 9, 40 );
|
||||
else
|
||||
drawingarea .get_window() ->draw_rectangle( gc, false, X_END +1, 5, 9 , 40 );
|
||||
drawingarea .get_window() ->draw_rectangle( gc, false, X_END +1, 5, 9, 40 );
|
||||
|
||||
gc ->set_foreground( color_arrow );
|
||||
drawingarea .get_window() ->draw_polygon( gc , true, arrow_points );
|
||||
|
|
Loading…
Reference in New Issue