[gitg] dash: expand the main label and add an arrow like in baobab
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] dash: expand the main label and add an arrow like in baobab
- Date: Sun, 21 Oct 2012 10:51:22 +0000 (UTC)
commit c22fa8da7ff5733ff9886c438a2eaed22375086f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Oct 21 12:50:46 2012 +0200
dash: expand the main label and add an arrow like in baobab
libgitg-gtk/gitg-gtk-dash-view.vala | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-dash-view.vala b/libgitg-gtk/gitg-gtk-dash-view.vala
index be9ebb4..14c3e15 100644
--- a/libgitg-gtk/gitg-gtk-dash-view.vala
+++ b/libgitg-gtk/gitg-gtk-dash-view.vala
@@ -107,19 +107,20 @@ namespace GitgGtk
data.repository = repo;
data.grid = new Grid();
data.grid.margin = 12;
- data.grid.set_column_spacing(10);
+ data.grid.column_spacing = 10;
File? workdir = repo.get_workdir();
var label = new Label((workdir != null) ? workdir.get_path() : repo_file.get_path());
- label.set_ellipsize(Pango.EllipsizeMode.END);
- label.set_valign(Align.START);
- label.set_halign(Align.START);
+ label.ellipsize = Pango.EllipsizeMode.END;
+ label.valign = Align.START;
+ label.halign = Align.START;
+ label.hexpand = true;
data.grid.attach(label, 0, 0, 1, 1);
data.branch_label = new Label("");
- data.branch_label.set_ellipsize(Pango.EllipsizeMode.END);
- data.branch_label.set_valign(Align.START);
- data.branch_label.set_halign(Align.START);
+ data.branch_label.ellipsize = Pango.EllipsizeMode.END;
+ data.branch_label.valign = Align.START;
+ data.branch_label.halign = Align.START;
data.grid.attach(data.branch_label, 0, 1, 1, 1);
Gitg.Ref? head = null;
@@ -153,6 +154,8 @@ namespace GitgGtk
catch {}
}
+ data.grid.attach(new Arrow(ArrowType.RIGHT, ShadowType.NONE), 1, 0, 1, 2);
+
data.grid.set_data<RepositoryData>("data", data);
data.grid.show_all();
d_listbox.add(data.grid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]