[yelp] Hide the subtitle when it matches the title
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Hide the subtitle when it matches the title
- Date: Mon, 10 Aug 2015 11:12:09 +0000 (UTC)
commit beaede417388c3c1b149579796911bff1f055e6e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Aug 10 12:38:54 2015 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 45faaf4..a45e47d 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]