[recipes] Avoid confusion about step numbers



commit a6c047e7d3f8aed947c99e11bc9ab2f9e2372b48
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 12 11:28:36 2017 -0500

    Avoid confusion about step numbers
    
    Using circled numbers to indicate the image turns out to be a bit
    confusing, since it can be misinterpreted to represent the step
    number. Instead, just use a 👁 glyph to represent images.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778528

 src/gr-details-page.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index b39e6e3..2d8c1e2 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -527,7 +527,6 @@ process_instructions (const char *instructions)
         t = instructions;
 
         while (*t) {
-                char symb[30];
                 const char *sym = "?";
                 int idx;
                 g_autofree char *title = NULL;
@@ -540,9 +539,7 @@ process_instructions (const char *instructions)
                 }
                 else if (p) {
                         idx = atoi (p + strlen ("[image:"));
-                        memset (symb, 0, 30);
-                        g_unichar_to_utf8 (0x2460 + idx, symb);
-                        sym = symb;
+                        sym = "👁";
                 }
 
                 if (p == NULL) {


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