Re: [gtkmm] Actions / UIManager and OO programming style
- From: Murray Cumming <murrayc murrayc com>
- To: Christer Palm <palm nogui se>
- Cc: GTK-list <gtk-list gnome org>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Actions / UIManager and OO programming style
- Date: Tue, 29 Jun 2004 16:10:24 +0200
On Tue, 2004-06-29 at 01:29 +0200, Christer Palm wrote:
> Hi!
> I've been working for a while with the new UIManager/Action classes, but
> I have some difficulty in finding the "right" way of using them.
>
> First of all, although I can connect a Button to an Action using
> connect_proxy(), it won't get the Icon specified by the Action. Neither
> can the Action create a button. It appears that it would be natural for
> Actions to provide the same support for Buttons as it does for MenuItems
> and ToolItems.
Yes, that would be nice. I don't know if it's meant to be possible, or
how you would do it. You might ask on gtk-list gnome org
> Second, Action doesn't have any useful public/protected constructors.
There are no public constructors because they are meant to be used via
RefPtr. There are protected constructors, so you can derive. If you need
an extra constructor then I would be happy to look at a patch.
> This makes it impossible to subclass Action, which seems to me like a
> natural way of creating actions. The same goes with UIManager and other
> fairly recently added widgets such as TreeStore/ListStore (although
> they've been fixed since). IMHO, this rather discourages good OO
> programming style.
>
> Any suggestions?
>
> --
> Christer Palm
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]