[gimp/metadata-browser] Don't use a temporary name indicating the data type.
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] Don't use a temporary name indicating the data type.
- Date: Wed, 5 Oct 2011 11:11:27 +0000 (UTC)
commit 4ed86007f8ab54beb55a3a78b9f87770268c5508
Author: Roman Joost <roman bromeco de>
Date: Wed Oct 5 21:09:47 2011 +1000
Don't use a temporary name indicating the data type.
This will break the detailed signal subscription and lead to not
updating widgets during import.
plug-ins/metadata/xmp-model.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/metadata/xmp-model.c b/plug-ins/metadata/xmp-model.c
index 1b81602..2af90d0 100644
--- a/plug-ins/metadata/xmp-model.c
+++ b/plug-ins/metadata/xmp-model.c
@@ -1048,7 +1048,6 @@ xmp_model_set_property (XMPModel *xmp_model,
GtkTreeIter child_iter;
int i;
gchar *tmp_value;
- gchar *tmp_name;
g_return_val_if_fail (xmp_model != NULL, FALSE);
g_return_val_if_fail (schema_name != NULL, FALSE);
@@ -1100,11 +1099,10 @@ xmp_model_set_property (XMPModel *xmp_model,
g_slist_prepend (xmp_model->custom_properties, property);
}
- tmp_name = g_strconcat (property_name, " []", NULL);
tmp_value = g_strjoinv ("; ", (gchar **) value);
gtk_tree_store_append (GTK_TREE_STORE (xmp_model), &child_iter, &iter);
gtk_tree_store_set (GTK_TREE_STORE (xmp_model), &child_iter,
- COL_XMP_NAME, tmp_name,
+ COL_XMP_NAME, property_name,
COL_XMP_VALUE, tmp_value,
COL_XMP_VALUE_RAW, value,
COL_XMP_TYPE_XREF, property,
@@ -1116,7 +1114,6 @@ xmp_model_set_property (XMPModel *xmp_model,
COL_XMP_WEIGHT_SET, FALSE,
-1);
g_free (tmp_value);
- g_free (tmp_name);
result = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]