aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-12-08 22:00:11 +0000
committerChristian Grothoff <christian@grothoff.org>2012-12-08 22:00:11 +0000
commitfafd5ae157860508be87a3ffcd7f1762524eae92 (patch)
treed74621f5c1119fe7822165a6b629a22df0091d89 /src
parentd73a84dd81d8a2272e40122d0b67c35f301e38bc (diff)
downloadgnunet-gtk-fafd5ae157860508be87a3ffcd7f1762524eae92.tar.gz
gnunet-gtk-fafd5ae157860508be87a3ffcd7f1762524eae92.zip
adding GNS options to gnunet-setup (#2682)
Diffstat (limited to 'src')
-rw-r--r--src/setup/gnunet-setup-options.c36
-rw-r--r--src/setup/gnunet-setup.c3
2 files changed, 34 insertions, 5 deletions
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 {