Re: Gtk::RadioAction, how to set default action



Just create a Glib::RefPtr<Gtk::RadioAction> and then use the
property_value() method to set the default value of that instance.  Then
add that action to a Gtk::ActionGroup instance and insert that into the
UIManager.

On Wed, 2005-03-30 at 10:46 +0200, Frank Naumann wrote:
> Hello!
> 
> I'm using the Gtk::UIManager and the Gtk::RadioAction classes to create a 
> submenu of radio menu buttons. I tried to set the default activated button 
> but can't find a way in gtkmm. I looked into gtk+ and they use the 
> GtkRadioActionEntry struct and gtk_action_group_add_radio_actions() 
> function to create radio menu buttons (you can specify the default 
> activated action with the value property). Have I overseen something or 
> is this missing in gtkmm?
> 
> 
> Regards,
> Frank
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
======================================================================
Bryan Forbes
bryan reigndropsfall net
http://www.reigndropsfall.net

"It does not take a majority to prevail, but rather an irate, tireless
minority keen to set brush fires in people's minds."
        - Samuel Adams, an architect of the Constitution

Key fingerprint = 3D7D B728 713A BB7B B8B1  5B61 3888 17E0 70CA 0F3D

Attachment: signature.asc
Description: This is a digitally signed message part



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