Fixes "Gtk-CRITICAL: gtk_box_pack assertion failed" messages

This commit is contained in:
Pandagrapher 2019-01-06 10:29:39 +01:00
parent 7ccd901ad1
commit 7a33c69b57
2 changed files with 4 additions and 4 deletions

View File

@ -182,7 +182,7 @@ ToolPanelCoordinator::ToolPanelCoordinator (bool batch) : ipc (nullptr), favorit
updateVScrollbars (options.hideTPVScrollbar);
// load panel endings
for (int i = 0; i < 7; i++) {
for (int i = 0; i < 8; i++) {
vbPanelEnd[i] = Gtk::manage (new Gtk::VBox ());
imgPanelEnd[i] = Gtk::manage (new RTImage ("ornament1.png"));
imgPanelEnd[i]->show();
@ -214,7 +214,7 @@ ToolPanelCoordinator::ToolPanelCoordinator (bool batch) : ipc (nullptr), favorit
locallabPanelSW->add(*locallabPanel);
locallabPanel->pack_start(*Gtk::manage(new Gtk::HSeparator), Gtk::PACK_SHRINK, 0);
locallabPanel->pack_start(*vbPanelEnd[6], Gtk::PACK_SHRINK, 0);
locallabPanel->pack_start(*vbPanelEnd[7], Gtk::PACK_SHRINK, 4);
transformPanelSW->add (*transformPanel);
transformPanel->pack_start (*Gtk::manage (new Gtk::HSeparator), Gtk::PACK_SHRINK, 0);

View File

@ -181,8 +181,8 @@ protected:
TextOrIcon* toiW;
TextOrIcon* toiL;
Gtk::Image* imgPanelEnd[7];
Gtk::VBox* vbPanelEnd[7];
Gtk::Image* imgPanelEnd[8];
Gtk::VBox* vbPanelEnd[8];
Gtk::ScrolledWindow* favoritePanelSW;
Gtk::ScrolledWindow* exposurePanelSW;