Container are now still arranged when they are hidden because of a null size.
[GB.GTK] * BUG: Container are now still arranged when they are hidden because of a null size. [GB.GTK3] * BUG: Container are now still arranged when they are hidden because of a null size.
This commit is contained in:
parent
178c665461
commit
cf1679faa6
2 changed files with 18 additions and 10 deletions
|
@ -65,11 +65,11 @@ static gboolean cb_expose(GtkWidget *wid, GdkEventExpose *e, gContainer *data)
|
|||
|
||||
static void cb_map(GtkWidget *widget, gContainer *sender)
|
||||
{
|
||||
//fprintf(stderr, "cb_map: %p / %p (%d) '%s'\n", sender, sender->hFree, gApplication::_disable_mapping_events, sender->name());
|
||||
if (gApplication::_disable_mapping_events)
|
||||
return;
|
||||
|
||||
sender->setShown(true);
|
||||
if (!gApplication::_disable_mapping_events)
|
||||
sender->arrangeLater();
|
||||
sender->arrangeLater();
|
||||
}
|
||||
|
||||
#if GTK3
|
||||
|
@ -98,6 +98,9 @@ static void cb_unmap(GtkWidget *widget, gContainer *sender)
|
|||
{
|
||||
//fprintf(stderr, "cb_unmap: %p / %p '%s'\n", sender, sender->hFree, sender->name());
|
||||
|
||||
if (gApplication::_disable_mapping_events)
|
||||
return;
|
||||
|
||||
sender->setShown(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -698,9 +698,14 @@ void FUNCTION_NAME(void *_object) //(QFrame *cont)
|
|||
break;
|
||||
|
||||
case ARRANGE_ROW:
|
||||
//if ((y + h + arr->padding + GET_WIDGET_H(cont) - hc - yc) < 16)
|
||||
// qDebug("y = %d h = %d arr->padding = %d H = %d hc = %d yc = %d -> %d", y, h, arr->padding, GET_WIDGET_H(cont), hc, yc, (y + h + arr->padding + GET_WIDGET_H(cont) - hc - yc));
|
||||
RESIZE_CONTAINER(_object, cont, GET_WIDGET_W(cont), y + h + padding + hf);
|
||||
// #ifndef GET_MAX_SIZE
|
||||
// #ifndef QNAMESPACE_H
|
||||
// fprintf(stderr, "%s: ROW: autoresize (%d, %d)\n", ((gControl *)_object)->name(), GET_WIDGET_W(cont), y + h + padding + hf);
|
||||
// #else
|
||||
// fprintf(stderr, "%s: ROW: autoresize (%d, %d)\n", ((CWIDGET *)_object)->name, GET_WIDGET_W(cont), y + h + padding + hf);
|
||||
// #endif
|
||||
// #endif
|
||||
// RESIZE_CONTAINER(_object, cont, GET_WIDGET_W(cont), y + h + padding + hf);
|
||||
break;
|
||||
|
||||
case ARRANGE_FILL:
|
||||
|
|
Loading…
Reference in a new issue