Commit Graph

54 Commits

Author SHA1 Message Date
Guy Harris 546e3f53ad We need <gdk/gdkkeysyms.h> to define GDK_VoidSymbol.
svn path=/trunk/; revision=18037
2006-04-30 03:19:11 +00:00
Guy Harris 84aef00bad Move the file selection dialog routines to file_dlg.c, and give it a
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-30 01:47:58 +00:00
Ulf Lamping c858e7e993 add a help button to the "Follow TCP Stream" dialog (and use standard button row for it too)
svn path=/trunk/; revision=17931
2006-04-20 19:58:50 +00:00
Ulf Lamping 81e9a70a96 enhance simple dialog: add the possibility to use no buttons at all and add 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-20 01:53:38 +00:00
Guy Harris 3766c03346 Don't handle the ETHEREAL_STOCK_CAPTURE_START button if we don't have
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-09-09 08:11:47 +00:00
Ulf Lamping eafbbbcabb renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical named ui_util.h in / dir
svn path=/trunk/; revision=15465
2005-08-20 12:09:48 +00:00
Jörg Mayer 4e1f4b18ab More char -> const char warning fixes.
Removed (very few) casts that only change the warning message
  but don't remove it (with gcc-4).

svn path=/trunk/; revision=15227
2005-08-05 20:59:08 +00:00
Ulf Lamping 9b5d52aab6 ask for unsaved file when using the new start capture feature,
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-04-19 21:02:01 +00:00
Luis Ontanon b8ba4f9180 From Martin Mathielson
- from the "Capture Options" dialog, if you select the Capture Filter(s)
file browser, Cancel doesn't work.


svn path=/trunk/; revision=13530
2005-02-27 13:00:22 +00:00
Guy Harris 2398487dc2 For file browsing dialog boxes, the affirmative button should be "OK",
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-30 02:02:35 +00:00
Guy Harris f23f4ecf04 Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is.

svn path=/trunk/; revision=11972
2004-09-11 23:03:36 +00:00
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
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-18 00:24:25 +00:00
Guy Harris fd262f1b97 From Daniel Thompson: add additional message/alert box options to
display "Save", "Continue without Saving", and "Cancel", for the "do you
want to save?" messages.

svn path=/trunk/; revision=11372
2004-07-13 07:15:45 +00:00
Ulf Lamping 657f57e62b bugfix to a bug reported by Ian Schorr:
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-12 20:01:41 +00:00
Ulf Lamping e987a57bc3 bugfix to a bug reported by Ian Schorr:
GTK2.4 open directory doesn't go into last opened dir
(this will affect all open file dialogs)

svn path=/trunk/; revision=11365
2004-07-12 18:39:03 +00:00
Ulf Lamping 13280b6e38 bugfix: is using last_open_dir with GTK2.4 file chooser
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-20 19:35:04 +00:00
Guy Harris dd2b4bd393 "gtk_file_selection_set_filename()" doesn't work with a GtkFileChooser,
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-03 21:17:06 +00:00
Ulf Lamping 14bf83c340 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11052
2004-06-01 17:33:37 +00:00
Ulf Lamping 7d37fc9d23 more code cleanup from dialog things:
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-26 03:49:24 +00:00
Ulf Lamping b131c02ba6 dlg_destroy_cb() is static
svn path=/trunk/; revision=10989
2004-05-24 17:41:26 +00:00
Guy Harris 0a535b3a60 Even with GTK+ 2.x the arguments to "dlg_destroy_cb()" aren't used.
svn path=/trunk/; revision=10988
2004-05-24 17:32:12 +00:00
Guy Harris a396513ad8 "dlg_destroy_cb()" doesn't use its arguments when built with GTK+
1.2[.x], so add _U_ in that case.

