[Gtk-sharp-list] Frame in Frame assertion errors

Rachel Hestilow hestilow@ximian.com
09 Jan 2003 01:28:26 -0600


--=-e9dle6HmrO/ccALWYMg8
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Nitpicking within.

On Thu, 2003-01-09 at 00:06, Mike Kestner wrote:
> On Tue, 2003-01-07 at 11:00, vanosten wrote:
>=20
> > public class EditView : Frame {
> >    =20
> >     private Frame mainF;
> >        =20
> >     public EditView(string aTitle) : base(aTitle) {
> >         VBox vbox =3D new VBox(false, 5);
> >         mainF =3D new Frame();
>=20
> This shouldn't even compile.  The Frame(void) constructor is marked
> protected.  You should only be able to call that from a subclass.  It
> should only be used by subclasses which are instantiating a native
> widget within the subclass and need to invoke a base ctor which
> essentially does nothing on the native side.
>=20

It is being called from a Frame subclass. Not that it makes it any more
correct, but that's why it compiles.

-- Rachel


--=-e9dle6HmrO/ccALWYMg8
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA+HSSaapOJdUj74F4RAqL0AKDDEd41DZPXhABLqaflURo8CXqmjgCeO0N3
E4TxwB5bk1kKiN7QYslGURw=
=/v/l
-----END PGP SIGNATURE-----

--=-e9dle6HmrO/ccALWYMg8--