[gitg] Alignment changes in the dash labels
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Alignment changes in the dash labels
- Date: Sun, 17 Mar 2013 09:42:29 +0000 (UTC)
commit 28494d7ea777dd892f1059965917a63efcd72370
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Mar 16 21:49:58 2013 +0100
Alignment changes in the dash labels
Align the repo name to the bottom and make the branch name smaller
libgitg-gtk/gitg-gtk-dash-view.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-dash-view.vala b/libgitg-gtk/gitg-gtk-dash-view.vala
index 26a2e40..b91a60a 100644
--- a/libgitg-gtk/gitg-gtk-dash-view.vala
+++ b/libgitg-gtk/gitg-gtk-dash-view.vala
@@ -177,8 +177,8 @@ namespace GitgGtk
var label_text = (workdir != null) ? workdir.get_basename() :
repo_file.get_basename();
data.repository_label.set_markup("<b>%s</b>".printf(label_text));
data.repository_label.ellipsize = Pango.EllipsizeMode.END;
- data.repository_label.valign = Align.START;
data.repository_label.halign = Align.START;
+ data.repository_label.valign = Align.END;
data.repository_label.hexpand = true;
data.grid.attach(data.repository_label, 1, 0, 1, 1);
@@ -208,7 +208,7 @@ namespace GitgGtk
if (reference != null &&
reference.get_target().equal(head.get_target()))
{
-
data.branch_label.set_text(branch_name);
+
data.branch_label.set_markup("<small>%s</small>".printf(branch_name));
return 1;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]