diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-07-22 03:57:05 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-07-22 03:57:05 +0800 |
commit | 70db36f25685121fb5ef7da0958ba7170760f2b2 (patch) | |
tree | 9b5bd91289b45f150d468f6eb72587487d2c310f | |
parent | 800d438285ec852a357c2703a931a5c139b09cf2 (diff) | |
download | gsoc2013-epiphany-70db36f25685121fb5ef7da0958ba7170760f2b2.tar.gz gsoc2013-epiphany-70db36f25685121fb5ef7da0958ba7170760f2b2.tar.zst gsoc2013-epiphany-70db36f25685121fb5ef7da0958ba7170760f2b2.zip |
Add a way to turn off password remembering. Bug #332374.
2006-07-21 Christian Persch <chpe@cvs.gnome.org>
* data/epiphany.schemas.in:
* data/glade/prefs-dialog.glade:
* embed/mozilla/mozilla-notifiers.cpp:
* lib/ephy-prefs.h:
* src/prefs-dialog.c:
Add a way to turn off password remembering. Bug #332374.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | data/epiphany.schemas.in | 11 | ||||
-rw-r--r-- | data/glade/prefs-dialog.glade | 71 | ||||
-rw-r--r-- | embed/mozilla/mozilla-notifiers.cpp | 3 | ||||
-rw-r--r-- | lib/ephy-prefs.h | 3 | ||||
-rw-r--r-- | src/prefs-dialog.c | 2 |
6 files changed, 100 insertions, 0 deletions
@@ -1,6 +1,16 @@ 2006-07-21 Christian Persch <chpe@cvs.gnome.org> * data/epiphany.schemas.in: + * data/glade/prefs-dialog.glade: + * embed/mozilla/mozilla-notifiers.cpp: + * lib/ephy-prefs.h: + * src/prefs-dialog.c: + + Add a way to turn off password remembering. Bug #332374. + +2006-07-21 Christian Persch <chpe@cvs.gnome.org> + + * data/epiphany.schemas.in: * data/glade/print.glade: * embed/mozilla/GeckoPrintService.cpp: * embed/mozilla/GeckoPrintService.h: diff --git a/data/epiphany.schemas.in b/data/epiphany.schemas.in index 382e8a1f3..001b61e34 100644 --- a/data/epiphany.schemas.in +++ b/data/epiphany.schemas.in @@ -414,6 +414,17 @@ </locale> </schema> <schema> + <key>/schemas/apps/epiphany/general/remember_passwords</key> + <applyto>/apps/epiphany/general/remember_passwords</applyto> + <owner>epiphany</owner> + <type>bool</type> + <default>true</default> + <locale name="C"> + <short>Remember passwords</short> + <long>Whether to store and prefill passwords in web sites.</long> + </locale> + </schema> + <schema> <key>/schemas/apps/epiphany/web/allow_popups</key> <applyto>/apps/epiphany/web/allow_popups</applyto> <owner>epiphany</owner> diff --git a/data/glade/prefs-dialog.glade b/data/glade/prefs-dialog.glade index eb7c33262..c9b71860f 100644 --- a/data/glade/prefs-dialog.glade +++ b/data/glade/prefs-dialog.glade @@ -896,6 +896,77 @@ </child> <child> + <widget class="GtkVBox" id="vbox199"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">6</property> + + <child> + <widget class="GtkLabel" id="label1313"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>Passwords</b></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkAlignment" id="alignment16"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkCheckButton" id="remember_passwords_checkbutton"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">_Remember passwords</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <property name="active">False</property> + <property name="inconsistent">False</property> + <property name="draw_indicator">True</property> + </widget> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + + <child> <widget class="GtkVBox" id="vbox162"> <property name="visible">True</property> <property name="homogeneous">False</property> diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp index 2682aa4ac..5fc67f337 100644 --- a/embed/mozilla/mozilla-notifiers.cpp +++ b/embed/mozilla/mozilla-notifiers.cpp @@ -470,6 +470,9 @@ static const PrefData notifier_entries[] = { CONF_SECURITY_COOKIES_ACCEPT, "network.cookie.cookieBehavior", transform_cookies_accept_mode }, + { CONF_PRIVACY_REMEMBER_PASSWORDS, + "signon.rememberSignons", + mozilla_notifier_transform_bool } }; gboolean diff --git a/lib/ephy-prefs.h b/lib/ephy-prefs.h index 6082d1c09..65a52ac47 100644 --- a/lib/ephy-prefs.h +++ b/lib/ephy-prefs.h @@ -68,6 +68,9 @@ G_BEGIN_DECLS #define CONF_DESKTOP_BG_PICTURE "/desktop/gnome/background/picture_filename" #define CONF_DESKTOP_BG_TYPE "/desktop/gnome/background/picture_options" +/* Privacy */ +#define CONF_PRIVACY_REMEMBER_PASSWORDS "/apps/epiphany/general/remember_passwords" + G_END_DECLS #endif diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index eedc1ffdc..74d922cd5 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -138,6 +138,7 @@ enum ALLOW_JAVA_PROP, ALLOW_JS_PROP, ACCEPT_COOKIES_PROP, + REMEMBER_PASSWORDS_PROP, DISK_CACHE_PROP, CLEAR_CACHE_BUTTON_PROP, @@ -182,6 +183,7 @@ EphyDialogProperty properties [] = { "enable_java_checkbutton", CONF_SECURITY_JAVA_ENABLED, PT_AUTOAPPLY, 0 }, { "enable_javascript_checkbutton", CONF_SECURITY_JAVASCRIPT_ENABLED, PT_AUTOAPPLY, 0 }, { "cookies_radiobutton", CONF_SECURITY_COOKIES_ACCEPT, PT_AUTOAPPLY, G_TYPE_STRING }, + { "remember_passwords_checkbutton", CONF_PRIVACY_REMEMBER_PASSWORDS, PT_AUTOAPPLY, 0 }, { "disk_cache_spin", CONF_NETWORK_CACHE_SIZE, PT_AUTOAPPLY, 0 }, { "clear_cache_button", NULL, PT_NORMAL, 0 }, |