[gtk+] Avoid a harmless warning



commit 324ff48edcc6e1679741165fcef31ef9a76b80db
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 29 17:17:26 2009 -0500

    Avoid a harmless warning
    
    In labels with colored, underlined text, the link handling code
    would spit out a warning, even if no links are around.
    See 603302.

 gtk/gtklabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index acf7f53..b470a45 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -5604,7 +5604,7 @@ gtk_label_rescan_links (GtkLabel *label)
   PangoAttrIterator *iter;
   GList *links;
 
-  if (!label->select_info)
+  if (!label->select_info || !label->select_info->links)
     return;
 
   attlist = pango_layout_get_attributes (layout);



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