svn path=/trunk/; revision=10980
2004-05-24 01:58:06 +00:00
Ulf Lamping 01c236864a next step to save the size and postition of the dialogs (using a hashtable)
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-23 17:37:36 +00:00
Ulf Lamping d6eeb0936d going to have a standard behaviour of the dialogs
(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-22 19:56:19 +00:00
Ulf Lamping 65792fe9ae gtk_window_present() new dialog windows, to be sure they get on top
svn path=/trunk/; revision=10935
2004-05-21 00:25:04 +00:00
Guy Harris 6e014216a9 Tag unused parameters with _U_ to squelch GCC compiler warnings (they're
GTK+ callbacks so we don't get to change the calling sequence).

svn path=/trunk/; revision=10934
2004-05-21 00:18:46 +00:00
Ulf Lamping 49f0a67385 call gtk_window_present() only on GTK2 and above
svn path=/trunk/; revision=10926
2004-05-20 12:47:28 +00:00
Ulf Lamping 0082592429 workaround for GTK2 bug: bring main window back to front,
when a dialog is closed

svn path=/trunk/; revision=10921
2004-05-19 22:17:08 +00:00
Guy Harris 9348381d23 It *appears* that if you don't explicitly request that a file chooser
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-29 23:14:43 +00:00
Guy Harris e4544c4f87 In a "save" dialog, the "yes" button should be a "Save" button, not an
"Open" button.

svn path=/trunk/; revision=10513
2004-03-29 23:03:01 +00:00
Guy Harris f76d50c881 Add another wrapper routine, "file_selection_set_extra_widget()", to set
the "extra options" portion of a file selection dialog, and use it
rather than #if'ed code.

svn path=/trunk/; revision=10512
2004-03-29 22:55:13 +00:00
Guy Harris 29c644691b Make "file_selection_new()" take as its second argument an
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-29 22:40:58 +00:00
Olivier Abad cd19c5baf8 Use the new GtkFileChooserDialog when built with gtk+ 2.4
svn path=/trunk/; revision=10502
2004-03-27 11:16:58 +00:00
Guy Harris 36ece5a17a Add a "window_new()" routine that creates a window of a given type, sets
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-02-13 00:53:37 +00:00
Ulf Lamping d244cd82f5 cleanup of new "question dialogs",
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-31 12:13:23 +00:00
Ulf Lamping e66b849e23 added GTK_STOCK_YES and GTK_STOCK_NO to the dlg_button_row
svn path=/trunk/; revision=9906
2004-01-29 22:37:45 +00:00
Ulf Lamping 34bddb3c1a adding a function to the help dialog, showing a specific topic (context help),
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-25 21:27:16 +00:00
Guy Harris 89e496d1ab Fix a typo.
svn path=/trunk/; revision=9781
2004-01-22 20:33:21 +00:00
Ulf Lamping 8e2a930023 implemented dlg_button_row_new to get a standard function for
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-21 21:19:34 +00:00
Ulf Lamping bba39ed952 save dialog with "Captured" and "Displayed" buttons in packet range
svn path=/trunk/; revision=9580
2004-01-07 00:10:52 +00:00
Guy Harris 6a91088ed0 Put in a comment about some issues with the way we do "Update list of
packets in real time" captures.

svn path=/trunk/; revision=9269
2003-12-13 03:36:17 +00:00
Gerald Combs 9ed6beff38 In "dlg_window_new()" check to see if "top_level" has been initialized,
as is the case for the spawned capture process.

svn path=/trunk/; revision=9245
2003-12-12 02:50:04 +00:00
Guy Harris d0d3f842bb Add a "file_selection_new()" routine that does all the positioning (GTK+
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-24 08:43:34 +00:00
Guy Harris d532ea7b17 From Giles Scott:
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
2003-09-20 04:59:43 +00:00
Olivier Abad b48fd02f40 Use gtk1/gtk2 compatibility macros to reduce #ifdefs.
svn path=/trunk/; revision=6600
2002-11-10 11:00:29 +00:00
Olivier Abad 05ef1fc475 Merge gtk and gtk2 directories.
svn path=/trunk/; revision=6552
2002-11-03 17:38:45 +00:00
Jörg Mayer 7c4176d868 Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.

svn path=/trunk/; revision=6117
2002-08-28 21:04:11 +00:00
Guy Harris 5fe414c555 From Joerg Mayer: use _U_ to flag unused arguments.
svn path=/trunk/; revision=4878
2002-03-05 11:56:00 +00:00
Gerald Combs 7e092f2dd8 Go nuts with the 3D logo.
Add a routine to ui_util.c that sets a window's icon pixmap to a 16x16
version of the 3D logo.  Call the routine for each window that is created.
This has been tested with kwm and Sawfish (which expect a 16x16 icon), but
we may have to come up with a better solution for other window managers
(e.g. olwm and mwm).

Add a 3D exclamation point image.  Replace the exclamation point and
Ethereal logo images used in simple_dialog() with their 3D counterparts.

Remove the old icons from the source distribution.

svn path=/trunk/; revision=4390
2001-12-12 21:39:01 +00:00
Guy Harris 56697db466 Bleah. What was I thinking? "dlg_window_new()" should take the title
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-23 06:56:31 +00:00