Some deferred arrangements were useless, don't do them.

[GB.GTK]
* BUG: Some deferred arrangements were useless, don't do them.

[GB.GTK3]
* BUG: Some deferred arrangements were useless, don't do them.
This commit is contained in:
gambas 2021-04-19 14:06:49 +02:00
parent 1a27f285ca
commit 8fb4c37fcd

View file

@ -66,7 +66,8 @@ static gboolean cb_expose(GtkWidget *wid, GdkEventExpose *e, gContainer *data)
static void cb_map(GtkWidget *widget, gContainer *sender)
{
sender->setShown(true);
sender->arrangeLater();
if (!sender->isTempHidden())
sender->arrangeLater();
}
static void cb_unmap(GtkWidget *widget, gContainer *sender)
@ -963,8 +964,7 @@ void gContainer::postArrange()
break;
cont = (gContainer *)iter->data;
cont->resetArrangeLater();
if (!cont->isTempHidden())
cont->performArrange();
cont->performArrange();
}
_arrange_list = NULL;