[gitg] Fix subheader visibility while hiding regions
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gitg] Fix subheader visibility while hiding regions
- Date: Sun, 17 Jan 2010 13:43:56 +0000 (UTC)
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]