aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-07-08 14:54:21 +0800
committerLAN-TW <lantw44@gmail.com>2013-07-08 14:57:33 +0800
commitedb1c10e6114818d00d6cb7c6ed67a76193df22d (patch)
tree5f15cedebfb743cff0fb67a42f7bbef5a8b56f77 /src
parent43bc4e374edc6699382e601beff0c3f750cb428e (diff)
downloadgsoc2013-epiphany-edb1c10e6114818d00d6cb7c6ed67a76193df22d.tar.gz
gsoc2013-epiphany-edb1c10e6114818d00d6cb7c6ed67a76193df22d.tar.zst
gsoc2013-epiphany-edb1c10e6114818d00d6cb7c6ed67a76193df22d.zip
Add a checkbutton to toggle the automatical extraction
Diffstat (limited to 'src')
-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 932da6336..6c4326434 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -968,6 +968,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 9f42c9d18..e0b0554eb 100644
--- a/src/resources/prefs-dialog.ui
+++ b/src/resources/prefs-dialog.ui
@@ -272,6 +272,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>