Author: abrander
Date: 2010-04-04 17:45:54 +0200 (Sun, 04 Apr 2010)
New Revision: 3331
Modified:
trunk/librawstudio/rs-profile-selector.c
Log:
Now shows description of ICC-profiles in profile selector.
Modified: trunk/librawstudio/rs-profile-selector.c
===================================================================
--- trunk/librawstudio/rs-profile-selector.c 2010-04-04 15:44:22 UTC (rev
3330)
+++ trunk/librawstudio/rs-profile-selector.c 2010-04-04 15:45:54 UTC (rev
3331)
@@ -197,7 +197,9 @@
gint type;
gpointer profile;
gchar *str;
+ gchar *escaped;
const gchar *profile_name;
+ gchar *filename, *path;
g_object_get(filter, "child-model", &model, NULL);
gtk_tree_model_filter_convert_iter_to_child_iter(GTK_TREE_MODEL_FILTER(filter),
&child_iter, iter);
@@ -221,7 +223,14 @@
g_free(str);
break;
case FACTORY_MODEL_TYPE_ICC:
- str = g_strdup_printf("%s
<small><small>(icc)</small></small>", "FIXME-name");
+ profile_name =
rs_icc_profile_get_description(profile);
+ g_object_get(profile, "filename", &path, NULL);
+ filename = g_path_get_basename(path);
+ g_free(path);
+ escaped = g_markup_escape_text(profile_name,
-1);
+ str = g_strdup_printf("%s
<small><small>(%s)</small></small>", profile_name, filename);
+ g_free(filename);
+ g_free(escaped);
g_value_set_string(value, str);
g_free(str);
break;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit