aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_prefs.c
AgeCommit message (Collapse)AuthorFilesLines
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-1/+1
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-3/+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-02-10Always make the elements of the "text" array point to g_mallocatedGuy Harris1-2/+2
strings, so that they can safely be g_freed. svn path=/trunk/; revision=13373
2005-01-16Rename capture_combo_utils.{c,h} to capture_ui_utils.{c,h}, as the codeGuy Harris1-1/+1
in there is for UI functions including, but not limited to, the combo box in capture dialogs. svn path=/trunk/; revision=13061
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
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-07-13From Pavel Kankovsky: the items pointed to by elements in the "text[]"Guy Harris1-3/+3
array are all "g_free()"d, so they have to be "g_malloc()"ed - instead of setting some to "", set them to "g_strdup("")". svn path=/trunk/; revision=11370
2004-06-20preference setting for the option to "avoid" the capture info dialogUlf Lamping1-11/+42
svn path=/trunk/; revision=11195
2004-06-12On Windows, if "get_interface_list()" returns CANT_GET_INTERFACE_LISTGuy Harris1-4/+8
and the error message includes "Not enough storage is available to process this command" or "The operation completed successfully", suggest that the user install a WinPcap version later than 3.0 - this is definitely a Frequently Asked Question on the Ethereal list. svn path=/trunk/; revision=11143
2004-05-31some more dialog redesign and code cleanupUlf Lamping1-40/+56
svn path=/trunk/; revision=11041
2004-05-31interface options preference dialog: remove confusing second interface clist,Ulf Lamping1-128/+74
fix a bug making garbage of user supplied interface description svn path=/trunk/; revision=11039
2004-05-27use gtk_window_set_default_size() instead of WIDGET_SET_SIZE() for the dialogs,Ulf Lamping1-7/+2
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-21/+12
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-04-17Failure to get the list of interfaces should be reported as an error.Guy Harris1-2/+2
svn path=/trunk/; revision=10621
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-5/+5
various other string related changes svn path=/trunk/; revision=10373
2004-02-13Add a "window_new()" routine that creates a window of a given type, setsGuy Harris1-14/+10
the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-7/+3
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-10/+17
"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-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-30/+18
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-21use stock buttons whereever possible,Ulf Lamping1-4/+4
added some ethereal specific stock icons svn path=/trunk/; revision=9763
2004-01-10using button compatibility macrosUlf Lamping1-11/+3
svn path=/trunk/; revision=9636
2003-12-21removed some MSVC warnings (moved pcap.h before glib.h)Ulf Lamping1-3/+2
svn path=/trunk/; revision=9393
2003-09-26From Nathan Jennings:Guy Harris1-327/+184
update the CList as you enter/modify options; give Windows users OS descriptions in the displayed devices list; display at least 5 rows in the lists; get rid of the "extra" CList for storing edited values. svn path=/trunk/; revision=8552
2003-09-10If we have no interfaces, don't set the popdown list for interface comboGuy Harris1-3/+5
boxes. svn path=/trunk/; revision=8443
2003-09-10Have "get_interface_list()" return a list of "if_info_t" structuresGuy Harris1-25/+28
containing a pointer to an interface name and possibly a pointer to an interface description (although that pointer might be null if no description is available), rather than having the Windows version glue together the name and description into a single string. Supply for the Linux "any" device the same description that libpcap's "pcap_findalldevs()" returns. svn path=/trunk/; revision=8440
2003-09-09From Nathan Jennings: fix a problem with empty descriptions.Guy Harris1-4/+4
svn path=/trunk/; revision=8435
2003-09-09From Nathan Jennings: give the "Edit..." window for the capture optionsGuy Harris1-7/+4
dialog the right icon, and make ESC cancel it. svn path=/trunk/; revision=8422
2003-09-08From Nathan Jennings:Guy Harris1-10/+874
support for user-supplied interface descriptions; support for hiding interfaces in drop-down list in capture dialog. Clean up comments written to preferences file. svn path=/trunk/; revision=8419
2002-11-11Use gtk1/gtk2 compatibility macros.Olivier Abad1-14/+10
svn path=/trunk/; revision=6616
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-3/+1
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-31Remove redundant HAVE_LIBPCAP check (copied from gtk2)Jörg Mayer1-4/+1
svn path=/trunk/; revision=6158
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-6/+6
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-07-17Get rid of some "unused variable" and "unused static function" warnings,Guy Harris1-24/+3
and some compile errors in Tethereal, when compiling without libpcap. If libpcap is missing (whether that's detected at compile time or, as on Windows, at run time), don't call any of the "capture_prefs" routines - the routine to create the capture preferences page wasn't called, so the other routines can try to refer to non-existent widgets and other items and crash. Get rid of the stub routines in "capture_prefs()" used when compiling without libpcap, as they're no longer called. svn path=/trunk/; revision=5888
2002-06-28Trim leading and trailing white space from the capture device in theGuy Harris1-3/+12
preference setting, and, if it's empty, treat that as an indication that the user doesn't want to wire in a default device, and just wants the first device in the list chosen. svn path=/trunk/; revision=5773
2002-05-24Get rid of an unused variable.Guy Harris1-2/+1
svn path=/trunk/; revision=5540
2002-05-23Save the whole capture device name in the preferences file. UnderGerald Combs1-7/+4
Windows, this saves the description + device name. svn path=/trunk/; revision=5534
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-3/+3
svn path=/trunk/; revision=4878
2002-01-20Make the blurbs for protocol preference items into tooltips. (This alsoGuy Harris1-4/+7
lets us add tooltips to other preference items whose widgets are created with the "create_preference_XXX()" routines - just pass in a tooltip text string rather than a null pointer.) svn path=/trunk/; revision=4577
2002-01-13Add a preferences page for the name resolution flags.Guy Harris1-30/+11
Separate the preferences value for those flags and the name resolution code's value into separate variables; this means that the resolution code no longer depends on the preferences code, and may let us eventually have the current setting and the preference setting differ (so that a user can temporarily override the preference setting without causing subsequent saves of the preferences to save the temporary value). Add routines to create various types of widgets for preferences, and to fetch the values for "enumerated" preferences, and use them both in the code to handle hardwired preference pages and table-driven preference pages. svn path=/trunk/; revision=4536
2002-01-12Get rid of unused variables.Guy Harris1-10/+12
Put the labels of check boxes to the left of the checkboxes, right-aligned, and give all of them a colon at the end, to match the style of module preferences. svn path=/trunk/; revision=4534
2002-01-12While you're at it, use the key for the auto scroll option checkbox forGuy Harris1-2/+2
the pointer to the auto scroll options checkbox.... svn path=/trunk/; revision=4532
2002-01-12Make the key for the capture preference window's pointer to the autoGuy Harris1-2/+2
scroll option checkbox distinct from the key for the pointer to the real-time capture option checkbox, so thee auto scroll option checkbox can be fetched. svn path=/trunk/; revision=4531
2002-01-11Have a routine to create a scrolled window, set its vertical scrollbarGuy Harris1-2/+1
preference, and add it to the list of scrolled windows; call that routine to create scrolled windows, rather than creating it and calling other routines to do the other two operations. As "set_scrollbar_placement_all()" and "set_ctree_styles_all()" always set the styles to match the user's preference, don't have them take an argument, have them just use the user's preference settings. Get rid of unnecessary includes of "prefs_dlg.h", replacing them with includes of "prefs.h" if necessary. Don't have "prefs_dlg.h" include "prefs.h" - its sole purpose is to declare routines defined in "prefs_dlg.c" - and add any additional includes of "prefs.h" this requires. Get rid of unnecessary includes of "prefs.h" and "gtkglobals.h". Fix up white space. svn path=/trunk/; revision=4521
2002-01-10Fix some problems with building Ethereal/Tethereal without libpcap.Guy Harris1-7/+26
Get rid of a #include I'd #if 0'ed out. svn path=/trunk/; revision=4513
2002-01-10Add a preferences page for capture preferences, so that the user canGuy Harris1-0/+182
directly edit the capture preferences, rather than only being able to set them implicitly from the values for the most recent capture. Add a preferences item for the interface on which to capture. Get rid of some unused variables. svn path=/trunk/; revision=4510