RE: About dialog API



> From: Owen Taylor [mailto:otaylor redhat com] 
>  d) Do we need a language-binding friendly way of accessing the 
>     unique per-toplevel dialog? gnome_about_show() isn't going
>     to be usable from a language binding,

If it's 1-to-1 with a window, a bit like GtkTreeSelection is 1-to-1 with
GtkTreeView, then it might not be tood bad.

Then, in C++, we'd have Gtk::AboutDialog* pAboutDialog =
window.get_about_dialog();

We wouldn't instantiate it so we wouldn't worry about destroying it. It's a
bit strange (GtkTreeSelection is a bit strange) but it's not too bad.

> and even the general
>     approach doesn't make a lot of sense for a language like
>     C++ where you don't have varargs lists.

You mean all the contributors/translators/testers/yadayada/? We'd just have
overloaded C++ methods, and use lists as parameters. It hasn't been a
problem for GnomeAbout.

Murray Cumming
murrayc usa net
www.murrayc.com 



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