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

@@ -38,6 +38,7 @@ LocallabToolList::LocallabToolList():
// Tool list listener
listListener(nullptr)
{
set_orientation(Gtk::ORIENTATION_VERTICAL);
list->set_model(listTreeModel);
list->pack_start(toolRow.name);
listConn = list->signal_changed().connect(sigc::mem_fun(*this, &LocallabToolList::toolRowSelected));
@@ -167,6 +168,8 @@ Locallab::Locallab():
// Other widgets
resetshowButton(Gtk::manage(new Gtk::Button(M("TP_LOCALLAB_RESETSHOW"))))
{
set_orientation(Gtk::ORIENTATION_VERTICAL);
// Create panel widget to receive Locallab GUI elements
ToolVBox* const panel = Gtk::manage(new ToolVBox());
panel->set_spacing(2);
@@ -177,7 +180,7 @@ Locallab::Locallab():
panel->pack_start(*expsettings->getExpander(), false, false);
// Add separator
Gtk::HSeparator* const separator = Gtk::manage(new Gtk::HSeparator());
Gtk::Separator* const separator = Gtk::manage(new Gtk::Separator(Gtk::ORIENTATION_HORIZONTAL));
panel->pack_start(*separator, false, false);
// Add tool list widget
@@ -203,7 +206,7 @@ Locallab::Locallab():
panel->pack_start(*toolpanel, false, false);
// Add separator
// Gtk::HSeparator* const separator2 = Gtk::manage(new Gtk::HSeparator());
// Gtk::Separator* const separator2 = Gtk::manage(new Gtk::Separator(Gtk::ORIENTATION_HORIZONTAL));
// panel->pack_start(*separator2, false, false);
// Add mask reset button to panel widget