Re: GTK Action Handler



Hello.

When the button or expander is clicked with the mouse the callbacks work
fine. ÂThe problem is from the menu the "activate" signal has GtkAction
as the first parameter of the callback and I don't think that can be
cast to a GtkButton or GtkExpander. ÂI want to call the button and
expander callbacks as if they were clicked with the mouse.

You can get hold of the proxy widget of the action by calling
gtk_action_get_proxies(). After you obtain the needed widget, you cna
call callback function like it would be called by GTK+ itself.

Tadej

-- 
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com



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