Re: menuitem activate
- From: "danielg Posting" <danielg rhce us>
- To: gtk-app-devel-list gnome org
- Subject: Re: menuitem activate
- Date: Wed, 23 May 2007 11:02:54 -0400
On Wed, 23 May 2007 16:49:50 +0200, David Neèas (Yeti) wrote
On Wed, May 23, 2007 at 10:36:13AM -0400, danielg RHCE wrote:
Why don't you just call the callback function which is connected to the
signal?
Or use g_signal_emit() or g_signal_emit_by_name() to "emulate" a
click on the menu item.
That's exactly what I'm trying to do, simulate a menu item click.
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");
That's:
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]