On Fri, 2007-02-02 at 15:40 +0530, Sameer Sahasrabuddhe wrote:
> On 2/1/07, Lars Clausen <[EMAIL PROTECTED]> wrote:
> 
> > > http://bugzilla.gnome.org/show_bug.cgi?id=60331
> > >
> 
> > The standard appears to be that the _new() functions return a GtkWidget
> > that you then cast back, see http://gtk.org/tutorial/x2202.html --
> > though not all standard Gtk widgets follow this, though there may be a
> > reason behind that.
> 
> This seems to be exactly what I was looking for. Will get into the
> details over the weekend. But I also had another thought --- is it
> worth creating a "correct" custom gtk widget? We could instead just
> allow the custom widget constructors to directly connect relevant
> signals!

I do think it's worth it to make them correct, for several reasons: 1)
it will make them reusable in other contexts, 2) it means that normal
and custom gtk widgets behave the same, 3) it makes it easier to find
out where things are happening in the future, and 4) correct does tend
to be the good solution in the long term.

-Lars

_______________________________________________
Dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia

Reply via email to