diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-07-25 03:51:36 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-07-25 03:51:36 +0800 |
commit | 8f074fd0d4ecdc23f4713afaadd058035b809389 (patch) | |
tree | c5e8e4f7f78a30e96d31b4ee4e3cbdc9243cadc0 /lib/ephy-password-dialog.c | |
parent | 118c562a08fa4bb77f2c7042dcfb98c2ec535577 (diff) | |
download | gsoc2013-epiphany-8f074fd0d4ecdc23f4713afaadd058035b809389.tar gsoc2013-epiphany-8f074fd0d4ecdc23f4713afaadd058035b809389.tar.gz gsoc2013-epiphany-8f074fd0d4ecdc23f4713afaadd058035b809389.tar.bz2 gsoc2013-epiphany-8f074fd0d4ecdc23f4713afaadd058035b809389.tar.lz gsoc2013-epiphany-8f074fd0d4ecdc23f4713afaadd058035b809389.tar.xz gsoc2013-epiphany-8f074fd0d4ecdc23f4713afaadd058035b809389.tar.zst gsoc2013-epiphany-8f074fd0d4ecdc23f4713afaadd058035b809389.zip |
Fix default activation.
2006-07-24 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-password-dialog.c:
Fix default activation.
* data/glade/form-signing-dialog.glade:
* embed/mozilla/GeckoFormSigningDialog.cpp:
Fix content packing options.
Diffstat (limited to 'lib/ephy-password-dialog.c')
-rw-r--r-- | lib/ephy-password-dialog.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/ephy-password-dialog.c b/lib/ephy-password-dialog.c index 165d7a3ff..b17ce5bd7 100644 --- a/lib/ephy-password-dialog.c +++ b/lib/ephy-password-dialog.c @@ -76,6 +76,7 @@ struct _EphyPasswordDialogPrivate #endif EphyPasswordDialogFlags flags; guint checks : 5; + guint track_capslock : 1; }; enum @@ -239,6 +240,7 @@ entry_activate_cb (GtkWidget *entry, if (entry == priv->entry[i]) break; g_assert (i < N_ENTRIES); + ++i; for ( ; i < N_ENTRIES; ++i) if (priv->entry[i] != NULL && GTK_WIDGET_IS_SENSITIVE (priv->entry[i])) break; @@ -454,6 +456,16 @@ ephy_password_dialog_constructor (GType type, priv->checks |= CHECK_PWD_MATCH; } + if (priv->flags & (EPHY_PASSWORD_DIALOG_FLAGS_SHOW_PASSWORD | + EPHY_PASSWORD_DIALOG_FLAGS_SHOW_NEW_PASSWORD)) + { + priv->track_capslock = TRUE; +// gtk_table_attach (table, widget, +// 1, 2, row, row + 1, +// GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); + + } + /* Password quality meter */ /* TODO: We need a better password quality meter */ if (priv->flags & EPHY_PASSWORD_DIALOG_FLAGS_SHOW_NEW_PASSWORD && @@ -488,6 +500,8 @@ ephy_password_dialog_constructor (GType type, priv->remember_button[2] = gtk_radio_button_new_with_mnemonic (group, _("Save password in _keyring")); gtk_box_pack_start (GTK_BOX (rbox), priv->remember_button[2], FALSE, FALSE, 0); + + gtk_widget_set_no_show_all (rbox, !gnome_keyring_is_available ()); } gtk_dialog_add_button (dialog, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); @@ -705,3 +719,10 @@ ephy_password_dialog_get_new_password (EphyPasswordDialog *dialog) return gtk_entry_get_text (GTK_ENTRY (priv->entry[NEW_PASSWORD_ENTRY])); } + +void +ephy_password_dialog_fill (EphyPasswordDialog *dialog, + GList *attributes_list) +{ + +} |