[gnome-color-manager] Put a short intent description in the combobox choices
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Put a short intent description in the combobox choices
- Date: Thu, 27 May 2010 11:41:51 +0000 (UTC)
commit d46a03f84fd0c1b0c2f5294f655add5350d100ab
Author: Richard Hughes <richard hughsie com>
Date: Thu May 27 12:41:34 2010 +0100
Put a short intent description in the combobox choices
src/gcm-prefs.c | 8 ++++++--
src/gcm-utils.c | 29 +++++++++++++++++++++++++++--
src/gcm-utils.h | 1 +
3 files changed, 34 insertions(+), 4 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 77c42d0..daece76 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -2789,11 +2789,15 @@ gcm_prefs_setup_rendering_combobox (GtkWidget *widget, const gchar *intent)
{
guint i;
gboolean ret = FALSE;
+ gchar *label;
const gchar *text;
for (i=1; i<GCM_INTENT_LAST; i++) {
- text = gcm_intent_to_localized_text (i);
- gtk_combo_box_append_text (GTK_COMBO_BOX (widget), text);
+ label = g_strdup_printf ("%s - %s",
+ gcm_intent_to_localized_text (i),
+ gcm_intent_to_localized_description (i));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (widget), label);
+ g_free (label);
text = gcm_intent_to_string (i);
if (g_strcmp0 (text, intent) == 0) {
ret = TRUE;
diff --git a/src/gcm-utils.c b/src/gcm-utils.c
index 518f667..7145209 100644
--- a/src/gcm-utils.c
+++ b/src/gcm-utils.c
@@ -608,7 +608,7 @@ gcm_intent_to_localized_text (GcmIntent intent)
}
if (intent == GCM_INTENT_RELATIVE_COLORMETRIC) {
/* TRANSLATORS: rendering intent: you probably want to google this */
- return _("Relative colormetric");
+ return _("Relative");
}
if (intent == GCM_INTENT_SATURATION) {
/* TRANSLATORS: rendering intent: you probably want to google this */
@@ -616,7 +616,32 @@ gcm_intent_to_localized_text (GcmIntent intent)
}
if (intent == GCM_INTENT_ABSOLUTE_COLORMETRIC) {
/* TRANSLATORS: rendering intent: you probably want to google this */
- return _("Absolute colormetric");
+ return _("Absolute");
+ }
+ return "unknown";
+}
+
+/**
+ * gcm_intent_to_localized_description:
+ **/
+const gchar *
+gcm_intent_to_localized_description (GcmIntent intent)
+{
+ if (intent == GCM_INTENT_PERCEPTUAL) {
+ /* TRANSLATORS: rendering intent: you probably want to google this */
+ return _("High quality photography");
+ }
+ if (intent == GCM_INTENT_RELATIVE_COLORMETRIC) {
+ /* TRANSLATORS: rendering intent: you probably want to google this */
+ return _("Precise color matching");
+ }
+ if (intent == GCM_INTENT_SATURATION) {
+ /* TRANSLATORS: rendering intent: you probably want to google this */
+ return _("Graphs and presentations");
+ }
+ if (intent == GCM_INTENT_ABSOLUTE_COLORMETRIC) {
+ /* TRANSLATORS: rendering intent: you probably want to google this */
+ return _("Proofing devices");
}
return "unknown";
}
diff --git a/src/gcm-utils.h b/src/gcm-utils.h
index f24904d..d5e1ac6 100644
--- a/src/gcm-utils.h
+++ b/src/gcm-utils.h
@@ -83,6 +83,7 @@ void gcm_utils_ensure_printable (gchar *text);
gboolean gcm_utils_is_icc_profile (GFile *file);
gchar *gcm_utils_linkify (const gchar *text);
const gchar *gcm_intent_to_localized_text (GcmIntent intent);
+const gchar *gcm_intent_to_localized_description (GcmIntent intent);
#endif /* __GCM_UTILS_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]