aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dlg_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* fix bug #1057: remove "start" completelyUlf Lamping2006-08-251-5/+0
| | | | svn path=/trunk/; revision=19029
* capture interfaces dialog: use capture stock icons instead of plain text buttonsUlf Lamping2006-08-241-5/+21
| | | | | | capture info dialog: add a "Help" and use stock buttons svn path=/trunk/; revision=19020
* Ethereal->WiresharkAnders Broman2006-05-281-4/+4
| | | | svn path=/trunk/; revision=18232
* Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris2006-05-221-1/+1
| | | | | | strings, and function names. svn path=/trunk/; revision=18205
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* We need <gdk/gdkkeysyms.h> to define GDK_VoidSymbol.Guy Harris2006-04-301-2/+0
| | | | svn path=/trunk/; revision=18037
* Move the file selection dialog routines to file_dlg.c, and give it aGuy Harris2006-04-301-292/+10
| | | | | | | | | header file. #if 0 out some includes; if none of the builds have a problem with that, I'll remove them. svn path=/trunk/; revision=18036
* add a help button to the "Follow TCP Stream" dialog (and use standard button ↵Ulf Lamping2006-04-201-0/+2
| | | | | | row for it too) svn path=/trunk/; revision=17931
* enhance simple dialog: add the possibility to use no buttons at all and add ↵Ulf Lamping2005-09-201-4/+5
| | | | | | a stop icon (similar to the splash_window, but with a slightly different layout and a way to choose the icon shown) svn path=/trunk/; revision=15886
* Don't handle the ETHEREAL_STOCK_CAPTURE_START button if we don't haveGuy Harris2005-09-091-1/+3
| | | | | | | libpcap - ETHEREAL_STOCK_CAPTURE_START isn't defined, and we can't capture in any case, so we don't need that button. svn path=/trunk/; revision=15736
* renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping2005-08-201-1/+1
| | | | | | named ui_util.h in / dir svn path=/trunk/; revision=15465
* More char -> const char warning fixes.Jörg Mayer2005-08-051-19/+19
| | | | | | | Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
* ask for unsaved file when using the new start capture feature,Ulf Lamping2005-04-191-0/+9
| | | | | | | ask for unsaved file when really starting the capture, not already when showing the options dialog, use the start capture icon in the capture options dialog (instead of simply Ok) svn path=/trunk/; revision=14142
* From Martin MathielsonLuis Ontanon2005-02-271-1/+2
| | | | | | | | - from the "Capture Options" dialog, if you select the Capture Filter(s) file browser, Cancel doesn't work. svn path=/trunk/; revision=13530
* For file browsing dialog boxes, the affirmative button should be "OK",Guy Harris2004-09-301-0/+15
| | | | | | | | | 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
* Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris2004-09-111-3/+4
| | | | | | according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-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
* From Daniel Thompson: add additional message/alert box options toGuy Harris2004-07-131-2/+12
| | | | | | | display "Save", "Continue without Saving", and "Cancel", for the "do you want to save?" messages. svn path=/trunk/; revision=11372
* bugfix to a bug reported by Ian Schorr:Ulf Lamping2004-07-121-2/+2
| | | | | | | don't present main window when closing dialogs on GTK2.4, as this might be a statistic window svn path=/trunk/; revision=11367
* bugfix to a bug reported by Ian Schorr:Ulf Lamping2004-07-121-3/+9
| | | | | | | GTK2.4 open directory doesn't go into last opened dir (this will affect all open file dialogs) svn path=/trunk/; revision=11365
* bugfix: is using last_open_dir with GTK2.4 file chooserUlf Lamping2004-06-201-4/+20
| | | | | | | gtk_file_chooser_set_current_folder() is very pedantic of it's parameter, trim filename so it will be accepted. svn path=/trunk/; revision=11199
* "gtk_file_selection_set_filename()" doesn't work with a GtkFileChooser,Guy Harris2004-06-031-3/+4
| | | | | | | | | | | and "gtk_file_chooser_set_filename()" requires an absolute path, so "" isn't valid. Get rid of the "gtk_file_selection_set_filename()" call in "file_selection_new()". Put in a comment asking why we're using "gtk_file_selection_set_filename()" at all. svn path=/trunk/; revision=11095
* add details for doxygen, various code cleanups as a result of thisUlf Lamping2004-06-011-8/+57
| | | | svn path=/trunk/; revision=11052
* more code cleanup from dialog things:Ulf Lamping2004-05-261-35/+133
| | | | | | | | | 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
* dlg_destroy_cb() is staticUlf Lamping2004-05-241-2/+2
| | | | svn path=/trunk/; revision=10989
* Even with GTK+ 2.x the arguments to "dlg_destroy_cb()" aren't used.Guy Harris2004-05-241-11/+2
| | | | svn path=/trunk/; revision=10988
* "dlg_destroy_cb()" doesn't use its arguments when built with GTK+Guy Harris2004-05-241-2/+11
| | | | | | 1.2[.x], so add _U_ in that case. svn path=/trunk/; revision=10980
* next step to save the size and postition of the dialogs (using a hashtable)Ulf Lamping2004-05-231-29/+4
| | | | | | | | | 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
* going to have a standard behaviour of the dialogsUlf Lamping2004-05-221-11/+37
| | | | | | | | | (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
* gtk_window_present() new dialog windows, to be sure they get on topUlf Lamping2004-05-211-1/+2
| | | | svn path=/trunk/; revision=10935
* Tag unused parameters with _U_ to squelch GCC compiler warnings (they'reGuy Harris2004-05-211-3/+4
| | | | | | GTK+ callbacks so we don't get to change the calling sequence). svn path=/trunk/; revision=10934
* call gtk_window_present() only on GTK2 and aboveUlf Lamping2004-05-201-1/+3
| | | | svn path=/trunk/; revision=10926
* workaround for GTK2 bug: bring main window back to front,Ulf Lamping2004-05-191-1/+11
| | | | | | when a dialog is closed svn path=/trunk/; revision=10921
* It *appears* that if you don't explicitly request that a file chooserGuy Harris2004-03-291-2/+1
| | | | | | | | dialog be centered on its parent, it still gets so centered; we remove the call to do so from the GTK+ >= 2.4 file selection dialog creation code. svn path=/trunk/; revision=10514
* In a "save" dialog, the "yes" button should be a "Save" button, not anGuy Harris2004-03-291-2/+6
| | | | | | "Open" button. svn path=/trunk/; revision=10513
* Add another wrapper routine, "file_selection_set_extra_widget()", to setGuy Harris2004-03-291-1/+14
| | | | | | | the "extra options" portion of a file selection dialog, and use it rather than #if'ed code. svn path=/trunk/; revision=10512
* Make "file_selection_new()" take as its second argument anGuy Harris2004-03-291-9/+40
| | | | | | | | | | | | | | | | | | 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
* Use the new GtkFileChooserDialog when built with gtk+ 2.4Olivier Abad2004-03-271-1/+14
| | | | svn path=/trunk/; revision=10502
* Add a "window_new()" routine that creates a window of a given type, setsGuy Harris2004-02-131-6/+6
| | | | | | | | | | | | 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
* cleanup of new "question dialogs",Ulf Lamping2004-01-311-2/+2
| | | | | | | using GTK2 primary/secondary message text from GNOME HIG for simple_dialogs, added a "question dialog" for the coloring rules "Clear" button svn path=/trunk/; revision=9921
* added GTK_STOCK_YES and GTK_STOCK_NO to the dlg_button_rowUlf Lamping2004-01-291-1/+15
| | | | svn path=/trunk/; revision=9906
* adding a function to the help dialog, showing a specific topic (context help),Ulf Lamping2004-01-251-76/+93
| | | | | | | beautifying the placement of the help button in the button_row, using the context help for the filter dialog svn path=/trunk/; revision=9851
* Fix a typo.Guy Harris2004-01-221-2/+2
| | | | svn path=/trunk/; revision=9781
* implemented dlg_button_row_new to get a standard function forUlf Lamping2004-01-211-1/+216
| | | | | | | | 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
* save dialog with "Captured" and "Displayed" buttons in packet rangeUlf Lamping2004-01-071-1/+12
| | | | svn path=/trunk/; revision=9580
* Put in a comment about some issues with the way we do "Update list ofGuy Harris2003-12-131-1/+15
| | | | | | packets in real time" captures. svn path=/trunk/; revision=9269
* In "dlg_window_new()" check to see if "top_level" has been initialized,Gerald Combs2003-12-121-2/+4
| | | | | | as is the case for the spawned capture process. svn path=/trunk/; revision=9245
* Add a "file_selection_new()" routine that does all the positioning (GTK+Guy Harris2003-09-241-9/+24
| | | | | | | | 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
* From Giles Scott:Guy Harris2003-09-201-3/+3
| | | | | | | | | | | in GTK+ 2.x, center dialogs on the parent; make the file selection dialogs transient for the main window, just as other dialogs are. Update Gerald's e-mail address. svn path=/trunk/; revision=8503
* Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad2002-11-101-22/+5
| | | | svn path=/trunk/; revision=6600