RE: About dialog API



On Thu, 2003-04-10 at 13:10, Murray Cumming Comneon com wrote:
> > 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.

My concern was rather that a g_object_new() style:

 gtk_about_dialog_show (parent, ...);

Where a varargs list of properties is passed in, doesn't translate
into a usable C++ API, even if we had gtk_about_dialog_showv() that
took an array of GParameter like g_object_newv().

Regards,
                                     Owen





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