summaryrefslogtreecommitdiff
path: root/gtk/proto_draw.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-12proto_draw -> main_proto_drawUlf Lamping1-1766/+0
svn path=/trunk/; revision=24954
2008-04-12rename menu -> main_menuUlf Lamping1-1/+1
remove old (and unused and confusing) ../menu.h svn path=/trunk/; revision=24947
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-1/+0
svn path=/trunk/; revision=24922
2008-04-11last round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-9/+9
svn path=/trunk/; revision=24918
2008-04-11OBECT_..._DATA --> g_object_..._dataBill Meier1-27/+27
svn path=/trunk/; revision=24894
2008-04-11Replace FONT_TYPE macro with PangoFontDescription.Stephen Fisher1-1/+1
svn path=/trunk/; revision=24889
2008-04-08provide gtk_tree_view_expand_to_path only for exactly GTK2.0, avoid problems ↵Ulf Lamping1-1/+1
with GTK 3.0 later svn path=/trunk/; revision=24841
2008-04-07Remove GTK1 code and change ugly version checking statements intoStephen Fisher1-6/+2
GTK_CHECK_VERSION(). svn path=/trunk/; revision=24826
2008-04-07remove GTK1 codeUlf Lamping1-476/+2
svn path=/trunk/; revision=24823
2008-03-14Fix bug #1143 - Can't read packet details....bad color scheme forcedStephen Fisher1-2/+1
Change the code so we don't force a white background in the protocol tree area, instead just unset it so it goes back to its natural background. This matters with color schemes that have a black background. svn path=/trunk/; revision=24625
2007-12-03Fix indentation.Guy Harris1-3/+3
svn path=/trunk/; revision=23720
2007-11-28Put double click on a frame link back.Stig Bjørlykke1-3/+8
svn path=/trunk/; revision=23644
2007-11-21fix crash caused with memory overwrite (flush buffer into window when we do ↵Tomas Kukosa1-4/+5
not have space for next line) svn path=/trunk/; revision=23527
2007-11-17Apply yet another set of the optimization patches:Anders Broman1-36/+47
- 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-09-26"fix" some warnings about "might be used uninitialized" variablesJörg Mayer1-2/+2
svn path=/trunk/; revision=22983
2007-09-17Added functionality to highlight the FCS bytes in Ethernet and IEEE 802.11Stig Bjørlykke1-19/+29
packets in the Packet Details View. This "appendix" bytes are not copied with the Copy functions or in the Export Selected Packet Bytes. svn path=/trunk/; revision=22887
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-10/+10
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-24Remove all warnings under Unix for the gtk/ directory.Stephen Fisher1-16/+18
svn path=/trunk/; revision=21160
2007-01-28From Douglas Pratley:Stephen Fisher1-46/+152
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 svn path=/trunk/; revision=20581
2007-01-18Add separate union entries to fvalue.value for signed and unsignedMartin Mathieson1-1/+1
32-bit numbers. Separate signed and unsigned accessors have been added and used where appropriate. Definitely not for 0.99.5. svn path=/trunk/; revision=20472
2006-12-26fix unused warningsUlf Lamping1-1/+1
svn path=/trunk/; revision=20217
2006-11-26Make keyboard navigation common for all tree views (for GTK2, at least).Gerald Combs1-72/+0
svn path=/trunk/; revision=19994
2006-11-18Add additional keyboard navigation: Ctrl+Up & Ctrl+Down (under the "Go"Gerald Combs1-24/+36
menu) move to the previous and next packet even if the packet list isn't in focus (specifically, the packet detail will stay in focus if that was already the case). Make the return and enter keys toggle tree items in the packet detail and the backspace key jump to the parent node. Add a navigation section to the User's Guide. Make SIGNAL_EMIT_BY_NAME a simple #define, so that we can feed it multiple arguments. Fix up whitespace. svn path=/trunk/; revision=19924
2006-11-14New feature to automatically highlight the field found when doing a find.Stephen Fisher1-5/+28
This works for both string and hex searches. This resolves feature request bug #776. svn path=/trunk/; revision=19897
2006-11-05it is GtkText in gtk-1.x not GtkTextViewRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=19799
2006-11-05Make the routines that manipulate the hex/text display window take aGuy Harris1-64/+39
GtkWidget * as an argument, rather than a version-of-GTK+-dependent pointer; that way, we need fewer #ifdefs. Use WIDGET_SET_SIZE() instead of #ifdeffed code using gtk_widget_set_usize() or gtk_widget_set_size_request() - WIDGET_SET_SIZE() was created to encapsulate that GTK+ 1.2[.x] vs. 2.x difference. Make some variables not used outside gtk/main.c static. Clean up white space. Clean up handling of return value from load_airpcap() a bit. Use one big #ifdef HAVE_AIRPCAP/#endif for all the AirPcap stuff in gtk/main.c. Attach _U_ to the unused arguments to driver_warning_dialog_cb(), not to the arguments that are being used - and don't include it at all if HAVE_AIRPCAP isn't defined, as it's not used in that case. svn path=/trunk/; revision=19798
2006-09-30add a missing #includeUlf Lamping1-0/+1
svn path=/trunk/; revision=19384
2006-09-30A new field information flag, FI_URL, to indicate a field contains a URL.Graeme Lunt1-1/+9
This is used to display the field underlined and to allow the user to double-click on it (like FT_FRAMENUM) to open the URL in the configured browser. Example usage in the x509ce and logotype certificate extensions. svn path=/trunk/; revision=19383
2006-06-22coverity 187Ronnie Sahlberg1-0/+1
i dont think this can trigger in the current code but better safe than sorry and it safeguards against future changes that might break this requirement. dereferencing a nullpointer would cause crash of wireshark in case a new bug is introduced making it possible for this variuable to be null. svn path=/trunk/; revision=18543
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-2/+2
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-05-11From Greg Morris:Anders Broman1-9/+34
add copy functionality to the details window. Also includes a change in the copy function of the hex data window to allow copying just the text strings instead of all of the hex data. svn path=/trunk/; revision=18129
2006-04-30Move the file selection dialog routines to file_dlg.c, and give it aGuy Harris1-0/+3
header file. #if 0 out some includes; if none of the builds have a problem with that, I'll remove them. svn path=/trunk/; revision=18036
2006-04-29Most of the stuff in file_dlg.c is specific to capture files, so renameGuy Harris1-1/+1
it to capture_file_dlg.c, and rename its header file. We might want to move the generic file dialog stuff to a file_dlg.c file (it's currently in dlg_utils.c), and move the non-capture-file dialog stuff in capture_file_dlg.c to another file. svn path=/trunk/; revision=18034
2006-02-13Copy over the file open/save code from the Win32 native branch.Gerald Combs1-20/+30
The Windows-native routines were integrated by inserting #if GTK_MAJOR_VERSION >= 2 && _WIN32 win32_native_routine(GDK_WINDOW_HWND(top_level->window)); return; #endif at the beginning of each GTK+ file routine. There's probably a prettier way to do this. Some of the sizes need to be tweaked in win32-file-dlg.rc, but everything seems to work. Fix up whitespace. svn path=/trunk/; revision=17285
2005-11-12Allow a progress dialog to have "Stop" or "Cancel" as the "terminateGuy Harris1-0/+1
button"; "Stop" should be used for operations that can only be stopped (meaning that what it's already done isn't undone), not cancelled (meaning that whatever it's already done *is* undone), for which "Cancel" is used. Allow the merging process to be cancelled. Clean up indentation. Update some comments. svn path=/trunk/; revision=16489
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-13/+5
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. svn path=/trunk/; revision=16403
2005-10-27Fix uninitialized variable errors.Guy Harris1-0/+2
Rename some variables to make the names used in progress bars more common. (Should more of that functionality be moved into common progress bar code?) svn path=/trunk/; revision=16347
2005-10-27Check on every iteration of a loop whether to pop up a dialog box,Guy Harris1-7/+11
rather than checking only on every progress bar update quantum, so that if the update quantum is *very* large, we don't end up waiting longer than the standard time for a dialog box before checking. svn path=/trunk/; revision=16327
2005-09-11I'm adding the "Expert Info" prototype now, as it seems to be in a state ↵Ulf Lamping1-15/+51
where others might have a look and probably already find it useful :-). Anyway, we can easily disable it at one or two places in the code if it get's in our way of a new release. Please see: http://wiki.ethereal.com/Development/ExpertInfo for a complete overview of the intended feature and it's current state of implementation. While I'm working on this, I've also added some more status result codes to the DCE/RPC and DCOM dissectors. svn path=/trunk/; revision=15754
2005-08-21The protocol item in the protocol tree will have a gray background now, ↵Ulf Lamping1-0/+39
which makes it much better visible. Add some more optional flags to the protocol items, so more "special cases" can be marked in the protocol tree. New flags: /** The protocol field has a bad checksum */ FI_CHECKSUM_ERROR /** The protocol field has an unusual sequence (e.g. TCP window is zero) */ FI_SEQUENCE_WARNING /** The protocol field has a bad sequence (e.g. TCP segment is lost) */ FI_SEQUENCE_ERROR svn path=/trunk/; revision=15499
2005-08-20- Declare some functions staticJörg Mayer1-3/+3
- 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] svn path=/trunk/; revision=15471
2005-08-20- Include ../ui_util.h into files that implement functions declard inJörg Mayer1-0/+1
ui_util.h - Replace one instance of ui_util.h by gui_utils.h svn path=/trunk/; revision=15468
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping1-3/+3
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286
2005-08-09"g_locale_to_utf8()" returns a "gchar *", and the string it returns isGuy Harris1-1/+1
dynamically allocated. Don't assign its result to "const gchar *". svn path=/trunk/; revision=15266
2005-08-05More char -> const char warning fixes.Jörg Mayer1-2/+2
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-05-18insensitive context menu "Expand Subtrees" if no protocol field is currently ↵Ulf Lamping1-0/+2
selected, sort and name the tree related menu items like the context menu ones svn path=/trunk/; revision=14395
2005-04-30removed various gcc warningsUlf Lamping1-1/+1
svn path=/trunk/; revision=14246
2005-04-19add keyboard expand/collapse in the tree view (with Left/Right keys) with GTK2Ulf Lamping1-0/+59
svn path=/trunk/; revision=14137