Q: selectively disable GAction state?



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.

Attachment: pgpSUz5XCoZpv.pgp
Description: PGP signature



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