Q: selectively disable GAction state?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Q: selectively disable GAction state?

Albrecht Dreß
Hi all,

in a project I use the following (stripped down) GActionEntry values for building a Gtk menu with radio entries:

static GActionEntry entries[] = {
     {"mode", mode_activated, "s", "'mode_1'", change_cb },
     {"mode", mode_activated, "s", "'mode_2'", change_cb },
     {"mode", mode_activated, "s", "'mode_3'", change_cb } };

By looking up the GAction for "mode", I can completely enable or disable all three radio menu items using g_simple_action_set_enabled().

My question: is it possible to disable only /one/ of the radio items, e.g. "mode_2"?  How?

Thanks in advance,
Albrecht.
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list

attachment0 (484 bytes) Download Attachment
Loading...