Bill Meier
fa9e9a5e33
-As suggested by Jakub Zawadzki: use sizeof(...) rather than a numeric constant in various places;
...
Also:
- Change indentation to be consistent;
svn path=/trunk/; revision=27799
2009-03-19 17:47:00 +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
Stig Bjørlykke
cbc583a8f2
Added check for GTK 2.6.0 for gtk_cell_renderer_progress_new()
...
Switched columns for percent text and percent value.
svn path=/trunk/; revision=25318
2008-05-18 19:49:12 +00:00
Stig Bjørlykke
e396477922
- Use the common function for applying a selected filter.
...
- Enhanced the percent column to show a progress bar.
svn path=/trunk/; revision=25312
2008-05-17 22:57:53 +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
644a474c95
sort #includes by directories
...
svn path=/trunk/; revision=24969
2008-04-13 03:32:24 +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
8e58ec7085
last round to replace SIGNAL_CONNECT with g_signal_connect
...
svn path=/trunk/; revision=24918
2008-04-11 23:16:06 +00:00
Ronnie Sahlberg
154e8f0892
add missing braces to unbreak the build
...
svn path=/trunk/; revision=24916
2008-04-11 23:12:24 +00:00
Ulf Lamping
c6d13dc2c8
replace WIDGET_SET_SIZE with gtk_widget_set_size_request
...
svn path=/trunk/; revision=24910
2008-04-11 20:31:05 +00:00
Ulf Lamping
a471e1af90
replace ITEM_FACTORY_ENTRY and ITEM_FACTORY_STOCK_ENTRY with their required data values to build the menus
...
svn path=/trunk/; revision=24909
2008-04-11 20:21:05 +00:00
Bill Meier
0502078a1b
OBJECT_..._DATA --> g_object_..._data
...
svn path=/trunk/; revision=24898
2008-04-11 17:14:11 +00:00
Stephen Fisher
a398bebdaf
Remove GTK1 code and change ugly version checking statements into
...
GTK_CHECK_VERSION().
svn path=/trunk/; revision=24826
2008-04-07 03:46:01 +00:00
Ulf Lamping
3b7fe5fc6c
remove GTK1 code
...
svn path=/trunk/; revision=24823
2008-04-07 00:42:04 +00:00
Stig Bjørlykke
11eda6b97b
Add check for gtk 2.4 when calling gtk_tree_view_column_set_expand.
...
svn path=/trunk/; revision=24603
2008-03-11 17:27:41 +00:00
Bill Meier
161eb8b6d7
Add missing g_object_unref for treeview models;
...
Remove not needed set_tree_model (stats_tree_stat.c)
svn path=/trunk/; revision=24230
2008-01-31 16:37:56 +00:00
Stig Bjørlykke
8369bda495
Expand the Protocol column instead of the last column on window resize.
...
svn path=/trunk/; revision=24209
2008-01-27 15:54:15 +00:00
Guy Harris
d4672d13f5
Add macros for various filter actions and types, and to combine them
...
into a callback argument and split a callback argument up.
svn path=/trunk/; revision=23816
2007-12-09 09:04:58 +00:00
Ronnie Sahlberg
b57ce9e48f
some updates to make it compile with gtk/glib < 2
...
svn path=/trunk/; revision=23810
2007-12-08 22:45:30 +00:00
Stig Bjørlykke
4783f12c08
Added "Apply as filter"/"Prepare a filter"/"Find frame"/"Colorize Protocol"
...
menu. Simplified getting the Display filter.
svn path=/trunk/; revision=23786
2007-12-06 18:10:35 +00:00
Stig Bjørlykke
79b3da4b00
Changed from Ok button to Close button.
...
svn path=/trunk/; revision=23697
2007-12-02 14:43:41 +00:00
Stig Bjørlykke
44145c21ed
Show the Display filter in Protocol Hierarchy Statistics.
...
svn path=/trunk/; revision=23686
2007-11-30 15:37:21 +00:00
Ronnie Sahlberg
416a353ee7
fix compiler warning for gtk1 builds
...
svn path=/trunk/; revision=21502
2007-04-22 15:48:18 +00:00
Guy Harris
92552c2d76
Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUI
...
strings, and function names.
svn path=/trunk/; revision=18205
2006-05-22 07:29:40 +00:00
Ronnie Sahlberg
89f022b12b
name change
...
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Jörg Mayer
b77737650f
One file missed in last checkin
...
svn path=/trunk/; revision=15472
2005-08-20 14:08:53 +00:00
Jörg Mayer
0edcc8920e
- Declare some functions static
...
- Add plugins_dlg.h
- Include .h files in their respective .c files
- Include .h and remove extern declarations in .c files
- set eol-style and keywords on gui_utils.[hc]
svn path=/trunk/; revision=15471
2005-08-20 14:02:00 +00:00
Ulf Lamping
eafbbbcabb
renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical named ui_util.h in / dir
...
svn path=/trunk/; revision=15465
2005-08-20 12:09:48 +00:00
Ulf Lamping
d28861b607
removed tons of MSVC const related warnings.
...
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-)
Please note that a lot of these warnings were GTK1.x related only!
svn path=/trunk/; revision=15286
2005-08-10 19:49:45 +00:00
Jörg Mayer
4e1f4b18ab
More char -> const char warning fixes.
...
Removed (very few) casts that only change the warning message
but don't remove it (with gcc-4).
svn path=/trunk/; revision=15227
2005-08-05 20:59:08 +00:00
Ulf Lamping
630881b469
proto_hier_stats_dlg.c(99) : warning C4090: '=' : different 'const' qualifiers
...
svn path=/trunk/; revision=14766
2005-06-26 10:28:51 +00:00
Ulf Lamping
66ce7f3623
add some more online help functionality and help buttons at various dialog boxes, if a help page *is* available. However, the new help system needs a lot more work before completed.
...
svn path=/trunk/; revision=13152
2005-01-20 23:17:23 +00:00
Guy Harris
8a8b883450
Set the svn:eol-style property on all text files to "native", so that
...
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.
svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Ulf Lamping
cc68368037
use new functions in window API (ui_util.h),
...
use window_new instead of dlg_window_new for the statistics windows
(as these are no dialog windows)
do some code cleanup
svn path=/trunk/; revision=10979
2004-05-23 23:24:07 +00:00
Ulf Lamping
2c52329681
GTK2: expand all tree elements when opening dialog
...
svn path=/trunk/; revision=10756
2004-05-01 18:40:20 +00:00
Laurent Deniel
50a00153ea
* Protocol Hierarchy Statistics:
...
- store times of first and last packets in ph_stats_t
- add bandwidth columns in GUI
- miscellaneous code cleaning
svn path=/trunk/; revision=10398
2004-03-17 21:48:15 +00:00
Ulf Lamping
5297f06717
replaced every appearance of gtk_scrolled_window_new() with
...
scrolled_window_new().
added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to
scrolled_window_new()
added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN)
to every place needed
svn path=/trunk/; revision=9999
2004-02-06 19:19:12 +00:00
Ulf Lamping
8e2a930023
implemented dlg_button_row_new to get a standard function for
...
layouting the dialog buttons, and use it where appropriate.
This will help us with the GTK1/2 conflict on button layouts and
will also result in a more consistent look of the dialogs at all.
svn path=/trunk/; revision=9771
2004-01-21 21:19:34 +00:00
Ulf Lamping
949f1f2d07
using button compatibility macros
...
svn path=/trunk/; revision=9636
2004-01-10 16:27:43 +00:00
Olivier Abad
29011060de
Use gtk1/gtk2 compatibility macros to reduce #ifdefs.
...
svn path=/trunk/; revision=6610
2002-11-11 15:39:06 +00:00
Olivier Abad
05ef1fc475
Merge gtk and gtk2 directories.
...
svn path=/trunk/; revision=6552
2002-11-03 17:38:45 +00:00
Jörg Mayer
7c4176d868
Removed trailing whitespaces from .h and .c files using the
...
winapi_cleanup tool written by Patrik Stridvall for the wine
project.
svn path=/trunk/; revision=6117
2002-08-28 21:04:11 +00:00
Guy Harris
5fe414c555
From Joerg Mayer: use _U_ to flag unused arguments.
...
svn path=/trunk/; revision=4878
2002-03-05 11:56:00 +00:00
Guy Harris
e592fa4a6b
Have routines to create GtkCTrees, set their line and expander style
...
based on the user's UI preferences, and add them to a list of GtkCTrees.
Use those routines to create all GtkCTrees.
Have a routine to update the preferences for all of those GtkCTrees.
Call that routine whenever the preferences change.
Label the line and expander style preferences as "Tree line style" and
"Tree expander style", as they no longer apply only to protocol trees.
Move the routines to maintain a list of scrolled windows, and to update
scrollbar placement for scrolled windows, to "ui_util.c".
svn path=/trunk/; revision=4520
2002-01-11 06:43:18 +00:00
Gerald Combs
e8839785ad
Fix a pointer error in find_stat_node.
...
Define a default width and maximum height for the stats dialog.
svn path=/trunk/; revision=4463
2001-12-31 20:40:34 +00:00
Gerald Combs
30c5551caa
Add preferences to save the main window size and position. If enabled,
...
the geometry is saved at exit. Should we save the main window pane
sizes as well?
Move the DEF_WIDTH and DEF_HEIGHT #defines from gtk/main.h to prefs.h.
Remove the reference to DEF_WIDTH from proto_hier_stats_dlg.c.
svn path=/trunk/; revision=4462
2001-12-31 04:41:50 +00:00
Gerald Combs
7e092f2dd8
Go nuts with the 3D logo.
...
Add a routine to ui_util.c that sets a window's icon pixmap to a 16x16
version of the 3D logo. Call the routine for each window that is created.
This has been tested with kwm and Sawfish (which expect a 16x16 icon), but
we may have to come up with a better solution for other window managers
(e.g. olwm and mwm).
Add a 3D exclamation point image. Replace the exclamation point and
Ethereal logo images used in simple_dialog() with their 3D counterparts.
Remove the old icons from the source distribution.
svn path=/trunk/; revision=4390
2001-12-12 21:39:01 +00:00
Gilbert Ramirez
9bda102f83
Change name of "Last-Protocol" columns to "End" so that there's
...
a better chance of them fitting horizontally into the window, for
users of small screens.
svn path=/trunk/; revision=3203
2001-03-29 04:21:35 +00:00
Gilbert Ramirez
16358126d5
Create dialogue box as top-level window, not transient window.
...
svn path=/trunk/; revision=3188
2001-03-26 03:02:57 +00:00