[gitg] Do not show diff stat list in dialog when amending
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Do not show diff stat list in dialog when amending
- Date: Mon, 8 Jul 2013 16:44:48 +0000 (UTC)
commit bfd55d84c6083972860cbf617ef96f9c7172c4e6
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Jul 8 18:39:59 2013 +0200
Do not show diff stat list in dialog when amending
gitg/commit/gitg-commit-dialog.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gitg/commit/gitg-commit-dialog.vala b/gitg/commit/gitg-commit-dialog.vala
index 82da9b6..2efe69c 100644
--- a/gitg/commit/gitg-commit-dialog.vala
+++ b/gitg/commit/gitg-commit-dialog.vala
@@ -477,6 +477,12 @@ class Dialog : Gtk.Dialog
private void update_min_stat_size(int num)
{
+ if (num == 0)
+ {
+ d_scrolled_window_stats.hide();
+ return;
+ }
+
int n = int.min(num, max_visible_stat_items);
var lastrow = d_list_box_stats.get_row_at_index(n - 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]