[gtk+] GtkLabel: Show erroneous text if parsing markup failed



commit 61ba7adfc8f1b3ec9ea8deb25d63ca5898f6559c
Author: Timm Bäder <mail baedert org>
Date:   Mon Jul 27 15:04:18 2015 +0200

    GtkLabel: Show erroneous text if parsing markup failed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752920

 gtk/gtklabel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 4c186b2..f3ab485 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -2592,8 +2592,8 @@ gtk_label_set_markup_internal (GtkLabel    *label,
 
   if (!parse_uri_markup (label, str, &str_for_display, &links, &error))
     {
-      g_warning ("Failed to set text from markup due to error parsing markup: %s",
-                 error->message);
+      g_warning ("Failed to set text '%s` from markup due to error parsing markup: %s",
+                 str, error->message);
       g_error_free (error);
       return;
     }
@@ -2645,8 +2645,8 @@ gtk_label_set_markup_internal (GtkLabel    *label,
                            NULL,
                            &error))
     {
-      g_warning ("Failed to set text from markup due to error parsing markup: %s",
-                 error->message);
+      g_warning ("Failed to set text '%s` from markup due to error parsing markup: %s",
+                 str_for_display, error->message);
       g_free (str_for_display);
       g_free (str_for_accel);
       g_error_free (error);



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