Commit graph

26 commits

Author SHA1 Message Date
Bill Meier
2b0f6a63f1 Define some fcns & vars as static;
Rename g_capture_in_progress to gbl_capture_in_progress (capture_if_dlg.c)
Do some whitespace cleanup.

svn path=/trunk/; revision=34490
2010-10-12 17:39:44 +00:00
Bill Meier
ae40c9021c GtkOPtionMenu ==> GtkComboBox: V2: use ws_combo_box_new_text_and_pointer & etc
svn path=/trunk/; revision=31948
2010-02-22 18:43:36 +00:00
Guy Harris
fba3da4f99 Fix compilation with pre-2.6 GTK+.
svn path=/trunk/; revision=31920
2010-02-19 01:51:27 +00:00
Bill Meier
21f1d8e49a GtkOPtionMenu ==> GtkComboBox;
Also:
 - Remove some unneeded #includes;
 - It's now OK to use gtk_text_buffer_select_range() since GTK .ge. 2.4 is now required;
   (This reverts SVN #18750). 

svn path=/trunk/; revision=31917
2010-02-18 22:04:50 +00:00
Bill Meier
b59f0c913f #if 0 some unused code; Fix some indenttion.
svn path=/trunk/; revision=31907
2010-02-17 20:53:29 +00:00
Stig Bjørlykke
005049bebb Changed hf_ip_proto to use ipproto_val[].
Removed some unneeded includes.

svn path=/trunk/; revision=31017
2009-11-19 15:30:06 +00:00
Bill Meier
159f6ec4c1 io_stat save & filewall rule save: rework "save dialog" slightly:
- Prevent "dead" save-as window if error opening/writing file
        or if a directory is entered as the filename;
        Work-around is to always kill save-as window whether success
         or an error causing alert-box popup;
     - Enable "check for file overwrite" (if GTK 2.8 or greater);
     - Fix some memory leaks.

svn path=/trunk/; revision=28608
2009-06-02 19:16:08 +00:00
Gerald Combs
9c9db36825 size_t fixes.
svn path=/trunk/; revision=28059
2009-04-15 21:35:51 +00:00
Bill Meier
56206e0002 Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_container_border_width()          ==> gtk_container_set_border_width()
  gtk_container_children()              ==> gtk_container_get_children()
  gtk_entry_new_with_max_length()       ==> gtk_entry_new(); gtk_entry_set_max_length()
  gtk_menu_append()                     ==> gtk_menu_shell_append()
  gtk_menu_prepend()                    ==> gtk_menu_shell_prepend()
  gtk_notebook_set_page()               ==> gtk_notebook_set_current_page()
  gtk_paned_gutter_size()               ==> gtk_paned_set_gutter_size()
  gtk_radio_button_group()              ==> gtk_radio_button_get_group()
  gtk_signal_connect()                  ==> g_signal_connect()
  gtk_signal_disconnect()               ==> g_signal_handler_disconnect()
  gtk_signal_emit_by_name()             ==> g_signal_emit_by_name()
  gtk_signal_handler_block_by_data()    ==> g_signal_handlers_block_matched()
  gtk_signal_handler_block_by_func()    ==> g_signal_handlers_block_by_func()
  gtk_signal_handler_unblock_by_data()  ==> g_signal-handlers_unblock_matched()
  gtk_signal_handler_unblock_by_func()  ==> g_signal-handlers_unblock_by_func()
  gtk_spin_button_get_value_as_float()  ==> gtk_spin_button_get_value()
  gtk_toggle_button_set_state()         ==> gtk_toggle_button_set_active()

svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Stig Bjørlykke
860028c634 Removed the usage of topic_available() as we now have all topics.
svn path=/trunk/; revision=25505
2008-06-21 13:36:31 +00:00
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
Anders Broman
b6454e76ac Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25244
2008-05-06 05:50:31 +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
2e125b32e2 use the standard dialog button mechanism for the firewall dialog
svn path=/trunk/; revision=25061
2008-04-16 00:10:47 +00:00
Ulf Lamping
8e3e8b588f sort #includes by directories
svn path=/trunk/; revision=24968
2008-04-13 01:54:20 +00:00
Ulf Lamping
d4ccf577a8 where it's not necessary, remove #include "compat_macros.h"
svn path=/trunk/; revision=24922
2008-04-12 01:02:59 +00:00
Ulf Lamping
736cada149 third round to replace SIGNAL_CONNECT with g_signal_connect
svn path=/trunk/; revision=24914
2008-04-11 22:10:36 +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
74e1c12021 OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24895
2008-04-11 16:44:31 +00:00
Ulf Lamping
006e02358a 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=24819
2008-04-06 23:37:52 +00:00
Ulf Lamping
63307ccc99 remove GTK1 code
svn path=/trunk/; revision=24818
2008-04-06 23:36:29 +00:00
Stephen Fisher
2267c19248 Fix various compiler warnings
svn path=/trunk/; revision=20522
2007-01-22 00:20:33 +00:00
Guy Harris
96b7baf4cf Get rid of aun unused routine.
svn path=/trunk/; revision=19040
2006-08-26 00:08:51 +00:00
Gerald Combs
147ac8b094 gtk_text_buffer_select_range() was introduced in GTK+ 2.4, so don't use it.
Set our selection range manually.

svn path=/trunk/; revision=18750
2006-07-17 17:23:01 +00:00
Gerald Combs
786666ea4c Fix compilation problems for Windows and GTK1.
svn path=/trunk/; revision=18741
2006-07-15 14:17:42 +00:00
Gerald Combs
f53bb927fc Add support for generating firewall ACL rules. MAC, IPv4, port, and
IPv4+port rules are supported along with several syntaxes: IOS standard,
IOS extended, ipfilter, ipfw, pf, and netsh.  IPv6 is currently not
supported, but shouldn't be too difficult to add.

All of the rules were created using the documentation for each product.
None of them have been tested.  For the time being, use them with
caution.

svn path=/trunk/; revision=18737
2006-07-14 20:14:39 +00:00