summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2015-08-10 12:38:54 +0200
committerMichael Catanzaro <mcatanzaro@gnome.org>2015-08-10 12:39:44 +0200
commitbeaede417388c3c1b149579796911bff1f055e6e (patch)
treef45b3bde85bd35ff258969d63905a83db83f128a /src
parent0ae7bbd3043bf9a3b5767578bfc2a04ab17dc511 (diff)
downloadyelp-beaede417388c3c1b149579796911bff1f055e6e.tar.gz
Hide the subtitle when it matches the title
It doesn't look very good to show the header bar subtitle when it is the same as the title, e.g. on Mallard index pages. https://bugzilla.gnome.org/show_bug.cgi?id=753444
Diffstat (limited to 'src')
-rw-r--r--src/yelp-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 45faaf4b..a45e47dd 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -1187,7 +1187,7 @@ view_root_title (YelpView *view,
else
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->header), _("Help"));
- if (root_title)
+ if (root_title && strcmp (root_title, page_title))
gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->header), root_title);
else
gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->header), NULL);