Fix the workaround on TabStrip layout error messages.

[GB.GTK3]
* BUG: Fix the workaround on TabStrip layout error messages.
This commit is contained in:
gambas 2020-11-07 00:45:17 +01:00
parent 526919c990
commit 0b6359e697
2 changed files with 7 additions and 3 deletions

View file

@ -512,10 +512,11 @@ int gContainer::clientWidth()
if ((width() != a.width || height() != a.height)
&& a.width > 0 && a.height > 0)
{
//g_debug("clientWidth: %s: %d", name(), width());
a.x = x(); a.y = y(); a.width = width(); a.height = height();
//gt_disable_warnings(true);
gt_disable_warnings(true);
gtk_widget_size_allocate(widget, &a);
//gt_disable_warnings(false);
gt_disable_warnings(false);
}
//g_debug("ClientWidth: %s -> %d", this->name(), cont->allocation.width);

View file

@ -1710,7 +1710,7 @@ static bool must_patch(GtkWidget *widget)
GtkWidget *parent;
gControl *parent_control;
if (GTK_IS_ENTRY(widget) || GTK_IS_FIXED(widget))
if (GTK_IS_ENTRY(widget)) // || GTK_IS_FIXED(widget))
return true;
if (gt_get_control(widget))
@ -1719,6 +1719,9 @@ static bool must_patch(GtkWidget *widget)
parent = gtk_widget_get_parent(widget);
if (!parent)
return false;
if (GTK_IS_NOTEBOOK(parent) && GTK_IS_FIXED(widget))
return true;
if (GTK_IS_SCROLLED_WINDOW(parent))
{