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: "Greg Morris" <gmorris@xxxxxxxxxx>
Date: Wed, 03 Dec 2003 12:11:20 -0700
Attached is a patch to fix this problem with current CVS.
 
The menu option to Save Highlighted should use ITEM_FACTORY_ENTRY instead of ITEM_FACTORY_STOCK_ENTRY since it does not have an Icon.
 
Greg

>>> Guy Harris <guy@xxxxxxxxxxxx> 12/1/2003 10:48:43 PM >>>
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.

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev

Attachment: menu.c.diff
Description: Binary data