Fixes "Gtk-CRITICAL: gtk_box_pack assertion failed" messages
This commit is contained in:
parent
7ccd901ad1
commit
7a33c69b57
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user