summaryrefslogtreecommitdiff
path: root/gladeui/glade-project.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2018-07-26 20:16:28 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2018-07-26 20:16:28 -0300
commitbc0e26c1d05b0b62266e0d2a320ed40f1a6460e7 (patch)
tree5217558a358fd6915b420f11ac20c4c3f9f5b344 /gladeui/glade-project.c
parentad26702a7c6a9472c83b94f452965913a6c742b7 (diff)
downloadglade-bc0e26c1d05b0b62266e0d2a320ed40f1a6460e7.tar.gz
Add initial support for GFile type properties
Diffstat (limited to 'gladeui/glade-project.c')
-rw-r--r--gladeui/glade-project.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index f19611ef..ac677efa 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -1528,11 +1528,12 @@ update_project_for_resource_path (GladeProject *project)
pspec = glade_property_class_get_pspec (klass);
/* XXX We should have a "resource" flag on properties that need
- * to be loaded from the resource path, but that would require
+ * to be loaded from the resource path, but that would require
* that they can serialize both ways (custom properties are only
- * required to generate unique strings for value comparisons).
- */
- if (pspec->value_type == GDK_TYPE_PIXBUF)
+ * required to generate unique strings for value comparisons).
+ */
+ if (pspec->value_type == GDK_TYPE_PIXBUF ||
+ pspec->value_type == G_TYPE_FILE)
{
GValue *value;
gchar *string;