aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dlg_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-28Ethereal->WiresharkAnders Broman1-4/+4
svn path=/trunk/; revision=18232
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-1/+1
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-04-30We need <gdk/gdkkeysyms.h> to define GDK_VoidSymbol.Guy Harris1-2/+0
svn path=/trunk/; revision=18037
2006-04-30Move the file selection dialog routines to file_dlg.c, and give it aGuy Harris1-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
2006-04-20add a help button to the "Follow TCP Stream" dialog (and use standard button ↵Ulf Lamping1-0/+2
row for it too) svn path=/trunk/; revision=17931
2005-09-20enhance simple dialog: add the possibility to use no buttons at all and add ↵Ulf Lamping1-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
2005-09-09Don't handle the ETHEREAL_STOCK_CAPTURE_START button if we don't haveGuy Harris1-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
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-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
2005-04-19ask for unsaved file when using the new start capture feature,Ulf Lamping1-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
2005-02-27From Martin MathielsonLuis Ontanon1-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
2004-09-30For file browsing dialog boxes, the affirmative button should be "OK",Guy Harris1-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
2004-09-11Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris1-3/+4
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
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 Daniel Thompson: add additional message/alert box options toGuy Harris1-2/+12
display "Save", "Continue without Saving", and "Cancel", for the "do you want to save?" messages. svn path=/trunk/; revision=11372
2004-07-12bugfix to a bug reported by Ian Schorr:Ulf Lamping1-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
2004-07-12bugfix to a bug reported by Ian Schorr:Ulf Lamping1-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
2004-06-20bugfix: is using last_open_dir with GTK2.4 file chooserUlf Lamping1-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
2004-06-03"gtk_file_selection_set_filename()" doesn't work with a GtkFileChooser,Guy Harris1-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
2004-06-01add details for doxygen, various code cleanups as a result of thisUlf Lamping1-8/+57
svn path=/trunk/; revision=11052
2004-05-26more code cleanup from dialog things:Ulf Lamping1-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
2004-05-24dlg_destroy_cb() is staticUlf Lamping1-2/+2
svn path=/trunk/; revision=10989
2004-05-24Even with GTK+ 2.x the arguments to "dlg_destroy_cb()" aren't used.Guy Harris1-11/+2
svn path=/trunk/; revision=10988
2004-05-24"dlg_destroy_cb()" doesn't use its arguments when built with GTK+Guy Harris1-2/+11
1.2[.x], so add _U_ in that case. svn path=/trunk/; revision=10980
2004-05-23next step to save the size and postition of the dialogs (using a hashtable)Ulf Lamping1-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
2004-05-22going to have a standard behaviour of the dialogsUlf Lamping1-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
2004-05-21gtk_window_present() new dialog windows, to be sure they get on topUlf Lamping1-1/+2
svn path=/trunk/; revision=10935
2004-05-21Tag unused parameters with _U_ to squelch GCC compiler warnings (they'reGuy Harris1-3/+4
GTK+ callbacks so we don't get to change the calling sequence). svn path=/trunk/; revision=10934
2004-05-20call gtk_window_present() only on GTK2 and aboveUlf Lamping1-1/+3
svn path=/trunk/; revision=10926
2004-05-19workaround for GTK2 bug: bring main window back to front,Ulf Lamping1-1/+11
when a dialog is closed svn path=/trunk/; revision=10921
2004-03-29It *appears* that if you don't explicitly request that a file chooserGuy Harris1-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
2004-03-29In a "save" dialog, the "yes" button should be a "Save" button, not anGuy Harris1-2/+6
"Open" button. svn path=/trunk/; revision=10513
2004-03-29Add another wrapper routine, "file_selection_set_extra_widget()", to setGuy Harris1-1/+14
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-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
2004-03-27Use the new GtkFileChooserDialog when built with gtk+ 2.4Olivier Abad1-1/+14
svn path=/trunk/; revision=10502
2004-02-13Add a "window_new()" routine that creates a window of a given type, setsGuy Harris1-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
2004-01-31cleanup of new "question dialogs",Ulf Lamping1-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
2004-01-29added GTK_STOCK_YES and GTK_STOCK_NO to the dlg_button_rowUlf Lamping1-1/+15
svn path=/trunk/; revision=9906
2004-01-25adding a function to the help dialog, showing a specific topic (context help),Ulf Lamping1-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
2004-01-22Fix a typo.Guy Harris1-2/+2
svn path=/trunk/; revision=9781
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-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
2004-01-07save dialog with "Captured" and "Displayed" buttons in packet rangeUlf Lamping1-1/+12
svn path=/trunk/; revision=9580
2003-12-13Put in a comment about some issues with the way we do "Update list ofGuy Harris1-1/+15
packets in real time" captures. svn path=/trunk/; revision=9269
2003-12-12In "dlg_window_new()" check to see if "top_level" has been initialized,Gerald Combs1-2/+4
as is the case for the spawned capture process. svn path=/trunk/; revision=9245
2003-09-24Add a "file_selection_new()" routine that does all the positioning (GTK+Guy Harris1-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
2003-09-20From Giles Scott:Guy Harris1-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
2002-11-10Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-22/+5
svn path=/trunk/; revision=6600
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-5/+26
svn path=/trunk/; revision=6552
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-5/+5
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117