Use Gtk::Paned (!25)

Gtk::HPaned and Gtk::VPaned were deprecated in Gtkmm 3.2.  Replace with
plain Gtk::Paned.

Closes !25 - Modern Gtk3 - part 1
This commit is contained in:
Luca Bacci 2019-02-27 17:52:50 +01:00 committed by Mike Fleetwood
parent 07fc4aefc3
commit 667af24c73
2 changed files with 4 additions and 2 deletions

View File

@ -216,8 +216,8 @@ private:
std::vector<Operation *> operations;
//gui stuff
Gtk::HPaned hpaned_main;
Gtk::VPaned vpaned_main;
Gtk::Paned hpaned_main;
Gtk::Paned vpaned_main;
Gtk::Box vbox_main;
Gtk::Box vbox_info;
Gtk::Box hbox_toolbar;

View File

@ -117,6 +117,7 @@ Win_GParted::Win_GParted( const std::vector<Glib::ustring> & user_devices )
//hpaned_main (NOTE: added to vpaned_main)
init_hpaned_main() ;
vpaned_main.set_orientation(Gtk::ORIENTATION_VERTICAL);
vpaned_main .pack1( hpaned_main, true, true ) ;
//vpaned_main....
@ -669,6 +670,7 @@ void Win_GParted::init_device_info()
void Win_GParted::init_hpaned_main()
{
hpaned_main.set_orientation(Gtk::ORIENTATION_HORIZONTAL);
//left scrollwindow (holds device info)
scrollwindow = manage( new Gtk::ScrolledWindow() ) ;
scrollwindow ->set_shadow_type( Gtk::SHADOW_ETCHED_IN );