Commit Graph

47 Commits

Author SHA1 Message Date
Stig Bjørlykke cfde6d67df Fix a small memory leak.
svn path=/trunk/; revision=28401
2009-05-18 21:48:48 +00:00
Bill Meier e88bdea0bb gtk_check_menu_item_set_show_toggle() is deprecated and not needed.
[show_toggle is always TRUE].

svn path=/trunk/; revision=28292
2009-05-07 14:35:02 +00:00
Stig Bjørlykke 6e0dc25aa9 From Didier Gautheron (bug 3126):
Update expert info icon on redissect.

svn path=/trunk/; revision=28269
2009-05-04 21:13:14 +00:00
Stig Bjørlykke 0d40f4c4ee From Artem Tamazov (bug 3436):
Initialize some pointers.

svn path=/trunk/; revision=28147
2009-04-24 16:51:38 +00:00
Guy Harris 54c159cb41 Turn on -Wshorten-64-to-32 by default, and fix some issues that turned
up (99 44/100% of which were assignments of double-precision
floating-point constants to floats).  Hopefully this will catch at least
some P64 issues on UN*X.

svn path=/trunk/; revision=28108
2009-04-21 16:57:52 +00:00
Bill Meier b6366d45f3 gtk_label_get() --> gtk_label_get_text() with related code changes;
Also: Fix indentation to be consistent.

svn path=/trunk/; revision=28034
2009-04-11 18:03:11 +00:00
Sake Blok ff65240906 Add some more "copy" functionality:
- Enabled "Copy Description" in the main menu and gave it
  accelerator key CTRL+SHIFT+D

- Added "Copy Fieldname" to copy the fieldname of the selected
  field in the detail view (Acc.Key: CTRL+SHIFT+F)

- Added "Copy Value" to copy the value of the selected
  field in the detail view (Acc.Key: CTRL+SHIFT+V)

- Updated documentation to reflect the changes



svn path=/trunk/; revision=28006
2009-04-08 18:32:11 +00:00
Stig Bjørlykke 62f60df6b4 From Jakub Zawadzki (bug 3331):
g_free() is NULL safe, so we don't need check against it.

svn path=/trunk/; revision=27718
2009-03-13 22:06:48 +00:00
Stig Bjørlykke f586fd5a93 Implemented edit dialogs for integer, string and range values in
the submenu containing the preferences for the protocol.

svn path=/trunk/; revision=27653
2009-03-08 13:19:49 +00:00
Anders Broman aa3b687793 gtk_menu_append is deprecated and should not be used in newly-written code. Use gtk_menu_shell_append().
svn path=/trunk/; revision=27558
2009-02-26 21:41:07 +00:00
Stig Bjørlykke 137933aa5b Use gtk_radio_menu_item for enum preferences menu.
This fixes bug 3206.

svn path=/trunk/; revision=27519
2009-02-23 14:24:44 +00:00
Ulf Lamping bfce5dac33 <control>1-6 is already used by colorizing, <shift><control>1-6 doesn't work for whatever reason, so use <alt><control>1-6
svn path=/trunk/; revision=27418
2009-02-11 01:14:21 +00:00
Ulf Lamping 3769308172 try improve the "Time Display Format" submenu by sorting the items by "display length"
add/change accelerator keys:
"Time Display Format" <control>1 - <control>6
"Resize All Columns" <shift><control>R
"First Packet" Home
"Last Packet" End
"Interfaces" <control>I
"Start" <control>E
"Restart" <control>R
"Enabled Protocols" <shift><control>R -> <shift><control>E

svn path=/trunk/; revision=27411
2009-02-10 21:22:24 +00:00
Jaap Keuter acdf91e263 Make "Copy as Filter" on the packet list actually work.
Up till now every packet in the packet list got a copy of the pointer to the filter expressions for
the last packets' columns. Hence any 'Copy as Filter" on a column got the expression of the last
packet in the packet list. Instead every packet needs to get a pointer to the filter expressions 
for its own columns. This requires making a copy of the filter expressions themselves.

Since this is a bug in 1.0 as well the GLIB1 code is provided for backporting, which can later be dropped from the development tree.

svn path=/trunk/; revision=27396
2009-02-09 07:10:46 +00:00
Guy Harris 82b8d25678 Move declarations of routines in gtk/capture_if_dlg.c into
gtk/capture_if_dlg.h.  Include that header when appropriate.

Get rid of include of <sys/wait.h> in gtk/capture_if_dlg.c; there's no
forking or waiting in there.

Make update_if() in gtk/capture_if_dlg.c static - it's not used outside
that file.

svn path=/trunk/; revision=27347
2009-02-01 23:14:07 +00:00
Guy Harris faa534529c To avoid adding icons to menu items, leave item_type along, not just
entry_data; otherwise, you get a bunch of run-time warnings from GTK+. 
Remove the line that sets extra_data, rather than commenting it out with
a C++ comment.

svn path=/trunk/; revision=27339
2009-02-01 02:59:28 +00:00
Ulf Lamping 9e846eaad2 do not show the telephony icon in any of the telephony menu entries
svn path=/trunk/; revision=27334
2009-01-30 22:48:56 +00:00
Ulf Lamping 5375b5f476 add a new "Telephony" main menu entry and move the telephony specific statistics stuff over there
svn path=/trunk/; revision=27326
2009-01-29 01:38:08 +00:00
Gerald Combs cc5357bee8 Add a comment about possible Windows 7 support.
svn path=/trunk/; revision=27288
2009-01-22 21:26:54 +00:00
Stig Bjørlykke 8e568cd895 Save preferences when selected from menu, unless having enabled the save button.
Added a preferences icon to the menu.

