aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dfilter_expr_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-14From Jim Young (bug 2212):Sake Blok1-1/+1
Add the profile name to the title of all the configuration windows. (this is a rewrite of Jim's patch) svn path=/trunk/; revision=25016
2008-04-13sort #includes by directoriesUlf Lamping1-10/+12
svn path=/trunk/; revision=24968
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-1/+0
svn path=/trunk/; revision=24922
2008-04-11second round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-11/+10
This requires some casts to be added and I just don't want to add casts at all possible places. So I compile and only add casts where the (MSVC) compiler has a hard time. Unfortunately this won't find any problems in Linux/Unix only code - I'll keep an eye on the buildbot and try to fix things as I'm going on ... svn path=/trunk/; revision=24913
2008-04-11replace SIGNAL_DISCONNECT_BY_FUNC with g_signal_handlers_disconnect_by_funcUlf Lamping1-1/+1
svn path=/trunk/; revision=24911
2008-04-11replace WIDGET_SET_SIZE with gtk_widget_set_size_requestUlf Lamping1-1/+1
svn path=/trunk/; revision=24910
2008-04-11replace RADIO_BUTTON_NEW_WITH_MNEMONIC with ↵Ulf Lamping1-9/+9
gtk_radio_button_new_with_mnemonic_from_widget svn path=/trunk/; revision=24908
2008-04-11OBECT_..._DATA --> g_object_..._dataBill Meier1-39/+39
svn path=/trunk/; revision=24893
2008-04-06remove GTK1 codeUlf Lamping1-289/+0
svn path=/trunk/; revision=24816
2008-04-03http://www.wireshark.org/lists/wireshark-dev/200803/msg00308.htmlLuis Ontanon1-0/+2
proto.[hc] define new APIs to allow delayed registration of protocol fields, so that dissectors with "flexible" fields like xml, radius, diameter, snmp do not have to load their files at startup but can do so as late as possible. gtk/dfilter_expr_dlg.c : have the expression dialog registering all prefixes so that all fileds appear in the dialog tshark.c register all prefixes when called with -G epan/radius_dict.l epan/dissectors/packet-radius.c epan/dissectors/packet-radius.h refactor registration to delay dictionary loading as long as possible svn path=/trunk/; revision=24762
2008-03-06Fix some typos; Fix some indenting to be at least locally consistentBill Meier1-38/+38
svn path=/trunk/; revision=24575
2008-02-29Next attempt to cleanup some string functions, including:Stig Bjørlykke1-2/+2
strncpy -> g_strlcpy, strncat -> g_strlcat svn path=/trunk/; revision=24504
2008-02-01Rewrote some prohibited APIs in gtk/ (sprintf, strcpy, strcat).Stig Bjørlykke1-2/+2
If we get some truncated strings we probably overwrote some buffers... svn path=/trunk/; revision=24239
2007-07-16Fix a couple "cast to pointer from integer of different size" warnings when ↵Jeff Morriss1-1/+1
building with GTK1.2 on Redhat AS4 64-bit svn path=/trunk/; revision=22329
2007-06-17Fix bug #1334 and a problem where a user couldn't interact with theStephen Fisher1-1/+3
filter dialog's add expression dialog when going to it through file->open or file->merge (because dialogs in between are set to modal). svn path=/trunk/; revision=22115
2006-12-22hmmRonnie Sahlberg1-0/+1
best to revert this for a while. revert all changes from previous patch. svn path=/trunk/; revision=20195
2006-12-22change some slab allocated memory into ep/emem allocated structures instead.Ronnie Sahlberg1-1/+0
this primarily removes code and simplifies (==eliminates) the need to track the data that is allocated and should potentially be slightly faster than a slab allocator. however these functions are called A LOT so there might be a performance hit when using emem with full debugging canary values and all the bells and whistles activated. this change also makes any future attempt to parallellize dissection of frames easier if we just make the ep allocator allocate from a threads specific ep pool. (something we would have to do anyway to make ep allocations multithreaded) this works in all my tests so far but needs more test coverage. svn path=/trunk/; revision=20194
2006-10-23Fix for bug 1178. Allow FT_?INT24 BASE_DEC VALs in the expression selection ↵Jaap Keuter1-1/+3
dialog. svn path=/trunk/; revision=19666
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-1/+1
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-03-09Make sure we can't pass NULL to strcmp. Fixes Coverity CID 34. Fix up Gerald Combs1-8/+4
whitespace. svn path=/trunk/; revision=17555
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-6/+6
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-05More char -> const char warning fixes.Jörg Mayer1-4/+4
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-07-24Constify to remove a bunch of warnings. Add some casts to squelchGuy Harris1-2/+2
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. svn path=/trunk/; revision=15043
2005-06-24Constify a bunch of structure members and function arguments, to squelchGuy Harris1-2/+2
compiler warnings. Clean up indentation. svn path=/trunk/; revision=14739
2004-12-29Make the tone of the error messages a bit less formal, by usingGuy Harris1-2/+2
contractions. (Safari does, at least when you're trying to open a file to which you don't have read access.) svn path=/trunk/; revision=12852
2004-08-08From Stas Grabois: make the previous change not to show disabledGuy Harris1-2/+7
protocols in the "Add Expression" and "Decode As" dialogs work with GTK+ 2.x. svn path=/trunk/; revision=11626
2004-07-19renamed filter_prefs to filter_dlg, as the filter settings are (well, for a ↵Ulf Lamping1-1/+1
long time) no longer part of the preferences dialog. svn path=/trunk/; revision=11436
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-06-10Move "dfilter_expr_dlg_delete_event_cb()" afterGuy Harris1-10/+10
"dfilter_expr_dlg_cancel_cb()" to avoid use-before-declaration warnings. svn path=/trunk/; revision=11136
2004-06-10"delete_event" is an event, so its handler takes three arguments, notGuy Harris1-2/+12
two, and it returns a gboolean. svn path=/trunk/; revision=11133
2004-06-10From Stas Grabois: don't show disabled protocols in the "Add Expression"Guy Harris1-1/+11
and "Decode As" dialogs (so that you can cut down the size of the protocol lists in those dialogs by disabling "uninteresting" protocols). svn path=/trunk/; revision=11132
2004-05-27use gtk_window_set_default_size() instead of WIDGET_SET_SIZE() for the dialogs,Ulf Lamping1-3/+4
as WIDGET_SET_SIZE() will prevent the user from shrinking the dialog, and gtk_window_set_default_size() will not svn path=/trunk/; revision=11021
2004-05-26more code cleanup from dialog things:Ulf Lamping1-25/+23
changed window_xy (dialog) function calling in a lot of gtk files cleanup of file selection code cleanup in dlg_utils/file_dlg/ui_util Please report any problems!!! svn path=/trunk/; revision=11003
2004-03-13replaced snprintf by g_snprintf and removed #include "snprintf.h"Ulf Lamping1-15/+11
svn path=/trunk/; revision=10370
2004-03-07fixed a bug GTK_WIDGET_VISIBLE -> GTK_WIDGET_SENSITIVE,Ulf Lamping1-30/+64
added some (not yet finished) work svn path=/trunk/; revision=10340
2004-03-06some code cleanupUlf Lamping1-128/+66
svn path=/trunk/; revision=10335
2004-03-06replaced show/hide by sensitive/insensitive to see all fields everytimeUlf Lamping1-23/+40
svn path=/trunk/; revision=10334
2004-02-12The HIG's and/or GUI toolkit documentation for:Guy Harris1-6/+5
Mac OS X GNOME Qt KDE Windows all indicate that {message,alert} boxes are modal, at least for the window to which they apply. (Presumably the idea is that not forcing the user to pay attention to the alert box, and allowing more than one alert box to be up for a given window, causes more problems than not letting the user do stuff to that window in order to figure out what the underlying problem is or figure out what to do to fix it - the message should be sufficient, in most if not all cases, to let you know what the problem is.) Make "simple_dialog()" unconditionally make the alert box modal, and get rid of ESD_TYPE_MODAL. XXX - we need to make it possible to make an alert box modal for a given window, rather than just the top-level window. svn path=/trunk/; revision=10051
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-11/+26
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-5/+5
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-31renamed ESD_TYPE_CRIT to ESD_TYPE_ERROR toUlf Lamping1-5/+5
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-26Add support for the "matches" operator if HAVE_LIBPCRE is defined.Olivier Biot1-1/+8
svn path=/trunk/; revision=9865
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-19/+8
layouting the dialog buttons, and use it where appropriate. This will help us with the GTK1/2 conflict on button layouts and will also result in a more consistent look of the dialogs at all. svn path=/trunk/; revision=9771
2004-01-10using button compatibility macrosUlf Lamping1-11/+3
svn path=/trunk/; revision=9636
2003-11-25fvalue_free() is one of the most called functions.Ronnie Sahlberg1-2/+2
This function is also very small, so small that teh overhead for the actual function call and return is likely to be a significant part of its execution time. change it into a macro and make it thus slightly faster by eliminating the function call overhead. svn path=/trunk/; revision=9083
2003-11-16Export "protocol_t" as an opaque type.Guy Harris1-3/+6
Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()" take a "protocol_t *" as an argument, so they don't have to look up the "protocol_t" - this will probably speed them up considerably, and they're called on almost every dissector handoff. Get rid of a number of "proto_is_protocol_enabled()" calls that aren't necessary (dissectors called through handles, including those called through dissector tables, or called as heuristic dissectors, aren't even called if their protocol isn't enabled). Change some direct dissector calls to go through handles. svn path=/trunk/; revision=8979
2003-10-29Put quotes around values for FT_ABSOLUTE_TIME variables, and aroundGuy Harris1-12/+30
values with white space in them. svn path=/trunk/; revision=8820
2003-09-29- in show_relations() : select the first row of the relation_list whenOlivier Abad1-3/+11
using gtk+ v2. - get rid of some unused variables. svn path=/trunk/; revision=8565