Jörg Mayer
4a2f14ed6e
Fix the remaining places that GDK_DISABLE_DEPRECATED complained about
...
(mostly just comment in already present code).
svn path=/trunk/; revision=38645
2011-08-21 16:07:41 +00:00
Jörg Mayer
5d5c6a2fb0
Somehow I forgot to commit the patch to disable GDK_DISABLE_DEPRECATED
...
for these files.
svn path=/trunk/; revision=38639
2011-08-21 13:03:44 +00:00
Anders Broman
5e415e85e6
Draw the cursor line using ccairo
...
svn path=/trunk/; revision=38602
2011-08-18 13:43:59 +00:00
Jörg Mayer
223c248f07
Replace 2.x only gtk_statusbar_set_has_resize_grip by 3.x only
...
gtk_window_set_has_resize_grip
svn path=/trunk/; revision=38503
2011-08-12 20:02:19 +00:00
Jörg Mayer
3a19feec7b
Replace almost all occurances of GTK_OBJECT by G_OBJECT.
...
The remaining uses are inside calls to functions that are deprecated
in gtk3.
svn path=/trunk/; revision=38499
2011-08-12 17:26:20 +00:00
Anders Broman
d2e7e72794
Free the PangoLayout.
...
svn path=/trunk/; revision=38346
2011-08-05 05:13:42 +00:00
Jörg Mayer
5c064e144a
Replace almost all uses of GtkObject (which no longer exists
...
in GTK3) by GObject (which does).
These were the trivial cases, the two remaining uses in packet_win.c
are left for someone who understands the code.
svn path=/trunk/; revision=38344
2011-08-04 22:56:36 +00:00
Anders Broman
2c6babb113
- Get rid of some deprecated functions.
...
svn path=/trunk/; revision=38334
2011-08-04 14:41:45 +00:00
Jörg Mayer
a05b6c6efe
Part 2 of the cleanup. fix some compile errors in previous patch.
...
svn path=/trunk/; revision=38217
2011-07-26 19:44:06 +00:00
Jörg Mayer
9e2bf4b749
Remove some more GTK_WIDGET_STATE
...
svn path=/trunk/; revision=38216
2011-07-26 19:24:19 +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
Jörg Mayer
4a06b078b6
Fix some errors when compiling with -DGSEAL_ENABLE.
...
svn path=/trunk/; revision=38108
2011-07-19 11:02:26 +00:00
Bill Meier
43806aff9d
Fix a crash when doing Telephony ! RTP ! Stream Analysis with capture files with truncated frames.
...
(That is: the capture files were created with a snapshot length less than the maximum).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6120
svn path=/trunk/; revision=38023
2011-07-14 19:51:53 +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
Bill Meier
d75988bacc
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;
...
Also: whitespace cleanup in some cases.
svn path=/trunk/; revision=37601
2011-06-07 22:50:49 +00:00
Stig Bjørlykke
c479a32028
Mark an unused argument.
...
svn path=/trunk/; revision=37163
2011-05-15 17:54:33 +00:00
Bill Meier
da1fcc2347
Use correct signature for event callback functions;
...
Use event callback function user_data arg instead of using a property;
Replace an 'if(...) {... exit(10);}' by a g_assert;
Remove several unneeded 'if(...) {... exit(10);}' groups of code;
Do whitespace cleanuip.
svn path=/trunk/; revision=37159
2011-05-15 16:51:21 +00:00
Jeff Morriss
f96589758a
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5902 :
...
Increase the maximum number of silence frames insert from 1000 to 240,000.
svn path=/trunk/; revision=37130
2011-05-13 19:02:55 +00:00
Stephen Fisher
a6caff484f
Fix Windows build, which complained about possible loss of data converting
...
from a double to a time_t. I removed nstime_to_secs() and grab the
seconds portion of the nstime (which is a time_t), since that's all the
precision needed in the code right now anyway.
svn path=/trunk/; revision=35293
2010-12-29 00:29:05 +00:00
Stephen Fisher
fb897e8883
Implement first part of request in bug #5527 - allow the user to change
...
the timestamp display in the RTP Player to time of day with a checkbox
similar to in the IO Stats graph.
svn path=/trunk/; revision=35288
2010-12-28 18:22:59 +00:00
Stephen Fisher
9148bb6c53
Clarify some comments
...
svn path=/trunk/; revision=35279
2010-12-27 22:24:07 +00:00
Stephen Fisher
808d632345
The RTP Player shows the number of seconds since the beginning of that
...
call's packet flow along the x-axis. Add " s" to the end of each number
to give the user an idea those numbers are seconds.
svn path=/trunk/; revision=35278
2010-12-27 21:44:34 +00:00
Jaap Keuter
5ae824fc8f
From k barnard:
...
Flag when a packet has been dropped by the jitter buffer in the audio player,
by showing:
D dropped packet
W wrong timestamp
S silence added by wireshark
To show when audio 'glitches' may have come from the processing the received
packets through the jitter buffer.
svn path=/trunk/; revision=35192
2010-12-15 18:38:17 +00:00
Anders Broman
cab0cef11d
Use value_string_ext for RTP payload types.
...
svn path=/trunk/; revision=34804
2010-11-08 14:43:59 +00:00
Jaap Keuter
562eb76905
From Alexis La Goutte:
...
Replace all *_min()/*_max() by MIN() and MAX().
svn path=/trunk/; revision=34769
2010-11-04 06:37:26 +00:00
Bill Meier
2e4f755e13
Define some vars & fcns as static;
...
Also: do some minor reformmating and cleanup of whitespace.
svn path=/trunk/; revision=34492
2010-10-12 19:26:07 +00:00
Jeff Morriss
dc53486da6
Fix (or at least work around the crash in)
...
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4119 :
Never insert more than 1000 silence frames (e.g., if the sequence number jumps
massively). There may be a better way, but at least now we won't crash.
Leave a comment in the code indicating this.
svn path=/trunk/; revision=32304
2010-03-27 00:54:11 +00:00
Jeff Morriss
14f2f93a35
s/#if DEBUG/#ifdef DEBUG/
...
svn path=/trunk/; revision=32302
2010-03-26 23:34:54 +00:00
Bill Meier
538dd47d5d
Fix various gcc -Wshadow warnings.
...
svn path=/trunk/; revision=31731
2010-01-29 19:09:01 +00:00
Bill Meier
b28c81bf19
Use gtk_progress_bar_set_fraction instead of the deprecated gtk_progress_bar_update;
...
svn path=/trunk/; revision=31384
2009-12-29 17:46:34 +00:00
Jaap Keuter
220054bd43
PortAudio doesn't make sure that a default device is even available on the default Host API (go figure).
...
Therefore opening the default stream may fail in the precense of usable devices, on other Host API's.
If the default stream fails to open iterate among the Host API's to find one with a default device.
svn path=/trunk/; revision=31318
2009-12-18 23:26:12 +00:00
Jaap Keuter
9b55f28a3d
Squelch GTK warnings on the RTP player progress bar when resizeing the window.
...
svn path=/trunk/; revision=31298
2009-12-17 19:58:57 +00:00
Jaap Keuter
b5080f83c7
Squelch a GTK warning on the RTP player spinner control.
...
svn path=/trunk/; revision=31297
2009-12-17 17:59:46 +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
e2c8640c8d
Properly handle closing/destruction of RTP player window.
...
svn path=/trunk/; revision=29468
2009-08-18 17:36:30 +00:00
Anders Broman
485fc6805b
Change window_new() to dlg_window_new() and destroy the window with the top level window.
...
svn path=/trunk/; revision=28810
2009-06-22 15:22:37 +00:00
Gerald Combs
35b474b83f
From Nick Lewis via bug 3319:
...
When audio samples have to be dropped or silence samples inserted to reflect
the timestamp there is no indication of these problems on the display.
I propose that such problems be indicated on the waveform display by the use of
amber coloration and that the number of incorrect timestamps be listed
svn path=/trunk/; revision=28451
2009-05-22 18:39:26 +00:00
Jaap Keuter
5f900d062c
Extend error reporting from PortAudio library.
...
svn path=/trunk/; revision=28358
2009-05-14 06:26:16 +00:00
Jaap Keuter
4692f6cae7
When destroying the RTP player make sure to terminate the use of PortAudio library.
...
At least that is what the documentation says.
svn path=/trunk/; revision=27073
2008-12-21 18:49:20 +00:00
Jaap Keuter
c95944a16a
Correct language.
...
svn path=/trunk/; revision=27060
2008-12-19 11:31:28 +00:00
Jaap Keuter
2621a14a34
Plug memory leak.
...
svn path=/trunk/; revision=26873
2008-11-28 22:54:08 +00:00
Bill Meier
d3fc3b6c3e
Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
...
gtk_button_box_set_spacing() ==> gtk_box_set_spacing()
svn path=/trunk/; revision=25673
2008-07-08 02:43:40 +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
Tomas Kukosa
5f4f0df387
From Alejandro Vaquero:
...
Added a new checkbox for the RTP player to use the RTP timing instead of the
arriving time of the packets. This is useful when the RTP is being tunneled
(e.g. EtherIP), so the original timing is missing.
In some cases when encapsulating the original IP/RTP over EtherIP, the
encapsulated data comes in chunks of 1sec, so it is useful to use the RTP
timing to play it. In these cases we can not simulate jitter buffer, so this is
disabled when checking the new "Use RTP timestamp" option.
svn path=/trunk/; revision=25293
2008-05-14 06:22:07 +00:00
Ulf Lamping
644a474c95
sort #includes by directories
...
svn path=/trunk/; revision=24969
2008-04-13 03:32:24 +00:00