Commit Graph

25 Commits

Author SHA1 Message Date
Guy Harris 5fb6e97fb4 Squelch more const warnings (and fix some memory leaks that found).
_U_-ify some unused arguments, rather than assigning them to themselves.

Un-constify one variable that gets assigned a mallocated pointer.

Clean up indentation.

svn path=/trunk/; revision=15236
2005-08-06 03:44:55 +00:00
Guy Harris 80c1907a36 Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
it's used to register a callback for a tap listener invoked if the
specified command line argument is specified to the "-z" flag.

Move it, along with routines to:

	look up a "-z" argument in the table constructed by
	"register_tap_listener_cmd_arg()" and either save the full
	argument to "-z" and the corresponding listener if it's found or
	return a failure indication if it isn't;

	list the available tap listeners;

	call the "init" routines for the tap listeners saved in the
	table above;

and have Ethereal and Tethereal use those routines.

svn path=/trunk/; revision=13993
2005-04-01 09:08:27 +00:00
Luis Ontanon 04dcf4e154 Rename all stats_tree extern functions to start with stats_tree_
svn path=/trunk/; revision=13840
2005-03-21 00:55:04 +00:00
Guy Harris 536718bb6c Fix the expansion of the top-level nodes in GTK+ 1.2[.x].
svn path=/trunk/; revision=13837
2005-03-20 23:28:36 +00:00
Luis Ontanon d4f461c418 Expand the root nodes by default
svn path=/trunk/; revision=13833
2005-03-20 21:48:11 +00:00
Guy Harris 976666eb49 The GTK+ 2.x version doesn't automatically expand the root node; don't
do so in the GTK+ 1.2[.x] version.

svn path=/trunk/; revision=13831
2005-03-20 20:27:51 +00:00
Guy Harris 0f39d86edf Make columns in the GTK+ 1.2[.x] version auto-resizing.
svn path=/trunk/; revision=13830
2005-03-20 19:51:09 +00:00
Guy Harris e859032069 Make the top-level node start out expanded in GTK+ 1.2[.x].
svn path=/trunk/; revision=13829
2005-03-20 19:44:19 +00:00
Guy Harris 612b5f4fc6 Do a GTK+ 1.2[.x] version.
Clean up indentation.

Put the members of the _stat_tree_columns enum in order by column number.

svn path=/trunk/; revision=13822
2005-03-20 11:39:14 +00:00
Luis Ontanon 000ce4f915 st->name was moved to st->cfg->name
svn path=/trunk/; revision=13821
2005-03-20 11:12:21 +00:00
Luis Ontanon 9e9a658369 There was a design flaw that caused a crash on windows and
left uninitialized successive copies of the stats tree.

Split the stats_tree data in two different structs one for data that's
always needed and it's not going to change at every run and another
for each run of the tap.



svn path=/trunk/; revision=13816
2005-03-20 00:19:15 +00:00
Ulf Lamping bcaacc0569 Use capitalized words for column headers
svn path=/trunk/; revision=13812
2005-03-19 18:13:09 +00:00
Ulf Lamping ed0cdf9eb7 Add a "Close" button, as not everyone uses a window manager providing the 'X' to close a window.
In addition, this enables the ESC key to close the window

Slightly increase the initial window size

svn path=/trunk/; revision=13810
2005-03-19 16:43:30 +00:00
Ulf Lamping 2f73c1d242 removed some MSVC compiler warnings, mostly I've casted "downsized function parameters"
svn path=/trunk/; revision=13684
2005-03-09 23:00:21 +00:00
Lars Roland 466603ba82 add a default size to stats_tree windows. so we do not have to resize them everytime.
svn path=/trunk/; revision=13655
2005-03-07 21:11:34 +00:00
Luis Ontanon 6e0186da12 - do not free the string passed to register_ethereal_tap()
it caused the taps to have "funny" names.

- rename the window as "$name Stats Tree"


svn path=/trunk/; revision=13546
2005-02-28 01:20:52 +00:00
Luis Ontanon c81ca733db the last commit broke windows compilation.
minor changes in typing variables
 exclude a GTK2 call from being called while using GTK1


svn path=/trunk/; revision=13539
2005-02-27 20:17:06 +00:00
Luis Ontanon 93c46dde91 Several fixes to the stats_tree
- Avoid creating a copy of every branch at reinitialization
       this used to cause some GTK warnings and a leakage of tree nodes

- propperly check the optarg to avoid getting junk in the filter text
       this caused a crash


svn path=/trunk/; revision=13534
2005-02-27 16:55:24 +00:00
Luis Ontanon 8802528974 - undo disabling the GTK2 version
- do not declare a variable after the first statement or else windows compilation fails


svn path=/trunk/; revision=13522
2005-02-25 22:57:43 +00:00
Luis Ontanon d971fa0062 Temporarily disable the gtk2 version that causes a compilation error on windows.
svn path=/trunk/; revision=13521
2005-02-25 22:30:58 +00:00
Luis Ontanon ca67abe524 some more work for
- beautify the text output
- make gtk1 textbox implementation usable (I hope)


svn path=/trunk/; revision=13506
2005-02-25 03:56:12 +00:00
Luis Ontanon 00435bf390 Update to the stats_tree tapping API
- change the tap init_string to %s,tree instead of %s,stat
- change the registration key (it used to be tapname, that disallowed to register more than one tap per protocol)
- add a "pivot" node for convenience


svn path=/trunk/; revision=13502
2005-02-24 22:02:31 +00:00
Luis Ontanon e5bc9c5b50 comment out two g_message() calls
svn path=/trunk/; revision=13449
2005-02-20 18:18:10 +00:00
Luis Ontanon 9b02a501cd Fixes few things during reinitialization with gtk2 (it doesn't crash anymore),
there are still problems at reinit (gtk2 node->pr warns about an iterator not been OK)

set up propperties of the given files

svn path=/trunk/; revision=13448
2005-02-20 17:43:38 +00:00
Luis Ontanon 43124c8744 Initial checkin of the stats-tree tap API
Makefiles have not been modified yet, there's still work to do.

svn path=/trunk/; revision=13414
2005-02-16 14:16:40 +00:00