From beaede417388c3c1b149579796911bff1f055e6e Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Mon, 10 Aug 2015 12:38:54 +0200 Subject: 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 --- src/yelp-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1