[gitg] Hide description label if there is no description



commit f891fc4e4371b7d1f1fcb6ea845b083196b47288
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Jun 5 11:37:30 2016 +0200

    Hide description label if there is no description

 libgitg/gitg-repository-list-box.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/gitg-repository-list-box.vala b/libgitg/gitg-repository-list-box.vala
index 57e10d7..1755787 100644
--- a/libgitg/gitg-repository-list-box.vala
+++ b/libgitg/gitg-repository-list-box.vala
@@ -220,7 +220,10 @@ namespace Gitg
                                }
 
                                repository_name = d_repository != null ? d_repository.name : "";
+
                                d_description_label.label = head_description;
+                               d_description_label.visible = head_description != "";
+
                                branch_name = head_name;
                        }
 


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