Tadej Borovšak wrote:
> 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
dhk on 12/31/2009 10:33 AM wrote:
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 ca
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
>
Michael Cronenworth wrote:
> dhk wrote:
>> How can I reuse these callbacks?
>
> Use user_function( GtkWidget *widget, gpointer data ) instead of
> explicitly setting a class. Then cast widget as whatever you need, eg.:
> GTK_BUTTON( widget ) inside of your callback.
> _
dhk wrote:
How can I reuse these callbacks?
Use user_function( GtkWidget *widget, gpointer data ) instead of
explicitly setting a class. Then cast widget as whatever you need, eg.:
GTK_BUTTON( widget ) inside of your callback.
___
gtk-app-devel-lis
Tadej Borovšak wrote:
> Hello.
>
> Callback prototype for "activate" signal is: void callback( GtkAction
> *action, gpointer data );
>
> When widget that proxies specific action is activated, it calls
> gtk_action_activate() function which emits "activate" signal.
>
> Tadej
>
I think I have on
Hello.
Callback prototype for "activate" signal is: void callback( GtkAction
*action, gpointer data );
When widget that proxies specific action is activated, it calls
gtk_action_activate() function which emits "activate" signal.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
What is the callback signature suppose to look like for a GTK Action
handler?
I have a menu made from a GtkBuilder UI definition. The GtkActionEntry
array sets the callbacks for the menu item; however, what is the
callback suppose to look like? Some menu items I want to call a button
clicked