Date: Tue, 7 Oct 2003 15:46:43 +0200 From: Claudio Sacerdoti Coen To: lablgtk at kaba.or.jp Cc: Luca Padovani , Stefano Zacchiroli Subject: Serious problem with switch_page Message-ID: <20031007134643.GA4505 at cs.unibo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Dear lablgtk2-gurus, I have spotted a serious error in gtkPack.props. The first argument of the switch_page signal is declared to have type GObject. But this is not true: a notebook page in gtk2 is implemented as a simple structure and not as a gobject ;-( As a consequence, the first time the switch_page is called, a marshal2 error occurs. (Indeed the error is in the gobject data_conv, since it tries to call the glib2 functions to determine the type of the object). I think that the patch would be: 1. either bind the notebook_page struct in the traditional way (best choice) 2. or put a dummy argument data conversion (Pointer? int? gint?) in place of GObject. This should work since (bad feature) you suppress the first argument of the switch_page callback in gPack.ml Without one of the two patches, the notebook class is not very useful at all. Cheers, C.S.C. -- ---------------------------------------------------------------- Real name: Claudio Sacerdoti Coen PhD Student in Computer Science at University of Bologna E-mail: sacerdot@cs.unibo.it http://www.cs.unibo.it/~sacerdot ----------------------------------------------------------------