- GObjectClass *object_class = G_OBJECT_CLASS(class);
-
- parent_class = g_type_class_peek_parent(class);
-
- /* Override virtual functions */
- object_class->set_property = hildon_get_password_set_property;
- object_class->get_property = hildon_get_password_get_property;
-
- /* Install new properties */
- g_object_class_install_property
- (object_class,
- PROP_DOMAIN,
- g_param_spec_string ("domain",
- "Domain",
- "Set domain(content) for optional label.",
- NULL,
- G_PARAM_READWRITE));
-
- g_object_class_install_property
- (object_class,
- PROP_PASSWORD,
- g_param_spec_string ("password",
- "Password",
- "Set content for password entry",
- "DEFAULT",
- G_PARAM_READWRITE));
-
- g_object_class_install_property
- (object_class,
- PROP_NUMBERS_ONLY,
- g_param_spec_boolean ("numbers_only",
- "NumbersOnly",
- "Set entry to accept only numeric values",
- FALSE,
- G_PARAM_READWRITE));
-
- g_object_class_install_property
- (object_class,
- PROP_CAPTION_LABEL,
- g_param_spec_string ("caption-label",
- "Caption Label",
- "The text to be set as the caption label",
- NULL,
- G_PARAM_READWRITE));
-
- g_object_class_install_property
- (object_class,
- PROP_MAX_CHARS,
- g_param_spec_int ("max-characters",
- "Maximum Characters",
- "The maximum number of characters the password"
- " dialog accepts",
- G_MININT,
- G_MAXINT,
- 0,
- G_PARAM_READWRITE));
-
- g_object_class_install_property
- (object_class,
- PROP_GET_OLD,
- g_param_spec_boolean ("get-old",
- "Get Old Password",
- "TRUE if dialog is a get old password dialog, "
- "FALSE if dialog is a get password dialog",
- FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ /* Override virtual functions */
+ object_class->set_property = hildon_get_password_set_property;
+ 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,
+ g_param_spec_string ("message",
+ "Message",
+ "Set optional message",
+ NULL,
+ G_PARAM_READWRITE));
+
+ /**
+ * HildonGetPasswordDialog:password:
+ *
+ * Password field contents.
+ */
+ g_object_class_install_property
+ (object_class,
+ PROP_PASSWORD,
+ g_param_spec_string ("password",
+ "Password",
+ "Password field",
+ "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",
+ "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,
+ g_param_spec_string ("caption-label",
+ "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,
+ g_param_spec_int ("max-characters",
+ "Maximum Characters",
+ "The maximum number of characters the password"
+ " dialog accepts",
+ G_MININT,
+ G_MAXINT,
+ 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,
+ g_param_spec_boolean ("get-old",
+ "Get Old Password",
+ "TRUE if dialog is a get old password dialog, "
+ "FALSE if dialog is a get password dialog",
+ FALSE,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));