Commit graph

210 commits

Author SHA1 Message Date
Anders Broman
54600e3424 Define M_PI and protect it
(http://ubuntuforums.org/showthread.php?t=583094)

svn path=/trunk/; revision=38224
2011-07-27 11:43:45 +00:00
Anders Broman
e4badaaad4 Define M_PI
svn path=/trunk/; revision=38223
2011-07-27 11:05:34 +00:00
Stig Bjørlykke
0a46e06b1d Use correct color for impulse, filled bar and dot.
Draw dot as a circle.

svn path=/trunk/; revision=38221
2011-07-27 09: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
9980db59b3 Code cleanup.
svn path=/trunk/; revision=38200
2011-07-25 15:54:21 +00:00
Anders Broman
6eb637c144 Replace depricated gdk_draw_drawable().
svn path=/trunk/; revision=38180
2011-07-24 11:35:51 +00:00
Anders Broman
5e1489efdf Try to fix "The graph is not updated when changing settings or adding new graphs.".
We need to find non deperecated equivalents...

svn path=/trunk/; revision=38179
2011-07-24 11:11:38 +00:00
Jörg Mayer
7271b2d213 The guards for 2,22,0 are not needed, tested on a debian system with gtk 2.12.
svn path=/trunk/; revision=38177
2011-07-24 07:58:21 +00:00
Anders Broman
7cf336bbcd Fix a copy-paste error.
svn path=/trunk/; revision=38173
2011-07-23 14:02:20 +00:00
Anders Broman
858b72cd0d Use cairo for drawing to avoid deprecated functions.
I'm unsure if the #if GTK_CHECK_VERSION(2,22,0) guards are realy
needed but I don't have a GTK 2.12 system to verify with.

svn path=/trunk/; revision=38172
2011-07-23 11:27:57 +00:00
Jörg Mayer
58d8a2b1b2 Handle more stuff in old-gtk-compat.h to avoid guarding in the code.
svn path=/trunk/; revision=38160
2011-07-21 23:58:08 +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
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
Gerald Combs
5ad2293f40 More GLIB_CHECK_VERSION and GTK_CHECK_VERSION cleanup.
svn path=/trunk/; revision=37971
2011-07-11 18:35:36 +00:00
Anders Broman
51a842184c Fix some of the GTK deprecated functions.
svn path=/trunk/; revision=37766
2011-06-23 13:36:25 +00:00
Martin Mathieson
780efd342c Allow longer field names in the advanced filter control.
svn path=/trunk/; revision=37390
2011-05-25 09:08:27 +00:00
Anders Broman
8aa3a7b0ac More GUIManager stuff.
svn path=/trunk/; revision=37035
2011-05-10 05:31:45 +00:00
Anders Broman
ec855fcd7e Do some prep work on GUIManager code, if you enable it it will break as the menus.c changes are not commited.
svn path=/trunk/; revision=36978
2011-05-03 16:51:08 +00:00
Ronnie Sahlberg
c317244ff8 Print the time units in the CSV output for io_stat using correct extension, i.e. always in seconds.
coverity 419

svn path=/trunk/; revision=36275
2011-03-23 05:11:06 +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
Stig Bjørlykke
e111567e7e Calculate correct io->start_time.
This fixes bug 5340.

svn path=/trunk/; revision=34661
2010-10-27 07:45:31 +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
9451aa90a7 (Trivial/Cosmetic) Fix signatures of some signal callback functions;
Also:Add some missing G_CALLBACKs (even in commented out code)

svn path=/trunk/; revision=33890
2010-08-23 15:58:48 +00:00
Bill Meier
fac1cfc492 Various minor cleanup:
- Non-event signal callback functions should return void;
 - Event signal callback had missing 'user_data' arg;
 - Rename various symbols for clarity;
 - Rename local functions with names of form gtk_...;
 - Use gboolean where appropriate;
 - Remove all 'exit(10)' statements;
 - Whitespace;
 - ...

svn path=/trunk/; revision=33843
2010-08-18 22:20:01 +00:00
Stig Bjørlykke
f4418004f6 Bring back "1 min" and "10 min" in IO Graph Tick interval.
svn path=/trunk/; revision=32733
2010-05-10 10:48:45 +00:00
Bill Meier
7397bb0a74 Fix various gcc -Wshadow warnings.
svn path=/trunk/; revision=31737
2010-01-29 23:17:32 +00:00
Stig Bjørlykke
4fe10501d2 Use correct default value in tick interval combo box.
svn path=/trunk/; revision=30729
2009-10-27 13:59:05 +00:00
Anders Broman
c6620d7770 More gtk_option_menu -> gtk_combo_box
svn path=/trunk/; revision=30570
2009-10-16 10:32:06 +00:00
Anders Broman
fa3b06e9de Get rid of deprecated symblol gtk_widget_draw().
svn path=/trunk/; revision=30305
2009-10-04 15:49:52 +00:00
Bill Meier
a15bb4beb9 Add #include <stdio.h> in a few more places ....
svn path=/trunk/; revision=29578
2009-08-27 04:47:28 +00:00
Anders Broman
135ca5136f Change window_new() to dlg_window_new() and destroy the window with the top level window.
svn path=/trunk/; revision=28796
2009-06-21 20:42:07 +00:00
Guy Harris
cf91fdf16b Have tap listeners specify whether the "packet" routine requires
a protocol tree;

	the column values.

This includes stats-tree listeners.

Have the routines to build the packet list, and to retap packets, honor
those requirements.  This means that cf_retap_packets() no longer needs
an argument to specify whether to construct the column values or not, so
get rid of that argument.

This also means that there's no need for a tap to have a fake filter
to ensure that the protocol tree will be built, so don't set up a fake
"frame" filter.

While we're at it, clean up some cases where "no filter" was represented
as a null string rather than a null pointer.

Have a routine to return an indication of the number of tap listeners
with filters; use that rather than the global num_tap_filters.

Clean up some indentation and some gboolean vs. gint items.

svn path=/trunk/; revision=28645
2009-06-05 22:42:47 +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
Bill Meier
6fee0f704e Fix some typos and spelling
svn path=/trunk/; revision=27070
2008-12-20 01:39:16 +00:00
Stig Bjørlykke
4a9957df9e Fill the scrollbar when the graph is empty.
svn path=/trunk/; revision=26790
2008-11-16 14:41:35 +00:00
Stig Bjørlykke
c8d3fe7cbe Remove a misplaced comment...
svn path=/trunk/; revision=26492
2008-10-19 14:07:00 +00:00
Stig Bjørlykke
381285f61c Add filter autocomplete for more places we use filter entries.
svn path=/trunk/; revision=26491
2008-10-19 13:40:52 +00:00
Stig Bjørlykke
b19ba53f35 Bring the windows to front when rescanning of packets are done.
svn path=/trunk/; revision=26433
2008-10-13 17:28:36 +00:00
Stig Bjørlykke
828f6baa42 Ensure we initialize all colorized filter text entries before we show the
widget, so we don't get wrong foreground color when using a dark theme.

svn path=/trunk/; revision=26414
2008-10-11 14:32:46 +00:00
Stig Bjørlykke
6b0c906c19 Added check for a valid field name in the advanced field.
svn path=/trunk/; revision=26407
2008-10-10 17:10:15 +00:00
Balint Reczey
172d8448e8 temporary fix for return type warning
svn path=/trunk/; revision=26404
2008-10-10 16:29:09 +00:00
Balint Reczey
feed6d124f fixed conversion warning
svn path=/trunk/; revision=26403
2008-10-10 16:06:04 +00:00
Balint Reczey
8ae1ce5822 support float and double values in IO Graph calculations
svn path=/trunk/; revision=26400
2008-10-10 15:18:37 +00:00
Jeff Morriss
dd6a15e1c7 Don't put (non-extern'd) prototypes for protect_thread_critical_region() and
unprotect_thread_critical_region() in every module in gtk/: instead have those
modules include main.h (which has the properly extern'd prototype).

This should fix the link error on HP-UX described in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2702

svn path=/trunk/; revision=25933
2008-08-05 17:33:14 +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