[balsa/gtk4: 14/311] balsa-mime-widget-text: Hide quote prefix




commit 9cdca00def94961147923ceff1e634c3b3ea26bd
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Oct 9 19:21:21 2021 -0400

    balsa-mime-widget-text: Hide quote prefix
    
    using GtkTextTag's "invisible" property instead of declaring the font to
    have size 0.01 points. Using the "size-points" property was recently
    breaking the citation bars.

 src/balsa-mime-widget-text.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 7c9e83aea..fd4434a9b 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -1439,9 +1439,9 @@ fill_text_buf_cited(BalsaMimeWidgetText *mwt,
                                NULL);
 
     if (rex != NULL) {
-        mwt->invisible = gtk_text_buffer_create_tag(buffer, "hide-cite",
-                                                    "size-points", (gdouble) 0.0,
-                                                    NULL);
+        invisible = gtk_text_buffer_create_tag(buffer, "hide-cite",
+                                               "invisible", TRUE,
+                                               NULL);
     } else {
         mwt->invisible = NULL;
     }
@@ -1500,8 +1500,7 @@ fill_text_buf_cited(BalsaMimeWidgetText *mwt,
                 text_body += cite_idx;
 
                 /* append a zero-width space if the remainder of the line is
-                 * empty, as otherwise the line is not visible (i.e.
-                 * completely 0.01 pts high)... */
+                 * empty, as otherwise the line is not visible */
                 if (text_body == line_end || *text_body == '\r')
                     gtk_text_buffer_insert_at_cursor(buffer, "\xE2\x80\x8B", 3);
             }


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