Add link to Ask Wireshark Website ( http://ask.wireshark.org )in Help Menu for GTK

May be add a icon before (use favicon of Ask Website ?)

Backport to older release ?

svn path=/trunk/; revision=44104
This commit is contained in:
Alexis La Goutte 2012-07-29 15:02:12 +00:00
parent a355040132
commit e2cd738ca5
3 changed files with 12 additions and 0 deletions

View File

@ -162,6 +162,9 @@ topic_online_url(topic_action_e action)
case(ONLINEPAGE_FAQ):
return "http://www.wireshark.org/faq.html";
break;
case(ONLINEPAGE_ASK):
return "http://ask.wireshark.org";
break;
case(ONLINEPAGE_SAMPLE_FILES):
return "http://wiki.wireshark.org/SampleCaptures";
break;

View File

@ -45,6 +45,7 @@ typedef enum {
ONLINEPAGE_SAMPLE_CAPTURES,
ONLINEPAGE_SECURITY,
ONLINEPAGE_CHIMNEY,
ONLINEPAGE_ASK,
/* local manual pages */
LOCALPAGE_MAN_WIRESHARK = 100,

View File

@ -842,6 +842,12 @@ help_menu_faq_cb(GtkAction *action _U_, gpointer user_data _U_)
topic_menu_cb(NULL/*widget _U_ */, NULL /*GdkEventButton *event _U_*/, GINT_TO_POINTER(ONLINEPAGE_FAQ));
}
static void
help_menu_ask_cb(GtkAction *action _U_, gpointer user_data _U_)
{
topic_menu_cb(NULL/*widget _U_ */, NULL /*GdkEventButton *event _U_*/, GINT_TO_POINTER(ONLINEPAGE_ASK));
}
static void
help_menu_wireshark_cb(GtkAction *action _U_, gpointer user_data _U_)
{
@ -1287,6 +1293,7 @@ static const char *ui_desc_menubar =
" <separator/>\n"
" <menuitem name='Website' action='/Help/Website'/>\n"
" <menuitem name='FAQs' action='/Help/FAQs'/>\n"
" <menuitem name='Ask' action='/Help/ASK'/>\n"
" <menuitem name='Downloads' action='/Help/Downloads'/>\n"
" <separator/>\n"
" <menuitem name='Wiki' action='/Help/Wiki'/>\n"
@ -1735,6 +1742,7 @@ static const GtkActionEntry main_menu_bar_entries[] = {
{ "/Help/Website", GTK_STOCK_HOME, "Website", NULL, NULL, G_CALLBACK(help_menu_Website_cb) },
{ "/Help/FAQs", NULL, "FAQ's", NULL, NULL, G_CALLBACK(help_menu_faq_cb) },
{ "/Help/ASK", NULL, "Ask (Q&A)", NULL, NULL, G_CALLBACK(help_menu_ask_cb) },
{ "/Help/Downloads", NULL, "Downloads", NULL, NULL, G_CALLBACK(help_menu_Downloads_cb) },
{ "/Help/Wiki", WIRESHARK_STOCK_WIKI, "Wiki", NULL, NULL, G_CALLBACK(help_menu_Wiki_cb) },
{ "/Help/SampleCaptures", NULL, "Sample Captures", NULL, NULL, G_CALLBACK(help_menu_SampleCaptures_cb) },