Ethereal-dev: Re: [Ethereal-dev] Console window displayed on Win32 from current CVS.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 1 Dec 2003 21:48:43 -0800
On Mon, Dec 01, 2003 at 03:43:56PM -0700, Greg Morris wrote:
> (ethereal.exe:2940): Gtk-CRITICAL **: file gtkstock.c: line 128
> (gtk_stock_looku
> p): assertion `stock_id != NULL' failed
>  
> I updated just about an hour ago and built with GTK 2.2.4. Any ideas
> where to start looking I cannot find a gtkstock.c or a gtk_stock_lookup
> function.

Start looking in the GTK+ 2.2.4 source; it's part of GTK+.

> I would assume that this might be the startup option to locate
> the font but I am not sure.

No - to quote the comment in front of it:

	/**
	 * gtk_stock_lookup:
	 * @stock_id: a stock item name
	 * @item: stock item to initialize with values
	 *
	 * Fills @item with the registered values for @stock_id, returning %TRUE
	 * if @stock_id was known.
	 *
	 *
	 * Return value: %TRUE if @item was initialized
	 **/

It's called by "gtk_toolbar_insert_stock()", which is used in the
Ethereal toolbar; it's also called by the item factory code, which is
used in menus.