Fix for bug 4875:
authorJaap Keuter <jaap.keuter@xs4all.nl>
Sun, 20 Jun 2010 16:27:03 +0000 (16:27 -0000)
committerJaap Keuter <jaap.keuter@xs4all.nl>
Sun, 20 Jun 2010 16:27:03 +0000 (16:27 -0000)
Don't hint at a local User's Gude when there isn't one.

svn path=/trunk/; revision=33267

gtk/main_welcome.c

index 0ea601ed94e1f5ae06b8df31252f5dbffa5e336a..24078a7d56eb6bc33df1bc99081867232efb03a1 100644 (file)
@@ -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,