[gtranslator] Italic for fuzzy and bold for untranslated



commit edf47c84d98dbd38ed1125bbb8f224d2421cbbe2
Author: Daniel GarcĂ­a Moreno <danigm wadobo com>
Date:   Thu Oct 11 15:30:49 2018 +0200

    Italic for fuzzy and bold for untranslated
    
    See #25

 src/gtr-message-table.c | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/src/gtr-message-table.c b/src/gtr-message-table.c
index b94086b0..8140b508 100644
--- a/src/gtr-message-table.c
+++ b/src/gtr-message-table.c
@@ -97,11 +97,23 @@ colorize_cell (GtkTreeViewColumn *tree_column,
                       -1);
 
   if (gtr_msg_is_fuzzy (msg))
-    g_object_set (cell, "foreground-rgba", colors->fuzzy, NULL);
+    {
+      g_object_set (cell, "foreground-rgba", colors->fuzzy, NULL);
+      g_object_set (cell, "style", PANGO_STYLE_ITALIC, NULL);
+      g_object_set (cell, "weight", PANGO_WEIGHT_NORMAL, NULL);
+    }
   else if (gtr_msg_is_translated (msg))
-    g_object_set (cell, "foreground-rgba", colors->translated, NULL);
+    {
+      g_object_set (cell, "foreground-rgba", colors->translated, NULL);
+      g_object_set (cell, "style", PANGO_STYLE_NORMAL, NULL);
+      g_object_set (cell, "weight", PANGO_WEIGHT_NORMAL, NULL);
+    }
   else
-    g_object_set (cell, "foreground-rgba", colors->untranslated, NULL);
+    {
+      g_object_set (cell, "foreground-rgba", colors->untranslated, NULL);
+      g_object_set (cell, "style", PANGO_STYLE_NORMAL, NULL);
+      g_object_set (cell, "weight", PANGO_WEIGHT_BOLD, NULL);
+    }
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]