aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-07-08 14:54:21 +0800
committerLAN-TW <lantw44@gmail.com>2013-09-16 22:04:47 +0800
commita714aaca1a27be4d2982654eb8503249ba6f2c55 (patch)
tree6061da7a4e6a81c1309fd86183aa334fb66488bf
parent688262dbe73ccd0c2aa357d03133d3982c0fd459 (diff)
downloadgsoc2013-epiphany-a714aaca1a27be4d2982654eb8503249ba6f2c55.tar
gsoc2013-epiphany-a714aaca1a27be4d2982654eb8503249ba6f2c55.tar.gz
gsoc2013-epiphany-a714aaca1a27be4d2982654eb8503249ba6f2c55.tar.bz2
gsoc2013-epiphany-a714aaca1a27be4d2982654eb8503249ba6f2c55.tar.lz
gsoc2013-epiphany-a714aaca1a27be4d2982654eb8503249ba6f2c55.tar.xz
gsoc2013-epiphany-a714aaca1a27be4d2982654eb8503249ba6f2c55.tar.zst
gsoc2013-epiphany-a714aaca1a27be4d2982654eb8503249ba6f2c55.zip
Add a checkbutton to toggle the automatical extraction
-rw-r--r--src/prefs-dialog.c3
-rw-r--r--src/resources/prefs-dialog.ui18
2 files changed, 21 insertions, 0 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index fd322ef33..f5591cf69 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -944,6 +944,9 @@ static const PrefsDialogPreference preferences[] =
{ "automatic_downloads_checkbutton", "active",
EPHY_PREFS_SCHEMA, EPHY_PREFS_AUTO_DOWNLOADS,
G_SETTINGS_BIND_DEFAULT, NULL, NULL },
+ { "extract_downloaded_archives_checkbutton", "active",
+ EPHY_PREFS_SCHEMA, EPHY_PREFS_EXTRACT_DOWNLOADED_ARCHIVES,
+ G_SETTINGS_BIND_DEFAULT, NULL, NULL },
{ "remember_passwords_checkbutton", "active",
EPHY_PREFS_SCHEMA, EPHY_PREFS_REMEMBER_PASSWORDS,
G_SETTINGS_BIND_DEFAULT, NULL, NULL },
diff --git a/src/resources/prefs-dialog.ui b/src/resources/prefs-dialog.ui
index 63ca72e7f..22faecf73 100644
--- a/src/resources/prefs-dialog.ui
+++ b/src/resources/prefs-dialog.ui
@@ -284,6 +284,24 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkCheckButton" id="extract_downloaded_archives_checkbutton">
+ <property name="label" translatable="yes">Automatically e_xtract downloaded archives</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
</child>
</object>