Commit Graph

43 Commits

Author SHA1 Message Date
Jeff Morriss a5cee04fad Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.

While doing that, rename the eth_* functions to ws_*.

svn path=/trunk/; revision=25354
2008-05-22 15:46:27 +00:00
Stephen Fisher bbf7ec011a Remove all GTK+ < 2.4 code and minimum version checks.
svn path=/trunk/; revision=25182
2008-04-27 07:01:58 +00:00
Ulf Lamping 15b3bb93df don't mark a used parameter as unused
svn path=/trunk/; revision=25054
2008-04-15 20:53:41 +00:00
Ulf Lamping 6a5b1e0ec0 use the ending "_win32" for every windows specific file
svn path=/trunk/; revision=24972
2008-04-13 12:14:57 +00:00
Ulf Lamping 0b97c4211e sort #includes by directories
svn path=/trunk/; revision=24967
2008-04-13 00:55:59 +00:00
Ulf Lamping b51da2eb77 rename menu -> main_menu
remove old (and unused and confusing) ../menu.h

svn path=/trunk/; revision=24947
2008-04-12 19:18:26 +00:00
Ulf Lamping 1dbdc34841 move drag_and_drop declarations into it's own file
svn path=/trunk/; revision=24927
2008-04-12 09:33:59 +00:00
Guy Harris 8c3d1dd9f1 Include "stock_icons.h" to get WIRESHARK_STOCK_DISPLAY_FILTER_ENTRY.
svn path=/trunk/; revision=24924
2008-04-12 02:28:21 +00:00
Ulf Lamping b4f3c5fd40 compat_macros.h is gone now!!!
all GTK1 compatibility code was removed, so this file can simply be dropped

svn path=/trunk/; revision=24923
2008-04-12 01:41:53 +00:00
Guy Harris 434e7709ed Wrap the callback function pointer for g_signal_connect() in
G_CALLBACK(), to suppress compiler warnings (that's what the old
SIGNAL_CONNECT macro did).

svn path=/trunk/; revision=24915
2008-04-11 23:00:34 +00:00
Ulf Lamping 9af9a0e619 first round to replace SIGNAL_CONNECT with g_signal_connect
This requires some casts to be added and I just don't want to add casts at all possible places. So I compile and only add casts where the (MSVC) compiler has a hard time. 

Unfortunately this won't find any problems in Linux/Unix only code - I'll keep an eye on the buildbot and try to fix things as I'm going on ...

svn path=/trunk/; revision=24912
2008-04-11 21:20:51 +00:00
Ulf Lamping c6d13dc2c8 replace WIDGET_SET_SIZE with gtk_widget_set_size_request
svn path=/trunk/; revision=24910
2008-04-11 20:31:05 +00:00
Ulf Lamping 1ab5a1ea4b replace RADIO_BUTTON_NEW_WITH_MNEMONIC with gtk_radio_button_new_with_mnemonic_from_widget
svn path=/trunk/; revision=24908
2008-04-11 19:26:22 +00:00
Ulf Lamping 4de04eae27 replace CHECK_BUTTON_NEW_WITH_MNEMONIC with gtk_check_button_new_with_mnemonic
svn path=/trunk/; revision=24905
2008-04-11 19:04:34 +00:00
Ulf Lamping ae5f841083 replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's gtk_button_new_from_stock
svn path=/trunk/; revision=24904
2008-04-11 18:58:19 +00:00
Bill Meier 0502078a1b OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24898
2008-04-11 17:14:11 +00:00
Ulf Lamping d470674329 some minor GTK1 related code fixes
svn path=/trunk/; revision=24873
2008-04-09 23:06:01 +00:00
Ulf Lamping 2db60e3b7e replace confusing #if checking for GTK2.4.0 (the GTK version when gtk_file_chooser was "invented") by #if GTK_CHECK_VERSION(2,4,0)
svn path=/trunk/; revision=24811
2008-04-06 22:36:23 +00:00
Ulf Lamping 6bd3a882ee remove GTK1 code
svn path=/trunk/; revision=24810
2008-04-06 22:25:36 +00:00
Gerald Combs 2f4830393c Add tooltips for the filter button and text entry in the open and merge
dialogs.

svn path=/trunk/; revision=24735
2008-03-27 17:26:59 +00:00
Stig Bjørlykke 57ab05545c Also destroy the window when failure to export/import color filters.
svn path=/trunk/; revision=24204
2008-01-26 17:04:49 +00:00
Stig Bjørlykke dce0761a4a Destroy the open window after open failure to avoid having an unusable
open dialog when using GTK >= 2.4.

This fixes bug 1986.

svn path=/trunk/; revision=24203
2008-01-26 16:50:08 +00:00
Stig Bjørlykke 9c8078686e Destroy the save window after canceling a save to an existing file, so
the user is able to save again without having a hidden save window which 
will not open.

