Re: State actions and Glade

2018-10-05 Thread Eric Cashon via gtk-app-devel-list
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

Re: State actions and Glade

2018-10-04 Thread Eric Cashon via gtk-app-devel-list
"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.

Re: State actions and Glade

2018-10-04 Thread Mitko Haralanov via gtk-app-devel-list
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

Re: State actions and Glade

2018-10-02 Thread Eric Cashon via gtk-app-devel-list
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`

Re: State actions and Glade

2018-10-02 Thread Mitko Haralanov via gtk-app-devel-list
; 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

State actions and Glade

2018-09-18 Thread Mitko Haralanov via gtk-app-devel-list
"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