Commit Graph

212 Commits

Author SHA1 Message Date
Jörg Mayer 420acb2fba We now always build with MAIN_MENU_USE_UIMANAGER, so remove all code using
the old ways except the proto_help.c file, which is kept for now in case someone
is willing to reimplement the help menus using non-deprecated methods.

svn path=/trunk/; revision=39137
2011-09-25 21:19:45 +00:00
Jörg Mayer 97548261df Fix build in the non gtk3 case: Add gpointer data to the
parameter list.
Remove some trailing spaces.

svn path=/trunk/; revision=38688
2011-08-23 14:13:34 +00:00
Anders Broman 637490272d Make colors work on GTK3
svn path=/trunk/; revision=38687
2011-08-23 13:49:37 +00:00
Anders Broman 47ef461007 Add a few more menu items.
svn path=/trunk/; revision=38620
2011-08-19 13:38:03 +00:00
Anders Broman d4951b8e7e GTK 3.0 "Comment out" GTK 2 code for now. Functionality needs to be restored on GTK 3.
svn path=/trunk/; revision=38614
2011-08-19 04:36:40 +00:00
Stephen Fisher beebce0a29 Back out previous commit (38612) which was the brutal patch to build with
GTK 3 because not all of it is contained within #if statements for GTK 3
builds and could affect GTK 2 builds as well.


svn path=/trunk/; revision=38613
2011-08-19 00:01:11 +00:00
Stephen Fisher 3852c508f9 From Anders on -dev:
Brutal patch to build with GTK 3.0 

With the enclosed patch Wireshark builds on GTK3.0. Colors are messed up etc but
it should be possible to start to fix things and actually see what's happening.
I wouldn't be surprised if many patches leading up to this are faulty. Color
handling should probably be rewritten to use GdkRGBA in many places etc.

  http://www.wireshark.org/lists/wireshark-dev/201108/msg00383.html 


svn path=/trunk/; revision=38612
2011-08-18 23:55:01 +00:00
Anders Broman 1aa1fa8132 Save graph GTK =< 2.22
svn path=/trunk/; revision=38543
2011-08-15 05:36:48 +00:00
Anders Broman 91861a302e - Use cairo_surface_t
- rename variables refering to the surface.

svn path=/trunk/; revision=38497
2011-08-12 13:30:10 +00:00
Bill Meier 88362a35aa Test fwrite() return values to see if a write error.
Fixes Bug #6227.

svn path=/trunk/; revision=38440
2011-08-10 02:01:49 +00:00
Bill Meier 1fe6e2b19b Remove duplicate line-of-code.
svn path=/trunk/; revision=38439
2011-08-09 23:45:54 +00:00
Anders Broman 210c311209 Don't include color.h
svn path=/trunk/; revision=38402
2011-08-08 08:55:42 +00:00
Anders Broman 7dcd23257d Get rid of gdk_draw_layout().
svn path=/trunk/; revision=38325
2011-08-03 18:49:35 +00:00
Jörg Mayer 68845aa779 Replace access to ...->allocation by gtk_widget_get_allocation +
using the return val - part 1
Maybe the call needs to be done more often.

Replace GTK_WIDGET_STATE by gtk_widget_get_state

svn path=/trunk/; revision=38215
2011-07-26 19:01:01 +00:00
Anders Broman 16ded15311 Code cleanup.
svn path=/trunk/; revision=38207
2011-07-26 05:35:19 +00:00
Anders Broman 9f4431cdc5 Use Cairo for drawing.
svn path=/trunk/; revision=38201
2011-07-25 15:54:57 +00:00
Anders Broman 5552e61f6c Replace deprecated functions.
svn path=/trunk/; revision=38187
2011-07-24 18:03:53 +00:00
Jörg Mayer bb7650f70d Fix almost all accesses to ->window
svn path=/trunk/; revision=38151
2011-07-21 20:12:08 +00:00
Jörg Mayer 369929c2f6 Create a file containing macros to provide the access-functions
when the gtk version is too old (for the 2,14,0 case).

Remove all old access methods that were guarded by 2,14,0 tests.

Feel free to do the same for newer guards :-)

