X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/e10d6e307623d0952f6e1f5d9fee8720ddab4808..1656cfade4879af0cb003e3847e58264caa5781f:/examples/gtk-button-count.gob diff --git a/examples/gtk-button-count.gob b/examples/gtk-button-count.gob index 0d039dc..1982146 100644 --- a/examples/gtk-button-count.gob +++ b/examples/gtk-button-count.gob @@ -1,3 +1,10 @@ +/* + * This is an example button widget which counts the number of clicks + * + * It is also showing how you can use inline gtk-doc like documentation + * which will be correctly translated and put into the resulting source + * file + */ class Gtk:Button:Count from Gtk:Button { public int count; @@ -14,6 +21,13 @@ class Gtk:Button:Count from Gtk:Button { button->count = 0; } + /** + * new: + * + * Makes a new #GtkButtonCount widget + * + * Returns: a new widget + **/ public GtkWidget * new(void) @@ -21,8 +35,14 @@ class Gtk:Button:Count from Gtk:Button { return GTK_WIDGET(GET_NEW); } - /* new button but with a label inside it already, the 'label' - argument must not be NULL or we will return NULL */ + /** + * new_with_label: + * @label: the label text + * + * Makes a new #GtkButtonCount widget with a label + * + * Returns: a new widget + **/ public GtkWidget * new_with_label(char *label (check null)) onerror NULL