Re: [gtkmm] Just an idea



> > From: gtkmm-list-admin gnome org
> > So:
> > My idea is that it would be nice to have examples of all the
> > details that
> > appear in the API.
>
> Do you realise that there are already a huge number of examples in the
> tarball, also used in the book? Suggestions (and code) for new examples
are
> very welcome.
>
> Murray Cumming


You are right. There are some really cool examples in the tarball. Although,
not all of them compile (at least in my version 2.2.8 (I think)). And by the
way, I still think that gtkmm is pretty nicely documented.

Now, my idea was that maybe it would be nice to have a link from the API
page, let's say MenuBar, to the page with small program that shows how to
use all the methods. (I know that MenuBar is covered pretty well in the
book; it's just an example of my approach). The worst thing to figure out is
how to connect all those methods; how to put them together in the proper
syntax. For example: Once I was trying to figure out how to "set_active"
radio_menu_element. (I don't think RadioMenuElem is in the book) The API
says that RadioMenuElem is a CheckMenuItem that belongs to a group. But how
do I set_active() those things? Well, I still didn't figure it out. And I
spent lots of time jumping from page to page to find an example or something
similar (like RadioButton, but those have name so name.set_active() works).

Anyway, I will try to write some code to show what I mean.

Greg Wolski





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