[gitg] Use a GtkListBox for the diff stats



commit 6a46ca48682581e9c205793c2974d090f839e16a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Jul 8 20:24:13 2013 +0200

    Use a GtkListBox for the diff stats

 gitg/commit/gitg-commit-dialog.vala |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gitg/commit/gitg-commit-dialog.vala b/gitg/commit/gitg-commit-dialog.vala
index 2efe69c..60e5963 100644
--- a/gitg/commit/gitg-commit-dialog.vala
+++ b/gitg/commit/gitg-commit-dialog.vala
@@ -451,19 +451,21 @@ class Dialog : Gtk.Dialog
                        var nf = delta.get_new_file();
                        var path = nf.get_path();
 
-                       var row = new Gtk.Grid();
-                       row.column_spacing = 6;
+                       var row = new Gtk.ListBoxRow();
+                       var grid = new Gtk.Grid();
+                       row.add(grid);
+                       grid.column_spacing = 6;
 
                        var ds = new Gitg.DiffStat();
 
                        ds.added = (uint)add;
                        ds.removed = (uint)remove;
 
-                       row.attach(ds, 0, 0, 1, 1);
+                       grid.attach(ds, 0, 0, 1, 1);
 
                        var lbl = new Gtk.Label(path);
 
-                       row.attach(lbl, 1, 0, 1, 1);
+                       grid.attach(lbl, 1, 0, 1, 1);
                        row.show_all();
 
                        d_list_box_stats.add(row);


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