[gitg/wip/gaurav/clickable-links-subject-textview: 15/15] refactor bool variable



commit ace52384cbf83246f9405086d3a30a9618c8954a
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Mon Jan 21 17:28:46 2019 +0100

    refactor bool variable

 libgitg/gitg-diff-view-commit-details.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-commit-details.vala b/libgitg/gitg-diff-view-commit-details.vala
index d87a2358..7950af1a 100644
--- a/libgitg/gitg-diff-view-commit-details.vala
+++ b/libgitg/gitg-diff-view-commit-details.vala
@@ -522,15 +522,15 @@ class Gitg.DiffViewCommitDetails : Gtk.Grid
                                        {
                                                string custom_link_regexp = file.get_string (group, "regexp");
                                                string custom_link_replacement = file.get_string (group, 
"replacement");
-                                               bool custom_color = file.has_key (group, "color");
+                                               bool is_custom_color = file.has_key (group, "color");
                                                Gdk.RGBA color = d_color_link;
-                                               if (custom_color)
+                                               if (is_custom_color)
                                                {
                                                        string custom_link_color = file.get_string (group, 
"color");
                                                        color = Gdk.RGBA();
                                                        color.parse(custom_link_color);
                                                }
-                                               apply_link_tags(buffer, new Regex (custom_link_regexp), 
custom_link_replacement, color, custom_color, true);
+                                               apply_link_tags(buffer, new Regex (custom_link_regexp), 
custom_link_replacement, color, is_custom_color, true);
                                        }
                                }
                        }


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