[gitg/wip/gaurav/clickable-links-subject-textview: 4/15] Don't show tooltip if there's no link



commit ff4b93384fa0cfd5d01b5fe575c946e989048aa4
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Sat Jan 19 11:05:10 2019 +0100

    Don't show tooltip if there's no link

 libgitg/gitg-diff-view.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgitg/gitg-diff-view.vala b/libgitg/gitg-diff-view.vala
index d631f024..d68db5f6 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -284,10 +284,11 @@ public class Gitg.DiffView : Gtk.Grid
                                {
                                        string url = tag.get_data<string>("url");
                                        tooltip.set_text (url);
+                                       return true;
                                }
                        }
                }
-               return true;
+               return false;
        }
 
        public void apply_link_tags(Gtk.TextBuffer buffer, Regex regex, string? replacement, Gdk.RGBA 
custom_color_link, bool is_custom_color)


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