svn path=/trunk/; revision=38147
2011-07-21 17:44:02 +00:00
Jörg Mayer 99e0c43d35 Replace references to style by gtk_widget_get_style (according to
http://developer.gnome.org/gtk/2.24/GtkWidget.html#gtk-widget-get-style
this doesn't require a minimum version)

svn path=/trunk/; revision=38139
2011-07-21 00:16:05 +00:00
Jörg Mayer 1bf94efa12 Get rid of direct access to struct GtkToggleButton
svn path=/trunk/; revision=38113
2011-07-19 16:02:16 +00:00
Jörg Mayer 9166443e3c Get rid of all GtkAdjustment element accesses. Fix a bug
introduced when fixing this stuff for rtp_player.c

svn path=/trunk/; revision=38111
2011-07-19 14:33:50 +00:00
Anders Broman 6814cd03ee Replace deprecated gdk_pixmap_unref() with g_object_unref().
Update checkAPIs.

svn path=/trunk/; revision=38013
2011-07-14 08:11:16 +00:00
Jörg Mayer 11f131b303 Fix some compiler errors with -DGTK_DISABLE_DEPRECATED
svn path=/trunk/; revision=38006
2011-07-14 00:04:37 +00:00
Anders Broman cb98a2b2c2 Fix more tooltips fixes.
svn path=/trunk/; revision=37996
2011-07-13 08:48:13 +00:00
Gerald Combs f6d7f90c72 Remove a lot of instances of GTK_CHECK_VERSION. Clean up whitespace in a
couple of places.

svn path=/trunk/; revision=37969
2011-07-11 18:08:08 +00:00
Bill Meier 16fabcc02c Log:
Fix incorrect usage of gtk_radio_button_new_with_label()/gtk_radio_button_get_group();
 Use gtk_radio_button_new_with_label_from_widget().

 Essentially: gtk_radio_button_get_group() must be called after each gtk_radio_button_new...()
 before using the 'group' GSList pointer in another call to gtk_radio_button_new...().

 In these cases the incorrect usage appears to only have resulted in allowing multiple
 radio buttons to be activated simultaneously.

 (In at least one case elsewhere, the incorrect usage resulted in a Wireshark crash).


svn path=/trunk/; revision=37871
2011-07-02 21:36:25 +00:00
Bill Meier 54105fbc42 Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;
Also: do some whitespace cleanup.

svn path=/trunk/; revision=37602
2011-06-07 22:59:19 +00:00
Guy Harris 8f53a5655c Make some routines static that aren't used outside the source file in
which they're defined.

Include some header files that declare functions in the source files
that define the functions.

Declare packet_list_get_type() in gtk/packet_list_store.h, as it defines
a macro that uses that function.

svn path=/trunk/; revision=37223
2011-05-17 23:33:23 +00:00
Anders Broman bd8c36d4a3 Coverity UNUSED_VALUE
CID 1142,1143,1147

svn path=/trunk/; revision=36683
2011-04-17 18:00:14 +00:00
Jaap Keuter 015cd4a18d From Marc Giertzsch:
Dialog RTP Graph analysis is not showing forward and reverse delta.

svn path=/trunk/; revision=35235
2010-12-21 08:07:24 +00:00
Chris Maynard 1e2ae5a88a Quote all fields when exporting to CSV. Fixes bug 2811.
svn path=/trunk/; revision=34920
2010-11-17 03:29:12 +00:00
Jeff Morriss b4c2ed1b86 Remove some unnecessary includes: a lot of things don't need globals.h and register.h
svn path=/trunk/; revision=34017
2010-08-30 16:10:01 +00:00
Bill Meier dac7978557 Minor cleanup of rtp graph:
- Display current value in combo boxes (pixels_per_tick, etc) to always
   match actual values being used to create graph;
 - yscale combo box entries: 
    show values >= 1 sec as sec (not s000 ms);
 - Determine max yscale label width properly as the largest of the
   top or middle label lengths;
 - Cleanup some indentation.

svn path=/trunk/; revision=33855
2010-08-19 22:04:37 +00:00
Guy Harris 2a328da4ef Instead of using a Boolean for the search direction, use an enum, so
that you can tell from examination whether the search is forward or
backward.

Make the cf_find_packet routines take the direction as an explicit
argument, rather than, in the cases where you don't want to permanently
set the direction, saving the direction in the capture_file structure,
changing it, doing the search, and restoring the saved direction.  Give
more information in the Doxygen comments for those routines.

Add a cf_find_packet_dfilter_string() routine, which takes a filter
string rather than a compiled filter as an argument.  Replace
find_previous_next_frame_with_filter() with it.

Have cf_read_frame_r() and cf_read_frame() pop up the error dialog if
the read fails, rather than leaving that up to its caller.  That lets us
eliminate cf_read_error_message(), by swallowing its code into
cf_read_frame_r().  Add Doxygen comments for cf_read_frame_r() and
cf_read_frame().

Don't have find_packet() read the packet before calling the callback
routine; leave that up to the callback routine.

Add cf_find_packet_marked(), to find the next or previous marked packet,
and cf_find_packet_time_reference(), to find the next or previous time
reference packet.  Those routines do *not* need to read the packet data
to see if it matches; that lets them run much faster.

Clean up indentation.

svn path=/trunk/; revision=33791
2010-08-13 07:39:46 +00:00
Bill Meier 99c52f1c94 (Trivial): Whitespace cleanup.
svn path=/trunk/; revision=33618
2010-07-22 20:53:24 +00:00
Gerald Combs 96558700c1 UTF-8-ize a bunch more arrows. If IE6 on XP can render them then they
*must* be safe to use, right?

svn path=/trunk/; revision=33326
2010-06-25 22:09:34 +00:00
Anders Broman 65ee4e797a From Jakub Zawadzki:
New functions: cf_read_frame_r, cf_read_frame

It's much easier to write:
 cf_read_frame (cf, fdata, &err, &err_info)
Than:
 wtap_seek_read (cf->wth, fdata->file_off, &cf->pseudo_header, cf->pd,
fdata->cap_len, &err, &err_info)

svn path=/trunk/; revision=32980
2010-05-26 19:11:23 +00:00
Bill Meier 7397bb0a74 Fix various gcc -Wshadow warnings.
svn path=/trunk/; revision=31737
2010-01-29 23:17:32 +00:00
Jaap Keuter ac7dd7b085 Add save option to RTP graph window.
svn path=/trunk/; revision=31363
2009-12-24 21:28:38 +00:00
Anders Broman 17bce3616b From Andreas Heise:
Fix different duration format beteen directions.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4327

svn path=/trunk/; revision=31254
2009-12-13 10:05:35 +00:00
Jaap Keuter fc5cc7a7fb Fix for bug 3801:
Following r28546 and r30953 this adjusts the timescale in the RTP Graph Analysis, restoring its operation.

svn path=/trunk/; revision=31240
2009-12-11 08:53:19 +00:00
Anders Broman 141e1fb3b3 From Andreas Heise:
fix missing display of max skew in reversed d.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4320

svn path=/trunk/; revision=31235
2009-12-11 06:44:47 +00:00
Anders Broman b16fab6435 From Alejandro Vaquero:
Add RTP player to "RTP Stream Analysis" and makeover of VoIP flow
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4240

svn path=/trunk/; revision=30967
2009-11-15 20:13:08 +00:00
Jaap Keuter 943bd2c32d Fix for bug 4120:
Calculate amount of silence samples in samples/ms i.s.o. samples/s

svn path=/trunk/; revision=30953
2009-11-13 19:51:51 +00:00
Anders Broman 9d45f50695 Option_menu -> combo_box
svn path=/trunk/; revision=30543
2009-10-12 15:27:37 +00:00
Anders Broman 4bd41da307 Remove code guarded by #ifdef USE_CONVERSATION_GRAPH
as this eems to newer have been fully implemented and the old clist is replaced now.

svn path=/trunk/; revision=30425
2009-10-09 09:56:16 +00:00
Bill Meier 1bc9f19f05 Add #include <stdio.h> in a few more places for Solaris.
svn path=/trunk/; revision=29577
2009-08-27 03:54:57 +00:00
Kovarththanan Rajaratnam 27f7d88c84 Also fake empty field_info's by gracefully handling NULL field_info pointer elsewhere.
svn path=/trunk/; revision=29490
2009-08-21 11:03:30 +00:00
Kovarththanan Rajaratnam 80a6d3fbcf Introduce epan_dissect_init()/epan_dissect_cleanup(). These are used to initialise/cleanup stack allocated 'edt' structures. This should speed up dissection since we avoid some malloc traffic.
svn path=/trunk/; revision=29404
2009-08-13 19:42:46 +00:00