aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/menu.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-12rename menu -> main_menuUlf Lamping1-2711/+0
remove old (and unused and confusing) ../menu.h svn path=/trunk/; revision=24947
2008-04-12various code cleanup, e.g. replace specific callback functions by ↵Ulf Lamping1-281/+106
"compounds" that uses an action value svn path=/trunk/; revision=24946
2008-04-12rename toolbar to main_toolbarUlf Lamping1-1/+1
svn path=/trunk/; revision=24940
2008-04-12move statusbar related code from main.c into it's own main_statusbar.cUlf Lamping1-3/+0
svn path=/trunk/; revision=24937
2008-04-12compat_macros.h is gone now!!!Ulf Lamping1-3/+3
all GTK1 compatibility code was removed, so this file can simply be dropped svn path=/trunk/; revision=24923
2008-04-12move stock icon code from toolbar.c into specific stock_icons file(s)Ulf Lamping1-0/+1
svn path=/trunk/; revision=24921
2008-04-11add missing braces to unbreak the buildRonnie Sahlberg1-583/+583
svn path=/trunk/; revision=24916
2008-04-11replace ITEM_FACTORY_ENTRY and ITEM_FACTORY_STOCK_ENTRY with their required ↵Ulf Lamping1-582/+583
data values to build the menus svn path=/trunk/; revision=24909
2008-04-11OBECT_..._DATA --> g_object_..._dataBill Meier1-14/+14
svn path=/trunk/; revision=24894
2008-04-11Replace SIGNAL_EMIT_BY_NAME(), SIGNAL_EMIT_OBJECT() andStephen Fisher1-1/+1
SIGNAL_EMIT_STOP_BY_NAME() macros with their actual function names. svn path=/trunk/; revision=24890
2008-04-11Replace all instances of the SIGNAL_CONNECT_OBJECT() macro with the actualStephen Fisher1-4/+4
function name. svn path=/trunk/; revision=24888
2008-04-09Remove:Anders Broman1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24868
2008-04-07remove GTK1 codeUlf Lamping1-19/+1
svn path=/trunk/; revision=24823
2008-04-04Remove GTK1 from Unix build process.Stephen Fisher1-1/+0
svn path=/trunk/; revision=24775
2008-03-13Fix a minor memory leak.Stephen Fisher1-0/+2
svn path=/trunk/; revision=24616
2008-03-11From Francesco Fondelli (bug 2349):Stig Bjørlykke1-0/+2
Attached is a patch to export packets data as "C Arrays". I often have the need to [re]send data captured with wireshark using a raw/pf_packet socket. Output format is one char[] per packet, it looks like almost the same as the one produced by "Follow TCP stream". svn path=/trunk/; revision=24604
2008-03-01Include strutil.h to find g_strlcpy and g_strlcat in gtk-1.2 builds.Michael Tüxen1-0/+1
svn path=/trunk/; revision=24512
2008-02-29Next attempt to cleanup some string functions, including:Stig Bjørlykke1-4/+4
strncpy -> g_strlcpy, strncat -> g_strlcat svn path=/trunk/; revision=24504
2008-02-22add rawshark.html to packaging and Wireshark help menuUlf Lamping1-0/+1
svn path=/trunk/; revision=24431
2008-02-01Rewrote some prohibited APIs in gtk/ (sprintf, strcpy, strcat).Stig Bjørlykke1-3/+3
If we get some truncated strings we probably overwrote some buffers... svn path=/trunk/; revision=24239
2008-01-14This patch adds support for configuration profiles, which can be used toStig Bjørlykke1-0/+4
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. svn path=/trunk/; revision=24089
2007-12-21Fix menu sensitivity even for text only nodes.Jaap Keuter1-11/+2
svn path=/trunk/; revision=23936
2007-12-16Temporarily #if 0 out code that was causing crashes.Guy Harris1-0/+8
svn path=/trunk/; revision=23893
2007-12-15Changes the name of the menu item "View/Reset Coloring" toSake Blok1-1/+3
"View/Reset Coloring 1-10" and adds sensitivity to it so that it will be greyed out when none of the temporary color filters are used. (as per discussion on wireshark-dev some time ago) svn path=/trunk/; revision=23879
2007-12-15With increasing number of dissectors, heuristics cause sometimes false hits ↵Jaap Keuter1-0/+7
on packets. It's a pain to go through the menu / enabled protocols dialog to temporarily disable such dissector. This change adds an option to the packet detail menu to do a point-and-click style temporary disable of such protocol. svn path=/trunk/; revision=23873
2007-12-14Source code cleanup.Jaap Keuter1-30/+33
svn path=/trunk/; revision=23860
2007-11-30move "Display Filter Macros" from View to Analyze menu, just below "Display ↵Ulf Lamping1-2/+2
Filter" - I guess it fit's much better there svn path=/trunk/; revision=23693
2007-11-28Remove "Reset coloring" from context menu's to keep the GUI consistent Sake Blok1-5/+0
svn path=/trunk/; revision=23657
2007-11-28Add sensitivity to some temporary coloring menu items.Sake Blok1-0/+9
svn path=/trunk/; revision=23654
2007-11-28Put double click on a frame link back.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=23644
2007-11-28fix the path to include g_ascii_strcasecmp.hRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=23636
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaGuy Harris1-4/+4
est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our own versions if they're missing from GLib (as is the case with GLib 1.x). In the code to build the list of named fields for Diameter, don't use g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping in the hash function and use g_ascii_strcasecmp() in the compare function. We do this because there is no guarantee that toupper(), tolower(), and functions that use them will, for example, map between "I" and "i" in all locales; in Turkish locales, for example, there are, in both upper case and lower case, versions of "i" with and without a dot, and the upper-case version of "i" is "I"-with-a-dot and the lower-case version of "I" is "i"-without-a-dot. This causes strings that should match not to match. This finishes fixing bug 2010 - an earlier checkin prevented the crash (as there are other ways to produce the same crash, e.g. a bogus dictionary.xml file), but didn't fix the case-insensitive string matching. svn path=/trunk/; revision=23623
2007-11-26Check current_frame instead of finfo_selected before trying to build aStig Bjørlykke1-2/+2
display filter based on the "selected" package. svn path=/trunk/; revision=23597
2007-11-26Check if a packet is selected before trying to build a display filter basedSake Blok1-9/+11
on the "selected" packet. Fixes bug 2020. svn path=/trunk/; revision=23596
2007-11-25Reset the temporary coloring filters to defaults instead of doing itSake Blok1-2/+2
implicitly by calling "color_filters_init()". This should probably fix the crashes experienced when pressing ctrl-space a couple of times svn path=/trunk/; revision=23583
2007-11-24Add a cast to make it compile again.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=23569
2007-11-24This patch adds (ten) temporary coloring rules which will only live until ↵Sake Blok1-166/+392
Wireshark is quit. Temporary coloring filters can be set by: - pressing <ctrl>-<digit> will create a conversation coloring filter based on the addresses of the currently selected packet (order TCP/UDP/IP/Ethernet) This can also be achieved from the "View|Colorize Conversation" menu. - Rightclicking on a packet in the packet-list will give the option to "Colorize Conversation" just as "Conversation Filter" does. - Rightclicking on an item in the packet-detail-list will give the option to "Colorize with filter" which works similar to "Apply as filter" Temporary filters can be cleared from the same menus or by pressing <ctrl>-<space>. This patch also adds an item to the above mentioned menu's to add a permanent color filter in the same way. The colors for the temporary coloring rules are now hardcoded as I do not know how to change the color of menu-items and therefore I chose to use icons to show the actual color of each of the ten temporary coloring rules. Is it at all possible to have different menu items in different colors? One other way of solving this is to recreate the icons on the fly after changing the colors. I will have a look into that once it is clear whether I can use different colors within the menu structure. svn path=/trunk/; revision=23560
2007-11-17Apply yet another set of the optimization patches:Anders Broman1-1/+1
- Don't call tree_view_select on first button click event, it's already done by the tree widget. - Factorize slow gtk_text_buffer_insert_with_tags_by_name() calls svn path=/trunk/; revision=23477
2007-11-14From didier:Stephen Fisher1-1/+2
Fix for bug #1876: Resizing columns changes the currently-selected packet svn path=/trunk/; revision=23445
2007-11-03- Future improve/clean up the now generic follow stream codeStephen Fisher1-1/+14
- Add "Follow UDP Stream" feature svn path=/trunk/; revision=23346
2007-09-13Standardize filenames and function names for Follow TCP & SSL stream functionsStephen Fisher1-8/+8
svn path=/trunk/; revision=22870
2007-08-16mark some parameters as unusedUlf Lamping1-3/+3
svn path=/trunk/; revision=22532
2007-08-16experimental feature: dissector filtersUlf Lamping1-10/+72
add the possibility, that a dissector writer can provide (usually non-trivial) display filters specific for the protocol in question (with an example in packet-dcerpc-pn-io.c), that will appear in the GUI svn path=/trunk/; revision=22530
2007-08-04Change the export object/export object http code to only be includedStephen Fisher1-1/+1
in the code for GTK versions 2.4 and up instead of 2 and up. svn path=/trunk/; revision=22455
2007-07-23for the Ethernet conversation filter, don't use ethertype but the data link ↵Ulf Lamping1-2/+4
address type being Ethernet. If the ethertype field is a length (0-1500), it will contain 0 - and the filter wouldn't work that way svn path=/trunk/; revision=22389
2007-05-23Add shortcuts for expanding/collapsing the packet detail.Gerald Combs1-7/+7
svn path=/trunk/; revision=21910
2007-03-23From Sake Blok:Stephen Fisher1-2/+21
Fix for bug #491: Unexpected frame.time_delta behavior This patch ... fixes bug 491. It does this by changing the behaviour of the frame.time_delta field so it reflects the delta time between captured packets (tshark already did this). To keep the delta time between displayed packets, the field frame.time_delta_displayed is created. svn path=/trunk/; revision=21154
2007-03-23From Sake Blok (via -dev list and enhancement bug #1449):Stephen Fisher1-1/+1
I did however see some small errors in the documentation that I did not notice when I sent in the patch. This patch corrects them and adds an accelerated key: - table 6.1 remove "Analyze" from "Identical..." column for "Copy as Filter" - table 6.2 add "Edit" from "Identical..." column for "Copy as Filter" - Added accelerator key for "Copy as Filter". I chose "Shift+Ctrl+C", so that "Ctrl+C" is still available for "standard" copy Image figure 3.4 should be renewed, reflecting the change in the menu structure. svn path=/trunk/; revision=21140
2007-03-21minor "Copy" menu item fix:Ulf Lamping1-0/+2
split the "sensitivity control" into "Copy" and "Copy/As Filter", otherwise it's not possible to copy a field that is not filterable (e.g. text only descriptions) svn path=/trunk/; revision=21097
2007-03-14Don't enable "Save As" if you don't have an unsaved live capture fileGuy Harris1-23/+31
and there are no formats in which the file can be saved by some means other than copying the raw data; "Save As" isn't a very useful function in that case, and that prevents us from having an empty list of formats in which the file can be saved. svn path=/trunk/; revision=21032