aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/plugins_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-01Show the plugin paths in Help→About→Plugins. Add a "-G plugins" optionGerald Combs1-4/+5
to TShark which dumps a list of plugins. svn path=/trunk/; revision=37512
2010-12-09Always provide wslua_plugin_list, even if we don't have Lua configured.Balint Reczey1-3/+0
svn path=/trunk/; revision=35163
2010-08-30Remove some unnecessary includes: a lot of things don't need globals.h and ↵Jeff Morriss1-4/+2
register.h svn path=/trunk/; revision=34017
2009-10-23Load lua scripts in the plugins directory, both global and personal.Stig Bjørlykke1-5/+26
List loaded lua scripts in Help->About->Plugins. svn path=/trunk/; revision=30675
2008-11-16Don't put underscores in a phrase that's just shown to users.Guy Harris1-1/+1
svn path=/trunk/; revision=26793
2008-04-13sort #includes by directoriesUlf Lamping1-4/+7
svn path=/trunk/; revision=24969
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-1/+0
svn path=/trunk/; revision=24922
2008-04-07remove GTK1 codeUlf Lamping1-2/+0
svn path=/trunk/; revision=24823
2007-10-25new codec table for registering codecs by nameTomas Kukosa1-0/+6
new codec plugin type search registered codecs in rtp player fix memory leak in rtp player svn path=/trunk/; revision=23270
2007-05-24Prepare wireshark and tshark for wiretap pluginsLuis Ontanon1-6/+8
svn path=/trunk/; revision=21928
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2005-11-03Get rid of no-longer-used code (the list of plugins is now just a tab inGuy Harris1-67/+0
Help->About, not a separate dialog from Help->About Plugins). svn path=/trunk/; revision=16385
2005-08-20- Declare some functions staticJörg Mayer1-1/+2
- 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-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-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-03-07Call the "new-style init" routine for plugins a "register" routine, asGuy Harris1-1/+1
it serves the same purpose as the register routine in a built-in dissector, and don't require all dissectors to have one, as they might just be taps. Get rid of the stats tree's init routine, as it's just a tap, and as it doesn't do anything. Update the idl2eth Python script to generate plugins with register routines. svn path=/trunk/; revision=13644
2005-02-27The stats tree stuff should ultimately allow us to have plugin taps, soGuy Harris1-4/+22
add infrastructure for them, and display the plugin type (which could be both dissector *and* tap) in the list of plugins. svn path=/trunk/; revision=13543
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-05-26more code cleanup from dialog things:Ulf Lamping1-19/+10
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-05-20beautify the "About Ethereal" page, put plugin list into the dialogUlf Lamping1-89/+47
svn path=/trunk/; revision=10930
2004-02-13Create only one "Plugins" window per process.Guy Harris1-2/+24
svn path=/trunk/; revision=10053
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-6/+6
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-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-26/+12
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-6/+2
svn path=/trunk/; revision=9636
2003-11-28using dlg_utils.c functions to catch the ESC key to close the dialogUlf Lamping1-3/+10
svn path=/trunk/; revision=9110
2003-03-02Change some plugin window geometry aspects.Laurent Deniel1-5/+5
svn path=/trunk/; revision=7248
2002-12-02Remove gtk_tree_view_set_search_column() which is not needed.Olivier Abad1-2/+1
svn path=/trunk/; revision=6712
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-33/+14
svn path=/trunk/; revision=6610
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-20/+91
svn path=/trunk/; revision=6552
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-5/+1
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-3/+3
svn path=/trunk/; revision=4878
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-4/+3
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
2001-01-28Get rid of support for old-style plugins (support for old-style pluginsGuy Harris1-254/+6
requires that the dfilter code be initialized before the plugins are added; this required us to *re*-initialize the dfilter code after reading in all the plugins, as the plugins may themselves have added new filterable fields - that was a bit of a mess), and make the "Tools->Plugins" dialog box show the new-style plugins. svn path=/trunk/; revision=2950
2000-11-18Corrected wrong function call in plugins_enable_cbGraham Bloice1-2/+2
svn path=/trunk/; revision=2657
2000-11-15Move the table of bit-swapped byte values to "epan/bitswap.c", andGuy Harris1-29/+5
declare it, and define a "BIT_SWAP" macro that uses it, in "epan/bitswap.h". Use that macro to bit-swap bytes in the IEEE 802.11 dissector, rather than the macro that was used (said macro used GCCisms and didn't compile on Windows). Make an "init_plugin()" routine to enable a plugin and call its init routine, and call it from "check_plugin_status()" and "plugins_enable_cb()", rather than having very similar code in two places; "patable" is now part of libethereal, and, at least on Windows, attempts to refer to it from "libui" failed. Make "patable" static to "epan/plugins.c". (This may still not work, as now "libui" is calling a routine in "libethereal"; if that fails, perhaps it's time to get rid of the "enable/disable plugins" stuff completely, as new-style plugins, at least, register themselves as protocols and should be controllable from the "Edit->Protocols" window just as built-in dissectors are.) svn path=/trunk/; revision=2649
2000-10-20Remove #include "gtk/colors.h" from file.h, which keep the GTK+ headerGilbert Ramirez1-1/+2
files from being #included in epan/packet.c. Fix the other files that need either "gtk/colors.h" or <gtk/gtk.h> #included as a result of not pulling in gtk/colors.h automatically because of file.h. svn path=/trunk/; revision=2519
2000-08-23Bleah. What was I thinking? "dlg_window_new()" should take the titleGuy Harris1-5/+3
for the dialog window as an argument (as various dialog creators in GTK+ do), not oblige every caller of it to cut-and-paste a "gtk_window_set_title()" call after it. svn path=/trunk/; revision=2345
2000-08-21Cosmetic change (close button at the right place :-).Laurent Deniel1-7/+7
svn path=/trunk/; revision=2326
2000-08-11Miscellaneous code cleaningLaurent Deniel1-1/+5
- add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
2000-07-20Use ESD_TYPE_CRIT for most errors (the model used by various GUIs seemsGuy Harris1-4/+4
to use "warning" dialog boxes only to warn the user "if you do that, bad things may happen" *and* to offer them the option either to drive on or quit, so perhaps ESD_TYPE_CRIT should be used for all errors). However, put "Ethereal: Error" rather than "Ethereal: Critical" in the title bar, in the hopes that it'll make it clearer that Something Bad Happened. If the user specifies that captures should be saved to a user-specified file rather than a temporary file, report errors trying to create that file with "file_open_error_message()". Make the "for_writing" argument to "file_open_error_message()" a "gboolean", as it's either TRUE (if the file is being opened for writing) or FALSE (if it's being opened for reading). Report EISDIR as "XXX is a directory (folder), not a file.". svn path=/trunk/; revision=2143
2000-07-05Add a "dlg_window_new()" routine, which creates a GTK_WINDOW_DIALOGGuy Harris1-3/+4
window and makes it transient for the top-level window; the transient-for at least provides a hint to X window managers to minimize the dialog if the main window is minimized; keep the dialog on top of the main window in the Z order for windows; perhaps (if there are any window managers that actually *do* this) even put it atop the main window in the X-Y plane (KWM doesn't and I seem to remember that the Exceed X server for Windows doesn't). It's generally considered the Right Thing To Do for dialog boxes. Use that routine to create dialog boxes, rather than doing it directly in the code for that dialog box. svn path=/trunk/; revision=2112
2000-02-07Code changes, but not Makefile changes, for enabling plugins for Win32.Gilbert Ramirez1-7/+23
svn path=/trunk/; revision=1605
2000-01-17Squelch some complaints from GCC (and protect against the admittedlyGuy Harris1-7/+22
unlikely possibility that, on some platform, converting a "gpointer" to pointers of the types in question involves more than just reinterpreting the bits of the "gpointer" value). svn path=/trunk/; revision=1503
2000-01-17We have to #include "plugins.h" before using the HAVE_PLUGINS define.Olivier Abad1-3/+3
svn path=/trunk/; revision=1500
2000-01-15Merge in the final code to make Ethereal run on Win32, compiledGilbert Ramirez1-7/+11
with MSVC 6.0 and 'nmake', the make tool that comes with MSVC. It compiles, links, and runs. It doesn't run correctly. There's a problem when reading files. I'm getting short reads. I'm not linking in zlib or libsnmp because it first needs to be debugged. I changed the plugin code to use gmodule instead of libltdl, but the Unix build still links ethereal against libltdl. I'll fix that tonight; sorry about leaving it in such a sad state, but I wanted to check in this code before I left work on a Friday night. Ethereal still works, but the building is less than optimal. svn path=/trunk/; revision=1479
2000-01-04Implement plugins status save/restore :Olivier Abad1-108/+21
Add a "Save status" button to the Plugins window which saves the status (enabled/disabled) and the filter used by all the plugins in ~/.ethereal/plugins.status Moved plugins_scan_dir() from gtk/plugins_dlg.c to plugins.c because it is GUI independent. Read plugins.status in this function and restore the saved status. Add a init_plugins() function in plugins.c which calls plugins_scan_dir() in order to build the plugin_list. It is called by ethereal_proto_init() in gtk/main.c svn path=/trunk/; revision=1417
2000-01-03Add a "Default" button to reset the filter string to its default value.Olivier Abad1-1/+22
svn path=/trunk/; revision=1415
2000-01-03Take the "simple_dialog()" stuff out of "ui_util.h" and "gtk/ui_util.c",Guy Harris1-2/+2
and move it to "simple_dialog.h" and "gtk/simple_dialog.c". svn path=/trunk/; revision=1414
1999-12-29Update a comment.Guy Harris1-3/+12
svn path=/trunk/; revision=1390