From: Claudio Saavedra Date: Mon, 15 Jun 2009 22:03:19 +0000 (+0300) Subject: Documentation improvements for HildonNote X-Git-Tag: 2.1.84-1~18 X-Git-Url: http://git.maemo.org/git/?p=hildon;a=commitdiff_plain;h=fb5b64528723fe1399d169a04d9f20dae39bea8d Documentation improvements for HildonNote * hildon/hildon-note.c: (hildon_note_class_init): Several documentation improvements to the HildonNote widget. --- diff --git a/ChangeLog b/ChangeLog index a9928ed..3655cbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-06-16 Claudio Saavedra + * hildon/hildon-note.c: (hildon_note_class_init): Several + documentation improvements to the HildonNote widget. + +2009-06-16 Claudio Saavedra + * hildon/hildon-note.h: Document the HildonNoteType enumeration. Fixes: MB#4556 (HildonNoteType is undocumented) diff --git a/hildon/hildon-note.c b/hildon/hildon-note.c index 53ca1e9..2c1efde 100644 --- a/hildon/hildon-note.c +++ b/hildon/hildon-note.c @@ -28,8 +28,8 @@ * * #HildonNote is a convenient way to prompt users for a small amount of * input. A simple note contains an information text and, in case of - * confirmation notes, it shows buttons to confirm or cancel. It also can - * include a progress bar. + * confirmation notes, it shows buttons to confirm or cancel. It can also + * include a #GtkProgressBar. * * This widget provides convenient functions to create either * information notes, confirmation notes or cancel notes, which are @@ -336,6 +336,12 @@ hildon_note_class_init (HildonNoteClass *class) widget_class->realize = hildon_note_realize; widget_class->unrealize = hildon_note_unrealize; + /** + * HildonNote:type: + * + * The type of the #HildonNote, defining its contents, behavior, and + * theming. + */ g_object_class_install_property (object_class, PROP_HILDON_NOTE_TYPE, g_param_spec_enum ("note-type", @@ -348,7 +354,7 @@ hildon_note_class_init (HildonNoteClass *class) /** * HildonNote:description: * - * Description for the note. + * The text that appears in the #HildonNote. */ g_object_class_install_property (object_class, PROP_HILDON_NOTE_DESCRIPTION, @@ -391,7 +397,7 @@ hildon_note_class_init (HildonNoteClass *class) /** * HildonNote:progressbar: * - * Progressbar for the note (if any). + * If set, a #GtkProgressBar visible in the note. */ g_object_class_install_property (object_class, PROP_HILDON_NOTE_PROGRESSBAR, @@ -976,7 +982,7 @@ hildon_note_new_cancel_with_progress_bar (GtkWindow *parent, * @text: sets the button text and if there is two buttons in dialog, * the button texts will be <text>, "Cancel". * - * Sets the button text to be used by the hildon_note widget. + * Sets the text of the button in @note. */ void hildon_note_set_button_text (HildonNote *note, @@ -1004,7 +1010,7 @@ hildon_note_set_button_text (HildonNote *note, * @text_ok: the new text of the default OK button * @text_cancel: the new text of the default cancel button * - * Sets the button texts to be used by this hildon_note widget. + * Sets the text for the buttons in @note. */ void hildon_note_set_button_texts (HildonNote *note,