Re: menuitem activate

On Wed, May 23, 2007 at 11:02:54AM -0400, danielg Posting wrote:

gtk_widget_activate(item); or gtk_menu_item_activate(item);

Okay, So, with this as the originator:
  ifactory = gtk_item_factory_from_widget (dirview_popup);
menuitem = gtk_item_factory_get_item (ifactory, "/Refresh Tree");


gtk_menu_item_activate("/Refresh Tree");  ??

That gives me a segfault.  I know I'm missing something little and stupid but
I don't know what it is.

It has argument of GtkMenuItem* type, i.e. you pass the menu
item object.  No path, name, or anything.  The item itself
(that's menuitem here).



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]