parent
97e8bef63c
commit
822a072748
@ -1 +1 @@
|
||||
gparted-0.3.7.tar.bz2
|
||||
gparted-0.3.8.tar.bz2
|
||||
|
@ -1,52 +0,0 @@
|
||||
--- include/Win_GParted.h 2008-04-29 10:17:27.000000000 -0400
|
||||
+++ include/Win_GParted.h.new 2008-04-30 09:43:49.000000000 -0400
|
||||
@@ -238,6 +238,7 @@
|
||||
unsigned short new_count;//new_count keeps track of the new created partitions
|
||||
FS fs ;
|
||||
bool OPERATIONSLIST_OPEN ;
|
||||
+ sigc::connection combo_devices_signal_changed_id ;
|
||||
|
||||
GParted_Core gparted_core ;
|
||||
std::vector<Gtk::Label *> device_info ;
|
||||
--- src/Win_GParted.cc 2008-04-29 10:17:27.000000000 -0400
|
||||
+++ src/Win_GParted.cc.new 2008-04-30 09:42:28.000000000 -0400
|
||||
@@ -263,7 +263,8 @@
|
||||
combo_devices .pack_start( treeview_devices_columns .device ) ;
|
||||
combo_devices .pack_start( treeview_devices_columns .size, false ) ;
|
||||
|
||||
- combo_devices .signal_changed() .connect( sigc::mem_fun(*this, &Win_GParted::combo_devices_changed) );
|
||||
+ combo_devices_signal_changed_id =
|
||||
+ combo_devices .signal_changed() .connect( sigc::mem_fun(*this, &Win_GParted::combo_devices_changed) );
|
||||
|
||||
hbox_toolbar .pack_start( combo_devices, Gtk::PACK_SHRINK ) ;
|
||||
}
|
||||
@@ -510,6 +511,7 @@
|
||||
|
||||
void Win_GParted::refresh_combo_devices()
|
||||
{
|
||||
+ combo_devices_signal_changed_id .block() ;
|
||||
liststore_devices ->clear() ;
|
||||
|
||||
menu = manage( new Gtk::Menu() ) ;
|
||||
@@ -546,6 +548,7 @@
|
||||
menubar_main .items()[ 0 ] .get_submenu() ->items()[ 1 ] .set_submenu( *menu ) ;
|
||||
}
|
||||
|
||||
+ combo_devices_signal_changed_id .unblock() ;
|
||||
combo_devices .set_active( current_device ) ;
|
||||
}
|
||||
|
||||
@@ -929,13 +932,8 @@
|
||||
|
||||
void Win_GParted::combo_devices_changed()
|
||||
{
|
||||
- unsigned int old_current_device = current_device;
|
||||
//set new current device
|
||||
current_device = combo_devices .get_active_row_number() ;
|
||||
- if ( current_device == (unsigned int) -1 )
|
||||
- current_device = old_current_device;
|
||||
- if ( current_device >= devices .size() )
|
||||
- current_device = 0 ;
|
||||
set_title( String::ucompose( _("%1 - GParted"), devices[ current_device ] .get_path() ) );
|
||||
|
||||
//refresh label_device_info
|
@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
/usr/bin/hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run /usr/sbin/gparted
|
Loading…
Reference in new issue