Perhaps the glibmm example program at
https://git.gnome.org/browse/glibmm/tree/examples/options/main.cc
can help you.
MyOptionGroup::add_entry() is unnecessary. You can call Glib::OptionGroup::add_entry() directly. Or, if you prefer to keep MyOptionGroup::add_entry(), the argument Gdk::Rectangle& arg is unnecessary. You don't use it, anyway. I don't see any problem in MyOptionGroup::on_option_arg_rectangle(). I suppose MyOptionGroup::m_arg_box is a Gdk::Rectangle. If rect is a local Gdk::Rectangle in MyOptionGroup::on_option_arg_rectangle(), you can just assign "m_arg_box = rect;" once you have decoded the string 'value' and stored the result in 'rect'. Have I misunderstood you? Probably, because I don't see what's the problem. Kjell 2013-06-10 14:57, Maggio Mago skrev:
|