Re: GtkMessageDialog convenience method



On Sunday 28 May 2006 20:47, Murray Cumming wrote:
> On Thu, 2006-05-25 at 12:58 +0400, Vladimir Prus wrote:
> > Hi,
> > It looks like GtkMessageDialog does not provide a convenience method to
> > create a message both with both primary and secondary text and run it,
> > something like:
> >
> >    GtkMessageDialog::error(
> > 	window, "Something bad happened", "Check your karma");
> >
> > Instead, I need to use:
> >
> >    GtkMessageDialog d(..............);
> >    d.set_secondary_text(....);
> >    d.run();
> >
> > Is the lack of such convenience method by design, or nobody ever asked
> > for it, or nobody has the right yet to implement it?
>
> I think I just chose not to have too many versions of the constructor,
> and not to have constructors with too many parameters.

But what about adding *static method* 'error'? That's not a constructor, 
strictly speaking. And so, there will not be any potential ambiguity with 
existing constructors. What do you think?

- Volodya





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