I don't know if this is of any help. Another try at it. This one uses a
GtkApplication. Setup an action on the button along with the standard "clicked"
callback. A menu in there also.
Eric
//gcc -Wall toolbar2.c -o toolbar2 `pkg-config --cflags --libs gtk+-3.0`
#include
static void
"I am not sure what you mean"
I don't have a good answer for this. I see that GtkRadioToolButton is in the
list of Known Implementations for GtkActionable but doesn't use the GAction
interface directly.
Hi,
Thank you for your reply. I am not sure what you mean by "GtkToolbar
doesn't implement the GAction interface". In Glade, I can define the
specify the "Action Name" for each individual widget in the Toolbar. Those
action names get automatically linked to the actions that I've defined in
the my
Hi Mitko,
The GtkToolbar doesn't implement the GAction interface so you are out of luck
there.
You can use gtk_toggle_tool_button_get_active() to get the state of one of the
GtkRadioToolButton's in the toolbar.
Eric
//gcc -Wall toolbar1.c -o toolbar1 `pkg-config --cflags --libs gtk+-3.0`
; 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
"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