[balsa/gtk3] Work around GtkInfoBar breakage (bgo #707093)



commit 5d37f56cdb6c3199a0ec947cb6f11179e9a8fc25
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Aug 30 18:48:48 2013 -0400

    Work around GtkInfoBar breakage (bgo #707093)
    
        * libbalsa/html.c (lbh_info_bar): break message string into
        three separate lines, to work around GtkInfoBar breakage (bgo
        #707093).

 ChangeLog       |    6 ++++++
 libbalsa/html.c |   10 ++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d355735..d47842b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-08-30  Peter Bloomfield
+
+       * libbalsa/html.c (lbh_info_bar): break message string into
+       three separate lines, to work around GtkInfoBar breakage (bgo
+       #707093).
+
 2013-08-16  Peter Bloomfield
 
        Deprecation cleanup
diff --git a/libbalsa/html.c b/libbalsa/html.c
index ad24f5e..a7f689b 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -332,6 +332,15 @@ lbh_info_bar(LibBalsaWebKitInfo * info)
     GtkInfoBar *info_bar;
     GtkWidget *label;
     GtkWidget *content_area;
+#if GTK_CHECK_VERSION(3, 9, 0)
+    static const gchar text[] =
+                 N_("This message part contains images "
+                    "from a remote server.\n"
+                    "To protect your privacy, "
+                    "Balsa has not downloaded them.\n"
+                    "You may choose to download them "
+                    "if you trust the server.");
+#else                           /* GTK_CHECK_VERSION(3, 9, 0) */
     static const gchar text[] =
                  N_("This message part contains images "
                     "from a remote server. "
@@ -339,6 +348,7 @@ lbh_info_bar(LibBalsaWebKitInfo * info)
                     "Balsa has not downloaded them. "
                     "You may choose to download them "
                     "if you trust the server.");
+#endif                          /* GTK_CHECK_VERSION(3, 9, 0) */
 
     info_bar_widget =
         gtk_info_bar_new_with_buttons(_("_Download images"),


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