[gitg] Fix subheader visibility while hiding regions



commit f29edc3ad5b26da13f21d681eb78ed817ea199b5
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Jan 17 14:43:43 2010 +0100

    Fix subheader visibility while hiding regions

 gitg/gitg-diff-view.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-diff-view.c b/gitg/gitg-diff-view.c
index 7f853ca..1c769bb 100644
--- a/gitg/gitg-diff-view.c
+++ b/gitg/gitg-diff-view.c
@@ -839,9 +839,19 @@ gitg_diff_iter_set_visible(GitgDiffIter *iter, gboolean visible)
 	if (visible)
 	{
 		gtk_text_buffer_remove_tag(view->priv->current_buffer, view->priv->invisible_tag, &start, &end);
+
+		if (region->type == GITG_DIFF_ITER_TYPE_HEADER)
+		{
+			hide_header_details (view, region);
+		}
 	}
 	else
 	{
+		if (region->type == GITG_DIFF_ITER_TYPE_HEADER)
+		{
+			gtk_text_buffer_remove_tag (view->priv->current_buffer, view->priv->subheader_tag, &start, &end);
+		}
+
 		gtk_text_buffer_apply_tag(view->priv->current_buffer, view->priv->invisible_tag, &start, &end);
 	}
 }



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