X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=hildon%2Fhildon-set-password-dialog.c;h=e4c0ca389b2aee89bc489ed70e2e8026a0880941;hb=5684ea57fada5d9a9f025f9acd5a5d2dbba55123;hp=57bcf42caf87e1fc14928c59adcdae3dbb61e82d;hpb=25f7b7b567dcb00754c91bb446d3b39c514b633e;p=hildon diff --git a/hildon/hildon-set-password-dialog.c b/hildon/hildon-set-password-dialog.c index 57bcf42..e4c0ca3 100644 --- a/hildon/hildon-set-password-dialog.c +++ b/hildon/hildon-set-password-dialog.c @@ -252,7 +252,8 @@ create_contents (HildonSetPasswordDialog *dialog gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), priv->checkbox, TRUE, TRUE, 0); gtk_widget_show (priv->checkbox); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->checkbox), TRUE); + hildon_check_button_set_active (HILDON_CHECK_BUTTON (priv->checkbox), + TRUE); gtk_signal_connect (GTK_OBJECT (priv->checkbox), "toggled", G_CALLBACK (hildon_checkbox_toggled), dialog); @@ -428,7 +429,7 @@ hildon_set_password_response_change (GtkDialog *dialog, /* User accepted the dialog */ if (arg1 == GTK_RESPONSE_OK) { /* Is the checkbox marked, so password protection is still in use? */ - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->checkbox))){ + if (hildon_check_button_get_active (HILDON_CHECK_BUTTON (priv->checkbox))){ /* Yes, Something is given as password as well? */ if (text1[0] != '\0') { if (strcmp (text1, text2) == 0) { @@ -590,7 +591,7 @@ hildon_checkbox_toggled (GtkWidget *widget, /* If the user enabled/disabled the password protection feature we enable/disable password entries accordingly */ - active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)); + active = hildon_check_button_get_active (HILDON_CHECK_BUTTON (widget)); gtk_widget_set_sensitive (GTK_WIDGET (priv->pwd1st_entry), active); gtk_widget_set_sensitive (GTK_WIDGET (priv->pwd2nd_entry), active); }