diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-07-29 15:02:12 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-07-29 15:02:12 +0000 |
commit | e2cd738ca5b9c14afef40fca9f2a58d6a57a02a0 (patch) | |
tree | 26ebe8d00818774cb9a1957c8e1e7ce24331416c | |
parent | a35504013290f7fe72ce644b6f2f42e3b51ac9e0 (diff) |
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
-rw-r--r-- | ui/gtk/help_dlg.c | 3 | ||||
-rw-r--r-- | ui/gtk/help_dlg.h | 1 | ||||
-rw-r--r-- | ui/gtk/main_menubar.c | 8 |
3 files changed, 12 insertions, 0 deletions
diff --git a/ui/gtk/help_dlg.c b/ui/gtk/help_dlg.c index 5340003415..bcb0376f86 100644 --- a/ui/gtk/help_dlg.c +++ b/ui/gtk/help_dlg.c @@ -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; diff --git a/ui/gtk/help_dlg.h b/ui/gtk/help_dlg.h index 03337bb9ee..ed8ddd0355 100644 --- a/ui/gtk/help_dlg.h +++ b/ui/gtk/help_dlg.h @@ -45,6 +45,7 @@ typedef enum { ONLINEPAGE_SAMPLE_CAPTURES, ONLINEPAGE_SECURITY, ONLINEPAGE_CHIMNEY, + ONLINEPAGE_ASK, /* local manual pages */ LOCALPAGE_MAN_WIRESHARK = 100, diff --git a/ui/gtk/main_menubar.c b/ui/gtk/main_menubar.c index 0d736c7f2d..287a76b239 100644 --- a/ui/gtk/main_menubar.c +++ b/ui/gtk/main_menubar.c @@ -843,6 +843,12 @@ help_menu_faq_cb(GtkAction *action _U_, gpointer user_data _U_) } 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_) { topic_menu_cb(NULL/*widget _U_ */, NULL /*GdkEventButton *event _U_*/, GINT_TO_POINTER(LOCALPAGE_MAN_WIRESHARK)); @@ -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) }, |