Remove deprecated GTK3 code, fixes #6103 (#6113)

Replaces the following deprecated Gtk classes throughout the codebase by their non-deprecated counterparts. Style, HBox, VBox, HPaned, VPaned, HScrollbar, VScrollbar, VSeparator, HSeparator, Stock, Table, VScale and HScale.
This commit is contained in:
Thanatomanic
2021-02-17 11:44:25 +01:00
committed by GitHub
parent a349d17b08
commit fc031ccb5a
119 changed files with 737 additions and 641 deletions

View File

@@ -34,7 +34,7 @@ FilePanel::FilePanel () : parent(nullptr), error(0)
{
// Contains everything except for the batch Tool Panel and tabs (Fast Export, Inspect, etc)
dirpaned = Gtk::manage ( new Gtk::HPaned () );
dirpaned = Gtk::manage ( new Gtk::Paned () );
dirpaned->set_position (options.dirBrowserWidth);
// The directory tree
@@ -45,12 +45,12 @@ FilePanel::FilePanel () : parent(nullptr), error(0)
recentBrowser = Gtk::manage ( new RecentBrowser () );
// The whole left panel. Contains Places, Recent Folders and Folders.
placespaned = Gtk::manage ( new Gtk::VPaned () );
placespaned = Gtk::manage ( new Gtk::Paned (Gtk::ORIENTATION_VERTICAL) );
placespaned->set_name ("PlacesPaned");
placespaned->set_size_request(250, 100);
placespaned->set_position (options.dirBrowserHeight);
Gtk::VBox* obox = Gtk::manage (new Gtk::VBox ());
Gtk::Box* obox = Gtk::manage (new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
obox->get_style_context()->add_class ("plainback");
obox->pack_start (*recentBrowser, Gtk::PACK_SHRINK, 4);
obox->pack_start (*dirBrowser);
@@ -79,11 +79,11 @@ FilePanel::FilePanel () : parent(nullptr), error(0)
recentBrowser->setDirSelector (sigc::mem_fun (dirBrowser, &DirBrowser::selectDir));
fileCatalog->setFileSelectionListener (this);
rightBox = Gtk::manage ( new Gtk::HBox () );
rightBox = Gtk::manage ( new Gtk::Box () );
rightBox->set_size_request(350, 100);
rightNotebook = Gtk::manage ( new Gtk::Notebook () );
rightNotebookSwitchConn = rightNotebook->signal_switch_page().connect_notify( sigc::mem_fun(*this, &FilePanel::on_NB_switch_page) );
//Gtk::VBox* taggingBox = Gtk::manage ( new Gtk::VBox () );
//Gtk::Box* taggingBox = Gtk::manage ( new Gtk::Box(Gtk::ORIENTATION_VERTICAL) );
history = Gtk::manage ( new History (false) );
@@ -130,7 +130,7 @@ FilePanel::FilePanel () : parent(nullptr), error(0)
exportLab->set_name ("LabelRightNotebook");
exportLab->set_angle (90);
tpcPaned = Gtk::manage ( new Gtk::VPaned () );
tpcPaned = Gtk::manage ( new Gtk::Paned (Gtk::ORIENTATION_VERTICAL) );
tpcPaned->pack1 (*tpc->toolPanelNotebook, false, true);
tpcPaned->pack2 (*history, true, false);
@@ -177,7 +177,7 @@ FilePanel::~FilePanel ()
void FilePanel::on_realize ()
{
Gtk::HPaned::on_realize ();
Gtk::Paned::on_realize ();
tpc->closeAllTools();
}