Delivered-To: lablgtk at yquem.inria.fr Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: RE : [Lablgtk] Low-level binding questions Date: Tue, 11 Sep 2007 08:14:49 +0200 Message-ID: <4B7C772BD7DD004CA9C511AB7F83E8A8123DCF at LARICIO.intra.cea.fr> Thread-Topic: RE : [Lablgtk] Low-level binding questions Thread-Index: Acf0KjJ0dPtlZJA3QWmy9ApPDq5C5wADypot References: From: "MONATE Benjamin 205998" To: "Dawid Toton" , Content-Type: text/plain; charset="iso-8859-1" Content-Length: 1181 Hi, Congratulation for your progresses!=20 Here follow a 2 quick answers : =20 15) What classes need their gtk_*_get_type function to be called? All=20 GObject's descendants? Interfaces (like GtkPrintOperationPreview)? AFAIK, all classes having a GType need this call. 16) When GTK function resturns potiner - have I always check it for=20 null? What macros are intended for that? For example, in ml_gaction.c I read: ML_2 (gtk_action_group_get_action, GtkActionGroup_val, String_val,=20 Val_GAnyObject) Where is the check for null pointer? Will it throw an exception? What = should be done in cases, when a function is allowed to return null=20 pointer in certain cases? Whenever a function possibly returns a NULL pointer, you may want to = have it return an option type in OCaml. "Val_option" defined in wrappers.h is your friend in this case. Cheers Benjamin _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk