forked from AuroraMiddleware/gtk
sizerequest: Remove critical warning for now
At last as long as widgets like GtkFlowBox and GtkGrid still trigger this, it is not a great idea to have this warning in a stable release. So remove it for 4.6
This commit is contained in:
parent
fcdd5173bd
commit
de42b5bfae
@ -493,12 +493,8 @@ gtk_widget_measure (GtkWidget *widget,
|
||||
int min_opposite_size;
|
||||
gtk_widget_measure (widget, OPPOSITE_ORIENTATION (orientation), -1, &min_opposite_size, NULL, NULL, NULL);
|
||||
if (for_size < min_opposite_size)
|
||||
{
|
||||
g_critical ("gtk_widget_measure: assertion 'for_size >= minimum opposite size' failed: %u >= %u",
|
||||
for_size, min_opposite_size);
|
||||
for_size = min_opposite_size;
|
||||
}
|
||||
}
|
||||
|
||||
/* This is the main function that checks for a cached size and
|
||||
* possibly queries the widget class to compute the size if it's
|
||||
|
Loading…
Reference in New Issue
Block a user