st: Be more forgiving when calling get_theme_node() on unstaged widgets
While it is obviously still an error to call get_theme_node() on a widget that hasn't been added to the stage hierarchy yet, asserting on it hasn't proven too successful in avoiding those errors - it's likely the most frequent reason for crash reports. Just accept that there'll always be code paths where we can hit this case and make it non-fatal. https://bugzilla.gnome.org/show_bug.cgi?id=610279
This commit is contained in:
parent
1198ffd297
commit
ace549c1bf
@ -608,8 +608,9 @@ st_widget_get_theme_node (StWidget *widget)
|
||||
|
||||
if (stage == NULL)
|
||||
{
|
||||
g_error ("st_widget_get_theme_node called on the widget %s which is not in the stage.",
|
||||
g_critical ("st_widget_get_theme_node called on the widget %s which is not in the stage.",
|
||||
st_describe_actor (CLUTTER_ACTOR (widget)));
|
||||
return g_object_new (ST_TYPE_THEME_NODE, NULL);
|
||||
}
|
||||
|
||||
if (parent_node == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user