static gboolean about_plugins_callback(GtkWidget *widget, GdkEventButton *event, gint id _U_) { GtkTreeSelection *tree_selection; GtkTreeModel *model; GtkTreeIter iter; gchar *type; gchar *file; tree_selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(widget)); if (gtk_tree_selection_count_selected_rows (tree_selection) == 0) return FALSE; if (event->type != GDK_2BUTTON_PRESS) /* not a double click */ return FALSE; if (gtk_tree_selection_get_selected (tree_selection, &model, &iter)) { gtk_tree_model_get (model, &iter, 2, &type, -1); if (strcmp (type, "lua script") == 0) { gtk_tree_model_get (model, &iter, 3, &file, -1); browser_open_data_file (file); g_free (file); } g_free (type); } return TRUE; }
static void topic_action(topic_action_e action) { const char *online_url; /* pages online at www.wireshark.org */ online_url = topic_online_url(action); if(online_url != NULL) { browser_open_url (online_url); return; } switch(action) { /* local manual pages */ case(LOCALPAGE_MAN_WIRESHARK): browser_open_data_file("wireshark.html"); break; case(LOCALPAGE_MAN_WIRESHARK_FILTER): browser_open_data_file("wireshark-filter.html"); break; case(LOCALPAGE_MAN_TSHARK): browser_open_data_file("tshark.html"); break; case(LOCALPAGE_MAN_RAWSHARK): browser_open_data_file("rawshark.html"); break; case(LOCALPAGE_MAN_DUMPCAP): browser_open_data_file("dumpcap.html"); break; case(LOCALPAGE_MAN_MERGECAP): browser_open_data_file("mergecap.html"); break; case(LOCALPAGE_MAN_EDITCAP): browser_open_data_file("editcap.html"); break; case(LOCALPAGE_MAN_TEXT2PCAP): browser_open_data_file("text2pcap.html"); break; /* local help pages (User's Guide) */ case(HELP_CONTENT): help_topic_html( "index.html"); break; case(HELP_CAPTURE_OPTIONS_DIALOG): help_topic_html("ChCapCaptureOptions.html"); break; case(HELP_CAPTURE_FILTERS_DIALOG): help_topic_html("ChWorkDefineFilterSection.html"); break; case(HELP_DISPLAY_FILTERS_DIALOG): help_topic_html("ChWorkDefineFilterSection.html"); break; case(HELP_COLORING_RULES_DIALOG): help_topic_html("ChCustColorizationSection.html"); break; case(HELP_CONFIG_PROFILES_DIALOG): help_topic_html("ChCustConfigProfilesSection.html"); break; case (HELP_MANUAL_ADDR_RESOLVE_DIALOG): help_topic_html("ChManualAddressResolveSection.html"); break; case(HELP_PRINT_DIALOG): help_topic_html("ChIOPrintSection.html"); break; case(HELP_FIND_DIALOG): help_topic_html("ChWorkFindPacketSection.html"); break; case(HELP_FIREWALL_DIALOG): help_topic_html("ChUseToolsMenuSection.html"); break; case(HELP_GOTO_DIALOG): help_topic_html("ChWorkGoToPacketSection.html"); break; case(HELP_CAPTURE_INTERFACES_DIALOG): help_topic_html("ChCapInterfaceSection.html"); break; case(HELP_CAPTURE_INFO_DIALOG): help_topic_html("ChCapRunningSection.html"); break; case(HELP_ENABLED_PROTOCOLS_DIALOG): help_topic_html("ChCustProtocolDissectionSection.html"); break; case(HELP_DECODE_AS_DIALOG): help_topic_html("ChCustProtocolDissectionSection.html"); break; case(HELP_DECODE_AS_SHOW_DIALOG): help_topic_html("ChCustProtocolDissectionSection.html"); break; case(HELP_FOLLOW_STREAM_DIALOG): help_topic_html("ChAdvFollowTCPSection.html"); break; case(HELP_EXPERT_INFO_DIALOG): help_topic_html("ChAdvExpert.html"); break; case(HELP_STATS_SUMMARY_DIALOG): help_topic_html("ChStatSummary.html"); break; case(HELP_STATS_PROTO_HIERARCHY_DIALOG): help_topic_html("ChStatHierarchy.html"); break; case(HELP_STATS_ENDPOINTS_DIALOG): help_topic_html("ChStatEndpoints.html"); break; case(HELP_STATS_CONVERSATIONS_DIALOG): help_topic_html("ChStatConversations.html"); break; case(HELP_STATS_IO_GRAPH_DIALOG): help_topic_html("ChStatIOGraphs.html"); break; case(HELP_STATS_COMPARE_FILES_DIALOG): help_topic_html("ChStatCompareCaptureFiles.html"); break; case(HELP_STATS_LTE_MAC_TRAFFIC_DIALOG): help_topic_html("ChTelLTEMACTraffic.html"); break; case(HELP_STATS_LTE_RLC_TRAFFIC_DIALOG): help_topic_html("ChTelLTERLCTraffic.html"); break; case(HELP_STATS_WLAN_TRAFFIC_DIALOG): help_topic_html("ChStatWLANTraffic.html"); break; case(HELP_FILESET_DIALOG): help_topic_html("ChIOFileSetSection.html"); break; case(HELP_CAPTURE_INTERFACE_OPTIONS_DIALOG): help_topic_html("ChCustInterfaceOptionsSection.html"); break; case(HELP_CAPTURE_INTERFACES_DETAILS_DIALOG): help_topic_html("ChCapInterfaceDetailsSection.html"); break; case(HELP_PREFERENCES_DIALOG): help_topic_html("ChCustPreferencesSection.html"); break; case(HELP_EXPORT_FILE_DIALOG): case(HELP_EXPORT_FILE_WIN32_DIALOG): help_topic_html("ChIOExportSection.html"); break; case(HELP_EXPORT_BYTES_DIALOG): case(HELP_EXPORT_BYTES_WIN32_DIALOG): help_topic_html("ChIOExportSection.html#ChIOExportSelectedDialog"); break; case(HELP_EXPORT_OBJECT_LIST): help_topic_html("ChIOExportSection.html#ChIOExportObjectsDialog"); break; case(HELP_OPEN_DIALOG): case(HELP_OPEN_WIN32_DIALOG): help_topic_html("ChIOOpenSection.html"); break; case(HELP_MERGE_DIALOG): case(HELP_MERGE_WIN32_DIALOG): help_topic_html("ChIOMergeSection.html"); break; case(HELP_IMPORT_DIALOG): help_topic_html("ChIOImportSection.html"); break; case(HELP_SAVE_DIALOG): case(HELP_SAVE_WIN32_DIALOG): help_topic_html("ChIOSaveSection.html"); break; default: g_assert_not_reached(); } }