[balsa/61-citation-bars] balsa-mime-widget-text: Hide quote prefix




commit 50359c9c476261d5a4cbc9971bc120fc69a39c5e
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 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index fff9aa45e..930cf4a1d 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -1441,7 +1441,7 @@ fill_text_buf_cited(BalsaMimeWidgetText *mwt,
 
     if (rex != NULL) {
         invisible = gtk_text_buffer_create_tag(buffer, "hide-cite",
-                                               "size-points", (gdouble) 0.01,
+                                               "invisible", TRUE,
                                                NULL);
     } else {
         invisible = NULL;
@@ -1501,8 +1501,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]