aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2008-07-08Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵wmeier1-4/+4
equivalent API gtk_timeout_add() ==> g_timeout_add gtk_timeout_remove() ==> g_source_remove() Also: timer callback should return gboolean (not void or gint) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25672 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-22Move the file utility functions from wiretap to libwsutil so thatmorriss1-1/+1
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25354 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13Allow the folders in the About Wireshark/Folders list to be double clicked ↵gal1-0/+31
on to open the appropriate folder in explorer. The MIB/PIB paths have been split up to allow each one to be clicked on separately, but as a result this will lose the order if the whole list is reordered. XXX: I have been unable to test this on MacOS or Linux. Stig? :-) I suppose it should work, but we may need to make it WIN32 specific? git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24995 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13sort #includes by directoriesulfl1-10/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24968 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12where it's not necessary, remove #include "compat_macros.h"ulfl1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24922 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11last round to replace SIGNAL_CONNECT with g_signal_connectulfl1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24918 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11third round to replace SIGNAL_CONNECT with g_signal_connectulfl1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24914 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11replace WIDGET_SET_SIZE with gtk_widget_set_size_requestulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24910 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-11OBJECT_..._DATA --> g_object_..._datawmeier1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24895 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-09Remove:etxrab1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24868 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-06remove GTK1 codeulfl1-147/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24821 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-28fix the path to include g_ascii_strcasecmp.hsahlberg1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23636 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaguy1-1/+5
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23623 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-20Silently ignore bogus geometry subkeys, just as we silently ignore otherguy1-1/+7
bogus entries in the recent file. This fixes bug 1925. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23233 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-25Squelch some qualifier (const vs. non-const) warnings.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21938 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-22Don't explicitly set the main window name unless you're changing theguy1-6/+31
state to "no packets", "file open", or "live capture in progress". Instead, to update the main window title when the user-specified prefix for the title changes: save the un-decorated title as a data value attached to the main window in set_main_window_name(); have a new routine to update the title, which fetches the un-decorated title, decorates it, and sets the title to the decorated value. This fixes bug 1608. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21876 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-04Fix build failures due to windows.h being included before winsock2.h via ↵grahamb1-7/+5
other includes git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21335 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-01dont ifdef out main_window_exit() if we dont have PCAP since this symbol is ↵sahlberg1-2/+2
required even without pcap git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20661 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-28From Douglas Pratley:sfisher1-0/+71
This is a patch adding items to the context menus for the packet list and packet details panes for copying packet data to the clipboard. New menu item on packet list pane: Copy (sub menu) -> Summary (Text) Copies fields displayed in the packet list, tab separated Summary (CSV) Copies fields displayed in the packet list, comma separated Hex and Text Copies data for the selected frame in hex-editor style (similar to Copy\All Information in packet bytes pane) Text Only Copies data for the selected frame, dropping non-printable characters other than line breaks (similar to Copy\Text Only in packet bytes pane) Hex Columns As Hex and Text but without text Hex Stream Copies data for the selected frame as an unpunctuated list of hex values Binary Stream Copies raw packet bytes to the clipboard as MIME type application/octet-stream git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20581 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-26Wrap the declaration for tree_view_key_pressed_cb() in an #if/#endif.gerald1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19995 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-26Make keyboard navigation common for all tree views (for GTK2, at least).gerald1-12/+87
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19994 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-27fix a warning by removing now unused codeulfl1-20/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19051 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-16Add support for AirPcap, an upcoming wireless product from CACE. Supportgerald1-0/+20
is disabled by default, and can be enabled by setting AIRPCAP_CONFIG in config.nmake. The code is currently limited to Windows, but should be adaptable to other platforms. The official announcement won't come until next week, so you'll have to read the source for details. :) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18928 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-12fix #973: if the window is minimized while you close Wireshark, (at least ↵ulfl1-1/+2
the Win32 version) will save -32000 for the x and y values, which is obviously out of the screen the next time. Simply ignore the incoming values of -32000 by not calling gtk_window_move() / gtk_widget_set_uposition() in that case. I don't know what the Unix GLib version will do in that case. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18884 f5534014-38df-0310-8fa8-9805f1628bb7
2006-06-06Ethereal -> Wiresharkgerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18370 f5534014-38df-0310-8fa8-9805f1628bb7
2006-06-03Throw in a cast to work around the lack of a "const" in the signatureguy1-1/+2
for gdk_pixmap_create_from_xpm_d(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18330 f5534014-38df-0310-8fa8-9805f1628bb7
2006-06-02eicon3d*.xpm -> wsicon*.xpmkukosa1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18309 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-31Rename the main executable to "wireshark", along with more conversions:gerald1-1/+1
ethereal.com -> wireshark.org mailing lists and addresses ETHEREAL -> WIRESHARK Man pages Automake/Autoconf names git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18271 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIguy1-3/+3
strings, and function names. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18205 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-01Fix for bug 887. Use the right function to set the window position.jake1-0/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18059 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵ulfl1-3/+1
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16403 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-06fix a packet_list_freeze / thaw pair, if a return comes in it's wayulfl1-0/+11
add a g_warning() call if an error occured while reading from capture file (while doing a live update), usually shouldn't happen but is difficult to debug *if* it happens add a new log domain LOG_DOMAIN_MAIN and the standard log handler for it add some (partly commented out) g_log() calls, useful for GUI sequence debugging git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16136 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-03major Win32 bugfix: when getting messages from the capture slave, only one ↵ulfl1-23/+40
message was processed every 200ms (UNIX handles this differently). If more messages were initiated from the slave, they stacked up. This slowed down the display update and slowed down stopping the capture as a lot of messages had to be processed before the close really finished ... Now the timer callback function will call the pipe read function up to 5 times to avoid this, but won't do this more often to prevent "endless blocking". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16091 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20Explain in more detail the split between the stuff in ui_util.h and inguy1-2/+4
gtk/gui_utils.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15482 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20- Declare some functions staticjmayer1-1039/+1039
- Add plugins_dlg.h - Include .h files in their respective .c files - Include .h and remove extern declarations in .c files - set eol-style and keywords on gui_utils.[hc] git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15471 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵ulfl1-0/+1039
named ui_util.h in / dir git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15465 f5534014-38df-0310-8fa8-9805f1628bb7