Blame SOURCES/0003-ovirt-disk-Fix-content-type-property-name.patch

68850c
From f49fb13abcc7d0c2fb8a2551913d9d5997997487 Mon Sep 17 00:00:00 2001
68850c
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
68850c
Date: Thu, 25 Jun 2020 13:39:50 -0300
68850c
Subject: [PATCH] ovirt-disk: Fix content type property name
68850c
68850c
Instead of using underscore, which is not accepted, make use of a dash,
68850c
avoiding error messages like the following:
68850c
68850c
GLib-CRITICAL **: g_param_spec_internal: assertion '!(flags & G_PARAM_STATIC_NAME) || is_canonical (name)' failed
68850c
68850c
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
68850c
---
68850c
 govirt/ovirt-disk.c | 4 ++--
68850c
 1 file changed, 2 insertions(+), 2 deletions(-)
68850c
68850c
diff --git a/govirt/ovirt-disk.c b/govirt/ovirt-disk.c
68850c
index 9242c4c..4772002 100644
68850c
--- a/govirt/ovirt-disk.c
68850c
+++ b/govirt/ovirt-disk.c
68850c
@@ -77,7 +77,7 @@ static gboolean ovirt_disk_init_from_xml(OvirtResource *resource,
68850c
     gboolean parsed_ok;
68850c
     OvirtResourceClass *parent_class;
68850c
     OvirtXmlElement disk_elements[] = {
68850c
-        { .prop_name = "content_type",
68850c
+        { .prop_name = "content-type",
68850c
           .xml_path = "content_type",
68850c
         },
68850c
         { NULL , }
68850c
@@ -103,7 +103,7 @@ static void ovirt_disk_class_init(OvirtDiskClass *klass)
68850c
     object_class->get_property = ovirt_disk_get_property;
68850c
     object_class->set_property = ovirt_disk_set_property;
68850c
 
68850c
-    param_spec = g_param_spec_enum("type",
68850c
+    param_spec = g_param_spec_enum("content-type",
68850c
                                    "Content Type",
68850c
                                    "The actual content residing on the disk",
68850c
                                    OVIRT_TYPE_DISK_CONTENT_TYPE,
68850c
-- 
68850c
2.26.2
68850c