Older GTK versions will show the hidden window after failure.

This fixes bug 1896.

svn path=/trunk/; revision=24202
2008-01-26 16:45:29 +00:00
Bill Meier 01ec87aee5 Revert SVN #23728 since change (to fix a Windows issue) is in code not used on Windows
and thus does not actually fix anything.
See Bug #2055 for further info.

svn path=/trunk/; revision=23809
2007-12-08 20:59:15 +00:00
Gerald Combs ed0bb11925 If we're using the native Windows file dialog, don't bother to see if the
file exists before we try to save it. The Windows file dialog code does that
for us.

svn path=/trunk/; revision=23728
2007-12-04 00:23:56 +00:00
Jeff Morriss dd0a4750b0 s/stat/eth_stat/ and s/unlink/eth_unlink/ to avoid non-ASCII filename problems on Windows.
svn path=/trunk/; revision=23605
2007-11-26 18:35:37 +00:00
Luis Ontanon d229a6a3c2 from Florent DROUIN:
I did load an k12 file (.rf5), and want to save the selected frames in a new file.
I got the error "Wireshark can't save this capture in that format"
I think this is due to this correction: http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=22214
I have got a patch to force the type of file to libpcap, only if no other format is available. It should solve both problems.


svn path=/trunk/; revision=22403
2007-07-25 21:30:51 +00:00
Stephen Fisher ce7d9544ce Fix a bug where you couldn't save individual packets from a file type that
Wireshark doesn't support writing to.  The default in the drop-down menu
was libpcap, but since gtk_option_menu_set_history() doesn't send the
activate signal we set up earlier, you would have to manually click on the
drop-down and reselect libpcap for it to work.  Now it works as expected.


svn path=/trunk/; revision=22214
2007-06-27 23:26:24 +00:00
Guy Harris 5a43799a17 Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLib
routines and routines using those routines.  GLib might use different
modifiers for 64-bit quantities than the platform's C library does.

svn path=/trunk/; revision=21990
2007-05-29 18:52:42 +00:00
Stephen Fisher dba14a4f17 Fix bug #1600: Merge feature from File menu does'nt do what it should
(append vs prepend)


svn path=/trunk/; revision=21807
2007-05-16 20:19:30 +00:00
Stephen Fisher 6625e7503f Fix warnings on Linux/gcc 4.1.1
svn path=/trunk/; revision=21330
2007-04-03 21:17:13 +00:00
Stephen Fisher 2267c19248 Fix various compiler warnings
svn path=/trunk/; revision=20522
2007-01-22 00:20:33 +00:00
Ulf Lamping 59d6c8ea33 change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.
Please distclean Win32 builds!

svn path=/trunk/; revision=19814
2006-11-05 22:46:44 +00:00
Ulf Lamping 9e063e0572 the whole ARGUMENT_CL mimic isn't required any longer - remove it. This should fix compile problems under Unix.
svn path=/trunk/; revision=19416
2006-10-03 20:01:39 +00:00
Ulf Lamping 9e6c7b11ae Implement a real "Cancel" button for the coloring rules dialog - this was a hard one! It seems to be working without bugs and as designed now.
As this was a huge internal change, new bugs are very probable - please report.

The implementation isn't still perfect, a new dialog internal list could possibly be removed again. 

However, I want to check in at this condition, just in case I make things worse - again.

svn path=/trunk/; revision=19413
2006-10-03 18:39:36 +00:00
Ulf Lamping 6cde05da1b missing mark -> select changes
svn path=/trunk/; revision=19400
2006-10-02 23:11:55 +00:00
Ulf Lamping ef9d7bc95f fix #927: Win32: delete an existing file, if the user want's to overwrite a file and confirmed this already
svn path=/trunk/; revision=19008
2006-08-23 21:19:02 +00:00
Anders Broman 05448fcc3d Ethereal->Wireshark
svn path=/trunk/; revision=18232
2006-05-28 17:19:08 +00:00
Guy Harris 92552c2d76 Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUI
strings, and function names.

svn path=/trunk/; revision=18205
2006-05-22 07:29:40 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Guy Harris 8e2807aa31 We use stuff from dlg_utils.h.
svn path=/trunk/; revision=18038
2006-04-30 03:19:59 +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
Guy Harris 0ce9a23b25 Most of the stuff in file_dlg.c is specific to capture files, so rename
it to capture_file_dlg.c, and rename its header file.  We might want to
move the generic file dialog stuff to a file_dlg.c file (it's currently
in dlg_utils.c), and move the non-capture-file dialog stuff in
capture_file_dlg.c to another file.

svn path=/trunk/; revision=18034
2006-04-29 23:03:57 +00:00