aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dlg_utils.h
AgeCommit message (Collapse)AuthorFilesLines
2004-09-30For file browsing dialog boxes, the affirmative button should be "OK",Guy Harris1-2/+4
not "Save". In UN*X with GTK+ 2.x, put the affirmative button in file dialogs to the right of the cancel button, as is done with other dialogs. svn path=/trunk/; revision=12146
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-05add more details for doxygenUlf Lamping1-5/+4
svn path=/trunk/; revision=11121
2004-06-04add more details for doxygenUlf Lamping1-18/+74
svn path=/trunk/; revision=11107
2004-06-01add details for doxygen, various code cleanups as a result of thisUlf Lamping1-2/+2
svn path=/trunk/; revision=11057
2004-06-01add details for doxygen, various code cleanups as a result of thisUlf Lamping1-4/+19
svn path=/trunk/; revision=11052
2004-05-31add details for doxygenUlf Lamping1-5/+6
svn path=/trunk/; revision=11046
2004-05-31add details for doxygenUlf Lamping1-16/+65
svn path=/trunk/; revision=11045
2004-05-26more code cleanup from dialog things:Ulf Lamping1-10/+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-23next step to save the size and postition of the dialogs (using a hashtable)Ulf Lamping1-6/+5
move the get/set window size functionality from main to ui_util, add some functions to handle windows/dialogs. changed help and about dialog to suit the current window API svn path=/trunk/; revision=10974
2004-05-22going to have a standard behaviour of the dialogsUlf Lamping1-1/+5
(including remebering of the dialog size in recent file). for a first step, I replaced all window_new() calls from dialogs into dlg_window_new() ones, and removed all gtk_window_set_position calls, this should be done in a more generalized way svn path=/trunk/; revision=10964
2004-03-29Add another wrapper routine, "file_selection_set_extra_widget()", to setGuy Harris1-1/+5
the "extra options" portion of a file selection dialog, and use it rather than #if'ed code. svn path=/trunk/; revision=10512
2004-03-29Make "file_selection_new()" take as its second argument anGuy Harris1-6/+9
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()". svn path=/trunk/; revision=10511
2004-03-27Use the new GtkFileChooserDialog when built with gtk+ 2.4Olivier Abad1-1/+5
svn path=/trunk/; revision=10502
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-1/+5
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-07save dialog with "Captured" and "Displayed" buttons in packet rangeUlf Lamping1-7/+9
svn path=/trunk/; revision=9580
2003-09-24Add a "file_selection_new()" routine that does all the positioning (GTK+Guy Harris1-3/+6
2.x) and transient-for setting that's done for other dialogs, and use it for dialogs that come from the main window or from children of the main window. svn path=/trunk/; revision=8531
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2000-08-23Bleah. What was I thinking? "dlg_window_new()" should take the titleGuy Harris1-2/+2
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-11Miscellaneous code cleaningLaurent Deniel1-1/+6
- 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-05Add a "dlg_window_new()" routine, which creates a GTK_WINDOW_DIALOGGuy Harris1-1/+11
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-05-08Add functions to create buttons whose labels specify mnemonics, i.e.Guy Harris1-1/+6
that contain an "_" preceding a letter, indicating that the letter is to be underlined in the label, and that if the key for that letter is pressed (either with Alt or without it) in the dialog box to which the button belongs, and the widget with the input focus doesn't do anything with that button, the button is sent the "clicked" signal. Attach mnemonics to the buttons in the "Display->Options" dialog box. svn path=/trunk/; revision=1915
2000-05-02Add some utilities to:Guy Harris1-0/+26
set the "activate" signal for a widget to call a routine to activate the "OK" button for a dialog box; set the "key_press_event" signal for a top-level dialog window to call a routine to activate the "Cancel" button for a dialog box if the key being pressed is the <Esc> key; to make it easier to drive dialog boxes entirely from the keyboard. Make the "Find Frame" and "Go To Frame" dialog boxes use those utilities. svn path=/trunk/; revision=1903