[gtk/wip/matthiasc/builder-fixes: 158/159] builder-tool: Don't try to find default boxed values
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/builder-fixes: 158/159] builder-tool: Don't try to find default boxed values
- Date: Fri, 13 Dec 2019 18:54:21 +0000 (UTC)
commit 9788f9c493c297e3849ad4744f3e016405e0acc8
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 13 13:11:59 2019 -0500
builder-tool: Don't try to find default boxed values
This doesn't work and yields an ugly, unnecessary
error message.
gtk/tools/gtk-builder-tool-simplify.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/tools/gtk-builder-tool-simplify.c b/gtk/tools/gtk-builder-tool-simplify.c
index 3cd917f2cd..06689ce9c5 100644
--- a/gtk/tools/gtk-builder-tool-simplify.c
+++ b/gtk/tools/gtk-builder-tool-simplify.c
@@ -449,6 +449,9 @@ value_is_default (Element *element,
if (g_type_is_a (G_PARAM_SPEC_VALUE_TYPE (pspec), G_TYPE_OBJECT))
return FALSE;
+ if (g_type_is_a (G_PARAM_SPEC_VALUE_TYPE (pspec), G_TYPE_BOXED))
+ return FALSE;
+
if (!gtk_builder_value_from_string (data->builder, pspec, value_string, &value, &error))
{
g_printerr (_("%s:%d: Couldn’t parse value for property '%s': %s\n"), data->input_filename,
element->line_number, pspec->name, error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]