[gtkmm] how to get MenuItem text ?



Hi

I want to get the MenuItem text but I didn't find any function for that !!!

Any help on that ?

because I am using the "OptionMenu" and I want to get the text of the item the user selected, here is my code :


void PrefWindow::on_optionmenu1_changed()
{

Gtk::Menu *me = optionmenu1->get_menu();
Gtk::MenuItem *myItem = me->get_active();

set_title(*myItem->GET_TEXT_FUNTION);

}



--
http://www.4-SMS.Com
http://eShop.4-SMS.Com
http://Mozilla.4-SMS.Com
-*- If Linux doesn't have the solution, you have the wrong problem -*-




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