[gimp/metadata-browser: 23/45] Preserve the raw values when setting scalar values.
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser: 23/45] Preserve the raw values when setting scalar values.
- Date: Tue, 19 Feb 2013 23:41:40 +0000 (UTC)
commit fcd777f73051d2ebc2116f3525fc6a925843a7d2
Author: Roman Joost <roman bromeco de>
Date: Mon Sep 26 21:01:26 2011 +1000
Preserve the raw values when setting scalar values.
plug-ins/metadata/xmp-model.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/metadata/xmp-model.c b/plug-ins/metadata/xmp-model.c
index efebd67..49a0e72 100644
--- a/plug-ins/metadata/xmp-model.c
+++ b/plug-ins/metadata/xmp-model.c
@@ -954,6 +954,7 @@ xmp_model_set_scalar_property (XMPModel *xmp_model,
{
XMPSchema *schema;
XMPProperty *property = NULL;
+ const gchar **value = NULL;
GtkTreeIter iter;
GtkTreeIter child_iter;
int i;
@@ -983,6 +984,7 @@ xmp_model_set_scalar_property (XMPModel *xmp_model,
if (property != NULL)
{
+ value = xmp_model_get_raw_property_value (xmp_model, schema_name, property_name);
find_and_remove_property (xmp_model, property, &iter);
}
else
@@ -1002,7 +1004,7 @@ xmp_model_set_scalar_property (XMPModel *xmp_model,
gtk_tree_store_set (GTK_TREE_STORE (xmp_model), &child_iter,
COL_XMP_NAME, g_strdup (property_name),
COL_XMP_VALUE, g_strdup (property_value),
- COL_XMP_VALUE_RAW, NULL,
+ COL_XMP_VALUE_RAW, value,
COL_XMP_TYPE_XREF, property,
COL_XMP_WIDGET_XREF, NULL,
COL_XMP_EDITABLE, property->editable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]