Re: State actions and Glade



Can someone please help me with some pointer?

Thank you.

On Tue, Sep 18, 2018 at 9:35 AM Mitko Haralanov <voidtrance gmail com>
wrote:

I am trying to write an application using Glade where the tool bar
contains a set of radio tool buttons. Those radio tool buttons should not
perform an action when activated but rather just change the associated
action's state.

For that I've set the 'Action Name' property for the tool buttons in Glade
as 'win.radio-state(0)' and 'win.radio-state(1)'.

Since the only thing that I am after is the action's state, I don't even
need a 'chage_state' handler in the action definition. Therefore, the
GActionEntry for the radio buttons is defined as:
    {"radio-state", NULL, "i", "0", NULL}

However, no matter what I do, the tool radio buttons are never 'sensitive'
and I can never click on them.

How should I be using state actions with Glade? It seems that I am doing
things as described by https://wiki.gnome.org/HowDoI/GAction but it still
does not work.

Thank you for your help.



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