aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/gnunet_setup_gtk_main_window.glade110
-rw-r--r--src/setup/gnunet-setup-options.c36
-rw-r--r--src/setup/gnunet-setup.c3
3 files changed, 122 insertions, 27 deletions
diff --git a/contrib/gnunet_setup_gtk_main_window.glade b/contrib/gnunet_setup_gtk_main_window.glade
index cacb128b..62bd1377 100644
--- a/contrib/gnunet_setup_gtk_main_window.glade
+++ b/contrib/gnunet_setup_gtk_main_window.glade
@@ -16,13 +16,6 @@
16 <property name="step_increment">1</property> 16 <property name="step_increment">1</property>
17 <property name="page_increment">10</property> 17 <property name="page_increment">10</property>
18 </object> 18 </object>
19 <object class="GtkAdjustment" id="GNUNET_setup_exit_interface_mask_adjustment">
20 <property name="lower">1</property>
21 <property name="upper">127</property>
22 <property name="value">48</property>
23 <property name="step_increment">1</property>
24 <property name="page_increment">10</property>
25 </object>
26 <object class="GtkDialog" id="GNUNET_setup_dialog"> 19 <object class="GtkDialog" id="GNUNET_setup_dialog">
27 <property name="can_focus">False</property> 20 <property name="can_focus">False</property>
28 <property name="border_width">5</property> 21 <property name="border_width">5</property>
@@ -4158,6 +4151,72 @@
4158 <property name="position">0</property> 4151 <property name="position">0</property>
4159 </packing> 4152 </packing>
4160 </child> 4153 </child>
4154 <child>
4155 <object class="GtkFrame" id="GNUNET_setup_gns_frame">
4156 <property name="visible">True</property>
4157 <property name="can_focus">False</property>
4158 <property name="label_xalign">0</property>
4159 <property name="shadow_type">none</property>
4160 <child>
4161 <object class="GtkAlignment" id="GNUNET_setup_gns_alignment">
4162 <property name="visible">True</property>
4163 <property name="can_focus">False</property>
4164 <property name="left_padding">12</property>
4165 <child>
4166 <object class="GtkVBox" id="GNUNET_setup_gns_option_vbox">
4167 <property name="visible">True</property>
4168 <property name="can_focus">False</property>
4169 <child>
4170 <object class="GtkCheckButton" id="GNUNET_setup_gns_hijack_checkbutton">
4171 <property name="label" translatable="yes">Enable iptables-based DNS hijacking (GNU/Linux-only)</property>
4172 <property name="use_action_appearance">False</property>
4173 <property name="visible">True</property>
4174 <property name="can_focus">True</property>
4175 <property name="receives_default">False</property>
4176 <property name="draw_indicator">True</property>
4177 </object>
4178 <packing>
4179 <property name="expand">False</property>
4180 <property name="fill">False</property>
4181 <property name="padding">5</property>
4182 <property name="position">0</property>
4183 </packing>
4184 </child>
4185 <child>
4186 <object class="GtkCheckButton" id="GNUNET_setup_gns_auto_import_checkbutton">
4187 <property name="label" translatable="yes">Enable automatic shortening</property>
4188 <property name="use_action_appearance">False</property>
4189 <property name="visible">True</property>
4190 <property name="can_focus">True</property>
4191 <property name="receives_default">False</property>
4192 <property name="draw_indicator">True</property>
4193 </object>
4194 <packing>
4195 <property name="expand">False</property>
4196 <property name="fill">False</property>
4197 <property name="position">1</property>
4198 </packing>
4199 </child>
4200 </object>
4201 </child>
4202 </object>
4203 </child>
4204 <child type="label">
4205 <object class="GtkLabel" id="GNUNET_setup_gns_option_label">
4206 <property name="visible">True</property>
4207 <property name="can_focus">False</property>
4208 <property name="label" translatable="yes">&lt;b&gt;Configure GNUnet Naming System&lt;/b&gt;</property>
4209 <property name="use_markup">True</property>
4210 </object>
4211 </child>
4212 </object>
4213 <packing>
4214 <property name="expand">False</property>
4215 <property name="fill">False</property>
4216 <property name="padding">5</property>
4217 <property name="position">1</property>
4218 </packing>
4219 </child>
4161 </object> 4220 </object>
4162 <packing> 4221 <packing>
4163 <property name="position">6</property> 4222 <property name="position">6</property>
@@ -4167,7 +4226,7 @@
4167 <object class="GtkLabel" id="GNUNET_setup_namestore_label"> 4226 <object class="GtkLabel" id="GNUNET_setup_namestore_label">
4168 <property name="visible">True</property> 4227 <property name="visible">True</property>
4169 <property name="can_focus">False</property> 4228 <property name="can_focus">False</property>
4170 <property name="label" translatable="yes">N_amestore</property> 4229 <property name="label" translatable="yes">GNS &amp; N_amestore</property>
4171 <property name="use_underline">True</property> 4230 <property name="use_underline">True</property>
4172 </object> 4231 </object>
4173 <packing> 4232 <packing>
@@ -4176,7 +4235,7 @@
4176 </packing> 4235 </packing>
4177 </child> 4236 </child>
4178 <child> 4237 <child>
4179 <object class="GtkVBox" id="GNUNET_setup_gns_vbox"> 4238 <object class="GtkVBox" id="GNUNET_setup_gads_vbox">
4180 <property name="can_focus">False</property> 4239 <property name="can_focus">False</property>
4181 <child> 4240 <child>
4182 <object class="GtkHBox" id="GNUNET_setup_gns_top_hbox"> 4241 <object class="GtkHBox" id="GNUNET_setup_gns_top_hbox">
@@ -4542,10 +4601,10 @@
4542 </packing> 4601 </packing>
4543 </child> 4602 </child>
4544 <child type="tab"> 4603 <child type="tab">
4545 <object class="GtkLabel" id="GNUNET_setup_gns_label"> 4604 <object class="GtkLabel" id="GNUNET_setup_gads_label">
4546 <property name="visible">True</property> 4605 <property name="visible">True</property>
4547 <property name="can_focus">False</property> 4606 <property name="can_focus">False</property>
4548 <property name="label" translatable="yes">GN_S</property> 4607 <property name="label" translatable="yes">GAD_S</property>
4549 <property name="use_underline">True</property> 4608 <property name="use_underline">True</property>
4550 </object> 4609 </object>
4551 <packing> 4610 <packing>
@@ -4585,6 +4644,13 @@
4585 <action-widget response="-3">GNUNET_setup_save_button</action-widget> 4644 <action-widget response="-3">GNUNET_setup_save_button</action-widget>
4586 </action-widgets> 4645 </action-widgets>
4587 </object> 4646 </object>
4647 <object class="GtkAdjustment" id="GNUNET_setup_exit_interface_mask_adjustment">
4648 <property name="lower">1</property>
4649 <property name="upper">127</property>
4650 <property name="value">48</property>
4651 <property name="step_increment">1</property>
4652 <property name="page_increment">10</property>
4653 </object>
4588 <object class="GtkAdjustment" id="GNUNET_setup_fs_datacache_mysql_port_adjustment"> 4654 <object class="GtkAdjustment" id="GNUNET_setup_fs_datacache_mysql_port_adjustment">
4589 <property name="lower">1</property> 4655 <property name="lower">1</property>
4590 <property name="upper">65535</property> 4656 <property name="upper">65535</property>
@@ -4685,47 +4751,47 @@
4685 <data> 4751 <data>
4686 <row> 4752 <row>
4687 <col id="0">1</col> 4753 <col id="0">1</col>
4688 <col id="1" translatable="no">A</col> 4754 <col id="1">A</col>
4689 </row> 4755 </row>
4690 <row> 4756 <row>
4691 <col id="0">2</col> 4757 <col id="0">2</col>
4692 <col id="1" translatable="no">NS</col> 4758 <col id="1">NS</col>
4693 </row> 4759 </row>
4694 <row> 4760 <row>
4695 <col id="0">5</col> 4761 <col id="0">5</col>
4696 <col id="1" translatable="no">CNAME</col> 4762 <col id="1">CNAME</col>
4697 </row> 4763 </row>
4698 <row> 4764 <row>
4699 <col id="0">6</col> 4765 <col id="0">6</col>
4700 <col id="1" translatable="no">SOA</col> 4766 <col id="1">SOA</col>
4701 </row> 4767 </row>
4702 <row> 4768 <row>
4703 <col id="0">12</col> 4769 <col id="0">12</col>
4704 <col id="1" translatable="no">PTR</col> 4770 <col id="1">PTR</col>
4705 </row> 4771 </row>
4706 <row> 4772 <row>
4707 <col id="0">15</col> 4773 <col id="0">15</col>
4708 <col id="1" translatable="no">MX</col> 4774 <col id="1">MX</col>
4709 </row> 4775 </row>
4710 <row> 4776 <row>
4711 <col id="0">16</col> 4777 <col id="0">16</col>
4712 <col id="1" translatable="no">TXT</col> 4778 <col id="1">TXT</col>
4713 </row> 4779 </row>
4714 <row> 4780 <row>
4715 <col id="0">28</col> 4781 <col id="0">28</col>
4716 <col id="1" translatable="no">AAAA</col> 4782 <col id="1">AAAA</col>
4717 </row> 4783 </row>
4718 <row> 4784 <row>
4719 <col id="0">65536</col> 4785 <col id="0">65536</col>
4720 <col id="1" translatable="no">PKEY</col> 4786 <col id="1">PKEY</col>
4721 </row> 4787 </row>
4722 <row> 4788 <row>
4723 <col id="0">65538</col> 4789 <col id="0">65538</col>
4724 <col id="1" translatable="no">LEHO</col> 4790 <col id="1">LEHO</col>
4725 </row> 4791 </row>
4726 <row> 4792 <row>
4727 <col id="0">65539</col> 4793 <col id="0">65539</col>
4728 <col id="1" translatable="no">VPN</col> 4794 <col id="1">VPN</col>
4729 </row> 4795 </row>
4730 </data> 4796 </data>
4731 </object> 4797 </object>
diff --git a/src/setup/gnunet-setup-options.c b/src/setup/gnunet-setup-options.c
index 681d7c45..f4c0a1f7 100644
--- a/src/setup/gnunet-setup-options.c
+++ b/src/setup/gnunet-setup-options.c
@@ -781,10 +781,10 @@ static struct GNUNET_SETUP_VisibilitySpecification hide_vpn_tab[] = {
781 781
782 782
783/** 783/**
784 * Hide "gns" and "namestore" tabs if GNS not active. 784 * Hide "gads" and "namestore" tabs if GNS not active.
785 */ 785 */
786static struct GNUNET_SETUP_VisibilitySpecification hide_gns_tab[] = { 786static struct GNUNET_SETUP_VisibilitySpecification hide_gns_tabs[] = {
787 {"GNUNET_setup_gns_vbox", "(^| )gns($| )", NULL}, 787 {"GNUNET_setup_gads_vbox", "(^| )gns($| )", NULL},
788 {"GNUNET_setup_namestore_vbox", "(^| )gns($| )", NULL}, 788 {"GNUNET_setup_namestore_vbox", "(^| )gns($| )", NULL},
789 {NULL, NULL, NULL} 789 {NULL, NULL, NULL}
790}; 790};
@@ -1965,7 +1965,8 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
1965 NULL, NULL, 1965 NULL, NULL,
1966 NULL}, 1966 NULL},
1967 1967
1968 /* GNS treeview */ 1968
1969 /* GADS/GNS */
1969 1970
1970 { 1971 {
1971 "GNUNET_setup_general_services_gns_checkbutton", 1972 "GNUNET_setup_general_services_gns_checkbutton",
@@ -1977,7 +1978,32 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
1977 &load_option_list, 1978 &load_option_list,
1978 &save_option_list, "gns", 1979 &save_option_list, "gns",
1979 NULL, NULL, 1980 NULL, NULL,
1980 hide_gns_tab}, 1981 hide_gns_tabs},
1982
1983
1984 {
1985 "GNUNET_setup_gns_hijack_checkbutton",
1986 "toggled",
1987 "gns",
1988 "HIJACK_DNS",
1989 gettext_noop ("Should DNS queries be intercepted using iptables?"),
1990 "https://gnunet.org/gnunet-dns-setup",
1991 &load_yes_no,
1992 &save_yes_no, NULL,
1993 NULL, NULL,
1994 NULL},
1995
1996 {
1997 "GNUNET_setup_gns_auto_import_checkbutton",
1998 "toggled",
1999 "gns",
2000 "AUTO_IMPORT_PKEY",
2001 gettext_noop ("Should names be automatically learned and placed into the 'shorten' Zone?"),
2002 "https://gnunet.org/configuration-gns-shortening",
2003 &load_yes_no,
2004 &save_yes_no, NULL,
2005 NULL, NULL,
2006 NULL},
1981 2007
1982 /* END of list */ 2008 /* END of list */
1983 2009
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c
index fcf30ac0..df292fa5 100644
--- a/src/setup/gnunet-setup.c
+++ b/src/setup/gnunet-setup.c
@@ -233,6 +233,9 @@ load_options ()
233 GObject *widget; 233 GObject *widget;
234 char *value; 234 char *value;
235 235
236#ifndef LINUX
237 gtk_widget_hide (GTK_WIDGET (GNUNET_SETUP_get_object ("GNUNET_setup_gns_hijack_checkbutton")));
238#endif
236 i = 0; 239 i = 0;
237 while (NULL != option_specifications[i].widget_name) 240 while (NULL != option_specifications[i].widget_name)
238 { 241 {