Re: where is error?
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: Robert Caryl <bob fis-cal com>
- Cc: Murray Cumming <murrayc murrayc com>, gtkmm-list gnome org
- Subject: Re: where is error?
- Date: Wed, 9 Aug 2006 22:07:45 +0300
Robert Caryl wrote:
> > That's why you must implement your own create() method.
> >
> > Paul Pogonyshev wrote:
> > Right. But I can't.
>
> Mr. Pogonyshev, yes you can; try something like this:
>
> <code>
> #include <gtkmm/main.h>
> #include <gtkmm/radioaction.h>
> #include <gtkmm/stock.h>
>
> namespace {
>
> class Radio_action : public Gtk::RadioAction
> {
> public:
> Glib::RefPtr<Radio_action> create(RadioActionGroup& group) {
> return Gtk::RadioAction::create(group,"test",Gtk::Stock::ABOUT,"","");
> }
> protected:
> // now override to your heart's content
> };
This way an object of Gtk::RadioAction type is created. There is no
derivation, at least not one that is active at run-time. One last
possibility is to register a different wrapper for GtkRadioAction.
I'll report after I have tried it.
Paul
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]