![]() |
![]() |
![]() |
hildon 2.0.6 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
HildonLoginDialogHildonLoginDialog — A widget which allows a user to enter an username and a password. |
HildonLoginDialog; HildonLoginDialogClass; GtkWidget * hildon_login_dialog_new (GtkWindow *parent
); GtkWidget * hildon_login_dialog_new_with_default (GtkWindow *parent
,const gchar *name
,const gchar *password
); const gchar * hildon_login_dialog_get_username (HildonLoginDialog *dialog
); const gchar * hildon_login_dialog_get_password (HildonLoginDialog *dialog
); void hildon_login_dialog_set_message (HildonLoginDialog *dialog
,const gchar *msg
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----HildonLoginDialog
"message" gchar* : Read / Write "password" gchar* : Read / Write "username" gchar* : Read / Write
HildonLoginDialog is used to enter a username and password when accessing a password protected area. The widget performs no input checking and is used only for retrieving the username and a password.
GtkWidget * hildon_login_dialog_new (GtkWindow *parent
);
Creates a new HildonLoginDialog widget with Ok and Close buttons.
|
the parent window of the dialog |
Returns : |
the newly created HildonLoginDialog |
GtkWidget * hildon_login_dialog_new_with_default (GtkWindow *parent
,const gchar *name
,const gchar *password
);
Same as hildon_login_dialog_new but with a default username and password.
|
the parent window of the dialog |
|
default username, NULL if unset |
|
default password, NULL if unset |
Returns : |
the newly created HildonLoginDialog |
const gchar * hildon_login_dialog_get_username (HildonLoginDialog *dialog
);
Gets the text that's in the username entry.
|
the dialog |
Returns : |
a pointer to the name string. You should not modify it. |
const gchar * hildon_login_dialog_get_password (HildonLoginDialog *dialog
);
Gets the text that's in the password entry.
|
the dialog |
Returns : |
a pointer to the password string. You should not modify it. |
void hildon_login_dialog_set_message (HildonLoginDialog *dialog
,const gchar *msg
);
Sets the optional descriptive text that is displayed on the top of the dialog.
|
the dialog |
|
the message or some other descriptive text to be set |
"message"
property"message" gchar* : Read / Write
Optional message displayed to the user.
Default value: NULL
"password"
property"password" gchar* : Read / Write
Contents of the password field.
Default value: "DEFAULT"
"username"
property"username" gchar* : Read / Write
Contents of the username field.
Default value: "DEFAULT"