svn path=/trunk/; revision=26872
2008-11-28 21:22:25 +00:00
Stig Bjørlykke 1e79b967de Improved the Protocol Preferences entry in the tree view popup menu
with a submenu containing all preferences for the protocol.  

Implemented directly change for bool, enum and UAT popup.
Integer, string and range TBD.

svn path=/trunk/; revision=26856
2008-11-26 23:28:06 +00:00
Stig Bjørlykke f0b45897ff Do not popup an empty menu in the Packet Bytes pane.
svn path=/trunk/; revision=26807
2008-11-18 16:39:49 +00:00
Stephen Fisher b8b74f901d Add About, Preferences and a working Quit option to the OS X application menu
when ige mac integration is used.


svn path=/trunk/; revision=26569
2008-10-27 04:40:54 +00:00
Stephen Fisher 1fa606decf More updates to the IGE Mac OS X integration feature:
- Adds preference "MacOS X style" to the (G)UI preferences pane
 - When the preference above is enabled, the menu bar is moved from
   the Wireshark window to the top of the screen.  It is no longer displayed
   in both places at once.  This preference defaults to on.
 - Calls function to enable shortcut keys for OS X top of screen menus.
 - NOTE: The IGE Mac Integration functions change the Control key to Command
         key in the menus.  This may or may not be desirable.


svn path=/trunk/; revision=26565
2008-10-26 23:07:37 +00:00
Stig Bjørlykke 3a14d073c0 Correct the include for ige-mac-menu.h
svn path=/trunk/; revision=26564
2008-10-26 22:33:43 +00:00
Stephen Fisher 812ecb21c3 Tweak Mac IGE integration detection so that it can find the functions not
only in the Gtk+ OS X framework, but also in the separate igemacintegration
library.  Also add call to ite_mac_menu_set_menu_bar() to synchronize the
OS X menu bar with the Gtk menu bar in Wireshark.  The Gtk menu bar in
Wireshark will remain there.


svn path=/trunk/; revision=26560
2008-10-26 20:09:54 +00:00
Jaap Keuter be90b5571c Clean up conversation filter code.
Make it work in the intended cases and add IPv6 support.

svn path=/trunk/; revision=26461
2008-10-15 07:43:24 +00:00
Jaap Keuter 0367cd7768 Fix for bug 2964.
When right click on any packet (From Packet List) - > "Export Selected Packet Bytes" you 
get "No data selected to save!" MessageBox. This option should not be in this menu at all.

svn path=/trunk/; revision=26458
2008-10-14 20:04:06 +00:00
Anders Broman 8db1e7a8b2 From David Aggeler:
Follow-up from SVN 25825 check in

The g_slist_free() is really needed in export_object.c, otherwise, the export
list has false (repetitive) entries in it, that cause a crash when selecting
them.

Whether false entries are in the list, only depends on the speed of the export
processing, since this tap is 

Replaced all guchar with gchar. This should eliminate the warnings on solaris. 
I guess I used the wrong reference.

Added patch for 'Authors' in case I need to add myself to the list.

svn path=/trunk/; revision=25834
2008-07-25 22:58:05 +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
Sake Blok be8956d104 Add accelerator keys for (un)mark all packets
svn path=/trunk/; revision=25630
2008-06-29 09:01:12 +00:00
Sake Blok 9fe2206771 From Kovarththanan Rajaratnam (bug 2652):
Add accelerator keys for Find Next/Previous Reference


svn path=/trunk/; revision=25629
2008-06-29 08:36:24 +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
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 da44c1d084 bugs happen, if you're trying to do two things at once ;-)
svn path=/trunk/; revision=25122
2008-04-19 22:50:14 +00:00
Ulf Lamping be2ddd2fd5 HAVE_LUA_5_1 is no longer required for the Tools menu
svn path=/trunk/; revision=25121
2008-04-19 19:40:05 +00:00
Ulf Lamping 85e14ceb86 rename REGISTER_xxx_GROUP_NONE to REGISTER_xxx_GROUP_UNSORTED, as NONE seems a bit misleading
svn path=/trunk/; revision=25086
2008-04-17 02:16:39 +00:00
Ulf Lamping 5a8e585962 further work on the yet to come welcome page ...
svn path=/trunk/; revision=25057
2008-04-15 22:46:35 +00:00
Ulf Lamping bfa3cad089 try to improve the help menu
svn path=/trunk/; revision=25034
2008-04-15 02:06:38 +00:00
Michael Tüxen bf8f1e2faa #ifdef HAVE_LUA_5_1 the handling of REGISTER_TOOLS_GROUP_NONE
svn path=/trunk/; revision=25011
2008-04-14 01:51:15 +00:00
Ulf Lamping 6de61b65f3 as the "Firewall ACL rules" perfectly fits into a tools menu, and together with the optional lua we have two and as it slightly simplifies the code, make the
Tools

toplevel menu item "permanent".

svn path=/trunk/; revision=25007
2008-04-14 00:10:18 +00:00
Ulf Lamping 5f96c98776 add the (optional) possibility to register a stock icon for a stats menu entry
svn path=/trunk/; revision=25005
2008-04-13 23:55:32 +00:00
Ulf Lamping 0b97c4211e sort #includes by directories
svn path=/trunk/; revision=24967
2008-04-13 00:55:59 +00:00
Guy Harris 94bcd2fbbd Clean up indentation.
svn path=/trunk/; revision=24957
2008-04-12 21:28:49 +00:00
Ulf Lamping e3a9b675d1 proto_draw -> main_proto_draw
svn path=/trunk/; revision=24954
2008-04-12 20:11:12 +00:00
Ulf Lamping c05af9057b rename packet_list to main_packet_list
svn path=/trunk/; revision=24950
2008-04-12 19:38:29 +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