From d31046f46e531548a00a0ebe836e3cbf32272bab Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Sun, 20 Jun 2010 16:27:03 +0000 Subject: Fix for bug 4875: Don't hint at a local User's Gude when there isn't one. svn path=/trunk/; revision=33267 --- gtk/main_welcome.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/main_welcome.c b/gtk/main_welcome.c index 0ea601ed94..24078a7d56 100644 --- a/gtk/main_welcome.c +++ b/gtk/main_welcome.c @@ -906,9 +906,16 @@ welcome_new(void) item_hb = welcome_button(GTK_STOCK_HELP, "User's Guide", - "The User's Guide (local version, if installed)", + "The User's Guide " +#ifdef HHC_DIR + "(local version, if installed)", "Locally installed (if installed) otherwise online version", G_CALLBACK(topic_menu_cb), GINT_TO_POINTER(HELP_CONTENT)); +#else + "(online version)", + topic_online_url(ONLINEPAGE_USERGUIDE), + G_CALLBACK(topic_menu_cb), GINT_TO_POINTER(ONLINEPAGE_USERGUIDE)); +#endif gtk_box_pack_start(GTK_BOX(topic_to_fill), item_hb, FALSE, FALSE, 5); item_hb = welcome_button(WIRESHARK_STOCK_WIKI, -- cgit v1.2.3