aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-01 16:37:20 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-01 16:37:20 +0000
commitca09012a384ef65288d99ee67be64dc15f66ad31 (patch)
treed225ecbc050a188ada37d32a1998cc5be6950967
parente518c7ce8b699f96d06e2f00b12ec0f576a8c524 (diff)
downloadgnunet-gtk-ca09012a384ef65288d99ee67be64dc15f66ad31.tar.gz
gnunet-gtk-ca09012a384ef65288d99ee67be64dc15f66ad31.zip
-implementing 2467
-rw-r--r--contrib/gnunet_setup_gtk_main_window.glade8
-rw-r--r--src/setup/gnunet-setup-gns.c30
2 files changed, 31 insertions, 7 deletions
diff --git a/contrib/gnunet_setup_gtk_main_window.glade b/contrib/gnunet_setup_gtk_main_window.glade
index 85d87060..83ab55ba 100644
--- a/contrib/gnunet_setup_gtk_main_window.glade
+++ b/contrib/gnunet_setup_gtk_main_window.glade
@@ -4508,8 +4508,8 @@
4508 </child> 4508 </child>
4509 </object> 4509 </object>
4510 <packing> 4510 <packing>
4511 <property name="expand">True</property> 4511 <property name="expand">False</property>
4512 <property name="fill">True</property> 4512 <property name="fill">False</property>
4513 <property name="position">0</property> 4513 <property name="position">0</property>
4514 </packing> 4514 </packing>
4515 </child> 4515 </child>
@@ -4587,8 +4587,8 @@
4587 </child> 4587 </child>
4588 </object> 4588 </object>
4589 <packing> 4589 <packing>
4590 <property name="expand">True</property> 4590 <property name="expand">False</property>
4591 <property name="fill">True</property> 4591 <property name="fill">False</property>
4592 <property name="position">0</property> 4592 <property name="position">0</property>
4593 </packing> 4593 </packing>
4594 </child> 4594 </child>
diff --git a/src/setup/gnunet-setup-gns.c b/src/setup/gnunet-setup-gns.c
index 6717d563..4cea2bd9 100644
--- a/src/setup/gnunet-setup-gns.c
+++ b/src/setup/gnunet-setup-gns.c
@@ -1823,27 +1823,51 @@ load_zone (const char *zonename)
1823} 1823}
1824 1824
1825 1825
1826/**
1827 * A different zone was selected in the zone toggle bar. Load the
1828 * appropriate zone.
1829 *
1830 * @param togglebutton button that was toggled (could be to "on" or "off", we only react to "on")
1831 * @param user_data builder, unused
1832 */
1826void 1833void
1827GNUNET_setup_gns_shorten_zone_selection_radiobutton_toggled_cb (GtkToggleButton *togglebutton, 1834GNUNET_setup_gns_shorten_zone_selection_radiobutton_toggled_cb (GtkToggleButton *togglebutton,
1828 gpointer user_data) 1835 gpointer user_data)
1829{ 1836{
1830 GNUNET_break (0); 1837 if (gtk_toggle_button_get_active (togglebutton))
1838 load_zone ("SHORTEN_ZONEKEY");
1831} 1839}
1832 1840
1833 1841
1842/**
1843 * A different zone was selected in the zone toggle bar. Load the
1844 * appropriate zone.
1845 *
1846 * @param togglebutton button that was toggled (could be to "on" or "off", we only react to "on")
1847 * @param user_data builder, unused
1848 */
1834void 1849void
1835GNUNET_setup_gns_private_zone_selection_radiobutton_toggled_cb (GtkToggleButton *togglebutton, 1850GNUNET_setup_gns_private_zone_selection_radiobutton_toggled_cb (GtkToggleButton *togglebutton,
1836 gpointer user_data) 1851 gpointer user_data)
1837{ 1852{
1838 GNUNET_break (0); 1853 if (gtk_toggle_button_get_active (togglebutton))
1854 load_zone ("PRIVATE_ZONEKEY");
1839} 1855}
1840 1856
1841 1857
1858/**
1859 * A different zone was selected in the zone toggle bar. Load the
1860 * appropriate zone.
1861 *
1862 * @param togglebutton button that was toggled (could be to "on" or "off", we only react to "on")
1863 * @param user_data builder, unused
1864 */
1842void 1865void
1843GNUNET_setup_gns_master_zone_selection_radiobutton_toggled_cb (GtkToggleButton *togglebutton, 1866GNUNET_setup_gns_master_zone_selection_radiobutton_toggled_cb (GtkToggleButton *togglebutton,
1844 gpointer user_data) 1867 gpointer user_data)
1845{ 1868{
1846 GNUNET_break (0); 1869 if (gtk_toggle_button_get_active (togglebutton))
1870 load_zone ("ZONEKEY");
1847} 1871}
1848 1872
1849 1873