aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/print_prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2004-05-26Get rid of some declarations of routines that no longer exist.guy1-2/+2
Fix up some declarations of other routines to match the definitions of those routines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11004 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-26more code cleanup from dialog things:ulfl1-96/+8
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!!! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11003 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-24Have two strings in an enum_val_t - one that's a short string that isguy1-8/+8
convenient to put into a command line (no capital letters, no spaces to require quotes), and one that's a detailed description for use in the UI. Allow either of them in the preferences file or "-o" option; use the detailed description in the UI, and also use it when writing the preferences out, so that the preference will be readable by older versions of Ethereal (assuming the preference existed in that version). Update "README.developer" to give more detail about an enum_val_t (and to put the _t in), and to give a more detailed description of the "radio_buttons" argument to "prefs_register_enum_preference()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10982 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-29Make "file_selection_new()" take as its second argument anguy1-6/+4
Ethereal-defined indication of the action (open vs. save), regardless of whether we're building for GTK+ >= 2.4 or not; we just ignore the argument in pre-2.4 GTK+. Use "file_selection_new()" rather than #if'ed code to use it or "gtk_file_chooser_dialog_new()" for GTK+ >= 2.4 and "gtk_file_selection_new()" or it for pre-2.4 GTK+. Add a "file_selection_set_current_folder()" routine that does the appropriate thing depending on whether we're GTK+ >= 2.4 or not, and use that rather than #if'ed code to use "gtk_file_chooser_set_current_folder()" or "gtk_file_selection_set_filename()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10511 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-27Use the new GtkFileChooserDialog when built with gtk+ 2.4oabad1-1/+20
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10502 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-21use stock buttons whereever possible,ulfl1-5/+14
added some ethereal specific stock icons git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9763 f5534014-38df-0310-8fa8-9805f1628bb7
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.oabad1-57/+25
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6610 f5534014-38df-0310-8fa8-9805f1628bb7
2002-11-03Merge gtk and gtk2 directories.oabad1-5/+31
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6552 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-7/+7
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-13On Win32:guy1-1/+12
don't show "Command" and "File" as printer options, show "Printer" and "File"; don't show the command to be used for printing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5986 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.guy1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4878 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-20Make the blurbs for protocol preference items into tooltips. (This alsoguy1-4/+5
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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4577 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-13Add a preferences page for the name resolution flags.guy1-103/+44
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4536 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-11Have a routine to create a scrolled window, set its vertical scrollbarguy1-21/+20
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4521 f5534014-38df-0310-8fa8-9805f1628bb7
2000-10-20Remove #include "gtk/colors.h" from file.h, which keep the GTK+ headergram1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2519 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-21Instead of each set of built-in preferences having "ok", "save",guy1-19/+14
"cancel", and "delete" methods, give them: "fetch" - fetch from the notebook tab any values not already stored in "prefs", and store them there, but doesn't apply them; "apply" - apply the settings in "prefs"; "destroy" - clean up any windows created from the tab. As we no longer have "cancel" methods, we don't have per-preference code to revert preference values; instead, we have the common preference dialog box code make a copy of all the current preferences, and, when the "Cancel" button is clicked, free the current preferences and copy the saved preferences to it, and apply the preferences. Add an "Apply" button to the preference dialog box, which applies the current preferences without closing the dialog box. Treat a request to delete the preferences dialog box as equivalent to clicking "Cancel". Have a "remember_ptree_widget()" routine to remember all protocol tree widgets, and use the list of those widgets when we set GUI preferences for the protocol tree widgets, rather than setting the main protocol tree widget and then using the list of packet windows. Move that code out of "main.c" to "proto_draw.c", as it's not used by anything in "main.c", but is used by stuff in "proto_draw.c". Make the font one of the preferences we can set on the fly for protocol tree widgets. Also make it something we can set on the fly for the packet list widget. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2316 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-11Miscellaneous code cleaningdeniel1-17/+1
- 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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2254 f5534014-38df-0310-8fa8-9805f1628bb7
2000-05-08Keep a pointer to the current "Preferences" window, if any - if not, theguy1-2/+64
pointer is NULL - so that, instead of doing nothing if the user selects "Edit->Preferences" when there's already a "Preferences" dialog box open, we raise and de-iconify that window. Connect the preferences dialog box and any file selection dialog box opened from its Print tab, so that: if the preferences dialog box goes away, so does the file selection dialog box (as it no longer has a text widget into which it can stuff the selected file name); if the "File:" button is clicked when there's already a file selection dialog box open, we just reactivate that existing dialog box rather than popping up a new one. Catch the ESC key in the file selection dialog box popped up for the "File:" button in the Print tab of the Preferences dialog box, and make it cancel the file selection dialog box. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1922 f5534014-38df-0310-8fa8-9805f1628bb7
1999-09-10We need to catch a "window delete" event for the preferences dialog boxguy1-16/+25
- that event happens if, say, you nuke the dialog box from a window manager - and call "delete" routines for each of the preferences tabs, so that, for preferences tabs that include list widgets, we can set a flag on the preferences tab widget telling the selection callback for the list widget that the buttons it would normally set the sensitivity of, based on whether any row in the list is selected or not, have Joined the Choir Invisible, and therefore that we shouldn't change their sensitivity because GTK+ will whine at us if we do, just as is the case if we press the "OK" or "Cancel" button (which also cause the window to go away). Can we just do this in the "window delete" handler? I.e., does that get called if we explicitly destroy the widget? Or should we catch a "destroy" event instead? (There must be a better way to do this....) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@647 f5534014-38df-0310-8fa8-9805f1628bb7
1999-09-09Put RCS IDs (and a copyright notice and GPL notice) in several files,guy1-0/+24
and fix up the introductory comment on some other files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@640 f5534014-38df-0310-8fa8-9805f1628bb7
1999-09-09More shuffling of GTK-related routines to gtk subdirectory.gram1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@636 f5534014-38df-0310-8fa8-9805f1628bb7
1999-09-01Moved GTK-dependent routines for file dialogues, print dialogues, printgram1-0/+223
preferences, and menus to gtk subdirectory. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@623 f5534014-38df-0310-8fa8-9805f1628bb7