+2007-01-24 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+
+ * src/hildon-get-password-dialog.c:
+ * src/hildon-helper.c:
+ * src/hildon-hvolumebar.c:
+ * src/hildon-login-dialog.c:
+ * src/hildon-note.c:
+ * src/hildon-note.h:
+ * src/hildon-number-editor.c: Cleaning up the documentation.
+
2007-01-23 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
* src/hildon-defines.h: Removing accidentaly left function prototypes.
object_class->get_property = hildon_get_password_get_property;
/* Install new properties */
+
+ /**
+ * HildonGetPasswordDialog:message:
+ *
+ * Optional message displayed to the user.
+ */
g_object_class_install_property
(object_class,
PROP_MESSAGE,
NULL,
G_PARAM_READWRITE));
+ /**
+ * HildonGetPasswordDialog:password:
+ *
+ * Password field contents.
+ */
g_object_class_install_property
(object_class,
PROP_PASSWORD,
"DEFAULT",
G_PARAM_READWRITE));
+ /**
+ * HildonGetPasswordDialog:numbers-only:
+ *
+ * If the password entry field is operating in numbers-only mode.
+ */
g_object_class_install_property
(object_class,
PROP_NUMBERS_ONLY,
- g_param_spec_boolean ("numbers_only",
+ g_param_spec_boolean ("numbers-only",
"NumbersOnly",
"Set entry to accept only numeric values",
FALSE,
G_PARAM_READWRITE));
+ /**
+ * HildonGetPasswordDialog:caption-label:
+ *
+ * Caption label.
+ */
g_object_class_install_property
(object_class,
PROP_CAPTION_LABEL,
"The text to be set as the caption label",
NULL,
G_PARAM_READWRITE));
-
+
+ /**
+ * HildonGetPasswordDialog:max-characters:
+ *
+ * Maximum characters than can be entered.
+ */
g_object_class_install_property
(object_class,
PROP_MAX_CHARS,
0,
G_PARAM_READWRITE));
+ /**
+ * HildonGetPasswordDialog:get-old:
+ *
+ * If the dialog is used to retrieve an old password or set a new one.
+ */
g_object_class_install_property
(object_class,
PROP_GET_OLD,
* hildon_get_password_dialog_get_password:
* @dialog: pointer to HildonSetPasswordDialog
*
- * Gets the currently entered password.
+ * Gets the currently entered password. The string should not be freed.
*
* Returns: current password entered by the user.
*/
* @dialog: the dialog
* @message: a custom message or some other descriptive text to be set
*
- * Sets the optional descriptive text.
+ * Sets the optional descriptive text displayed at the top of the dialog.
*/
void
hildon_get_password_dialog_set_message (HildonGetPasswordDialog *dialog,
*
* Checks if the given button event is a finger event.
*
- * return value : TRUE if the event is a button event.
+ * return value : TRUE if the event is a finger event.
**/
gboolean
hildon_helper_event_button_is_finger (GdkEventButton *event)
* @widget : a @gtkwidget to assign this logical font for.
* @logicalfontname : a gchar* with the logical font name to assign to the widget.
*
- * this function assigns a defined logical font to the @widget and all its child widgets.
+ * This function assigns a defined logical font to the @widget and all its child widgets.
* it also connects to the "style_set" signal which will retrieve & assign the new font
* for the given logical name each time the theme is changed.
- * the returned signal id can be used to disconnect the signal.
- * the previous signal (obtained by calling this function) is disconnected
+ * The returned signal id can be used to disconnect the signal.
+ * When calling multiple times the previous signal (obtained by calling this function) is disconnected
* automatically and should not be used.
*
* return value : the signal id that is triggered every time theme is changed. 0 if font set failed.
* It also connects to the "style_set" signal which will retrieve & assign the new color
* for the given logical name each time the theme is changed.
* The returned signal id can be used to disconnect the signal.
- * The previous signal (obtained by calling this function) is disconnected
+ * When calling multiple times the previous signal (obtained by calling this function) is disconnected
* automatically and should not be used.
*
* Example : If the style you want to modify is bg[NORMAL] then set rcflags to GTK_RC_BG and state to GTK_STATE_NORMAL.
static void
hildon_hvolumebar_map (GtkWidget *widget);
-
+/**
+ * hildon_hvolumebar_get_type:
+ *
+ * Returns GType for HildonHVolumebar.
+ *
+ * Returns: HildonHVolumebar type
+ */
GType G_GNUC_CONST
hildon_hvolumebar_get_type (void)
{
widget->allocation.width,
widget->allocation.height);
-
/* The contents of the widget can paint themselves */
/* FIXME Not sure if this is even needed here */
(*GTK_WIDGET_CLASS(parent_class)->expose_event) (widget, event);
static GtkDialogClass* parent_class;
+/**
+ * hildon_login_dialog_get_type:
+ *
+ * Returns GType for HildonLoginDialog.
+ *
+ * Returns: HildonLoginDialog type
+ */
GType G_GNUC_CONST
hildon_login_dialog_get_type (void)
{
object_class->get_property = hildon_login_dialog_get_property;
/* Install new properties */
+
+ /**
+ * HildonLoginDialog:message:
+ *
+ * Optional message displayed to the user.
+ */
g_object_class_install_property (object_class,
PROP_MESSAGE,
g_param_spec_string ("message",
NULL,
G_PARAM_READWRITE));
+ /**
+ * HildonLoginDialog:username:
+ *
+ * Contents of the username field.
+ */
g_object_class_install_property (object_class,
PROP_USERNAME,
g_param_spec_string ("username",
"Username field",
"DEFAULT",
G_PARAM_READWRITE));
-
+
+ /**
+ * HildonLoginDialog:password:
+ *
+ * Contents of the password field.
+ */
g_object_class_install_property (object_class,
PROP_PASSWORD,
g_param_spec_string ("password",
* @dialog: the dialog
* @msg: the message or some other descriptive text to be set
*
- * sets the optional descriptive text
+ * Sets the optional descriptive text that is displayed on the top
+ * of the dialog.
*/
void
hildon_login_dialog_set_message (HildonLoginDialog *dialog,
}
}
+/**
+ * hildon_note_get_type:
+ *
+ * Returns GType for HildonNote.
+ *
+ * Returns: HildonNote type
+ */
GType G_GNUC_CONST
hildon_note_get_type (void)
{
g_param_spec_enum ("note_type",
"note type",
"The type of the note dialog",
- hildon_note_type_get_type(),
+ hildon_note_get_type (),
HILDON_NOTE_CONFIRMATION_TYPE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
/**
* HildonNote:description:
*
- * Description for note.
+ * Description for the note.
*/
g_object_class_install_property (object_class,
PROP_HILDON_NOTE_DESCRIPTION,
/**
* HildonNote:icon:
*
- * Icon for note.
+ * Icon for the note.
*/
g_object_class_install_property (object_class,
PROP_HILDON_NOTE_ICON,
/**
* HildonNote:stock-icon:
*
- * Stock icon for note.
+ * Stock icon name for the note.
*/
g_object_class_install_property (object_class,
PROP_HILDON_NOTE_STOCK_ICON,
/**
* HildonNote:progressbar:
*
- * Progressbar for note.
+ * Progressbar for the note (if any).
*/
g_object_class_install_property (object_class,
PROP_HILDON_NOTE_PROGRESSBAR,
typedef struct _HildonNoteClass HildonNoteClass;
-typedef enum
-{
- HILDON_NOTE_CONFIRMATION_TYPE = 0,
- HILDON_NOTE_CONFIRMATION_BUTTON_TYPE,
- HILDON_NOTE_INFORMATION_TYPE,
- HILDON_NOTE_INFORMATION_THEME_TYPE,
- HILDON_NOTE_PROGRESSBAR_TYPE
-} HildonNoteType;
-
struct _HildonNote
{
GtkDialog parent;
const gchar *text_ok,
const gchar *text_cancel);
+typedef enum
+{
+ HILDON_NOTE_CONFIRMATION_TYPE = 0,
+ HILDON_NOTE_CONFIRMATION_BUTTON_TYPE,
+ HILDON_NOTE_INFORMATION_TYPE,
+ HILDON_NOTE_INFORMATION_THEME_TYPE,
+ HILDON_NOTE_PROGRESSBAR_TYPE
+} HildonNoteType;
+
G_END_DECLS
#endif /* __HILDON_NOTE_H__ */
static guint HildonNumberEditor_signal[LAST_SIGNAL] = {0};
+/**
+ * hildon_number_editor_get_type:
+ *
+ * Returns GType for HildonNumberEditor.
+ *
+ * Returns: HildonNumberEditor type
+ */
GType G_GNUC_CONST
hildon_number_editor_get_type (void)
{
gobject_class->set_property = hildon_number_editor_set_property;
gobject_class->get_property = hildon_number_editor_get_property;
+ /**
+ * HildonNumberEditor:value:
+ *
+ * The current value of the number editor.
+ */
g_object_class_install_property (gobject_class, PROP_VALUE,
g_param_spec_int ("value",
"Value",
return TRUE;
}
-
/**
* hildon_number_editor_new:
* @min: minimum accepted value