mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Fix a GtkBuilder crash
Always set an error when returning FALSE from gtk_builder_value_from_string. This fixes the crash reported in bug 532858.
This commit is contained in:
parent
eeb3223802
commit
45894c9fad
@ -1329,7 +1329,14 @@ gtk_builder_value_from_string_type (GtkBuilder *builder,
|
||||
g_value_take_boxed (value, vector);
|
||||
}
|
||||
else
|
||||
ret = FALSE;
|
||||
{
|
||||
g_set_error (error,
|
||||
GTK_BUILDER_ERROR,
|
||||
GTK_BUILDER_ERROR_INVALID_VALUE,
|
||||
"Could not parse '%s' as a %s",
|
||||
string, G_VALUE_TYPE_NAME (value));
|
||||
ret = FALSE;
|
||||
}
|
||||
break;
|
||||
case G_TYPE_OBJECT:
|
||||
if (G_VALUE_HOLDS (value, GDK_TYPE_PIXBUF))
|
||||
|
Loading…
Reference in New Issue
Block a user