[java-gnome-hackers] null values in .defs files
Brought to you by:
afcowie
|
From: Andrew C. <an...@op...> - 2013-02-23 00:57:23
|
On Fri, 2013-02-22 at 10:40 -0800, Niranjan Rao wrote:
> Not sure if this is already implemented and I am not aware of the
> syntax.
Hi Niranjan. Please start a new thread for new topics, eh?
> I am looking for a way to specify in defs file that is null value is
> legal value for a given parameter.
Add (null-ok) to the parameter line. From GtkButton
(define-method set_image
(of-object "GtkButton")
(c-name "gtk_button_set_image")
(return-type "none")
(parameters
'("GtkWidget*" "image" (null-ok))
)
)
AfC
Sydney
|