aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dlg_utils.h
AgeCommit message (Collapse)AuthorFilesLines
2012-01-15Move gtk to ui/gtk.Jörg Mayer1-119/+0
This looses the last checkin to gtk, will add this manually back. svn path=/trunk/; revision=40518
2011-06-05Some work on generalizing the "display filter" tap parameter dialog boxGuy Harris1-1/+1
to more generally support fetching parameters for taps. svn path=/trunk/; revision=37559
2010-08-26Fix a number of doxygen directives.Anders Broman1-1/+1
svn path=/trunk/; revision=33929
2008-04-14From Jim Young (bug 2212):Sake Blok1-0/+10
Add the profile name to the title of all the configuration windows. (this is a rewrite of Jim's patch) svn path=/trunk/; revision=25016
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-10/+0
svn path=/trunk/; revision=24922
2008-04-11Clean up a few references to OBJECT_[GS]_DATA macrosBill Meier1-1/+1
svn path=/trunk/; revision=24901
2007-01-20Recent versions of GTK+ have added a "gtk-label-select-on-focus"Gerald Combs1-3/+10
property, which selects the entire contents of a label when it comes into focus. This property annoyingly defaults to TRUE, which meant that the labels in simple dialogs and the about box would unexpectedly show up selected. Work around this by setting the focus on the "OK" button in the about dialog and the first button specified in simple dialogs. svn path=/trunk/; revision=20507
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-2/+2
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-04-30Move the file selection dialog routines to file_dlg.c, and give it aGuy Harris1-79/+0
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
2005-12-03split some parts of the packet counting functions into their own files ↵Ulf Lamping1-1/+1
capture_info(.c/.h), so we can use it from the main program svn path=/trunk/; revision=16668
2005-08-21"gtk_tap_dfilter_dlg_cb()" is no longer used outsideGuy Harris1-1/+1
gtk/tap_dfilter_dlg.c; don't export it. That means that gtk/tap_dfilter_dlg.h is no longer useful; get rid of it. Rename "gtk_tap_dfilter_dlg_cb()" to "tap_dfilter_dlg_cb()", as it's inside GTK+-specific code, so there's no need to distinguish it from non-GTK+ callbacks. Update some comments to reflect the name change and the new API for registering tap_dfilter_dlg stats. Make the AFP and SMB stats use the gtk/tap_dfilter_dlg.c stuff. svn path=/trunk/; revision=15496
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-3/+3
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-05More char -> const char warning fixes.Jörg Mayer1-1/+1
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
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