| 1885 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
1885 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
| 1886 |
1886 |
| 1887 pidgin_prefs_checkbox(_("_Enable automatic router port forwarding"), |
1887 pidgin_prefs_checkbox(_("_Enable automatic router port forwarding"), |
| 1888 "/purple/network/map_ports", vbox); |
1888 "/purple/network/map_ports", vbox); |
| 1889 |
1889 |
| 1890 ports_checkbox = pidgin_prefs_checkbox(_("_Manually specify range of ports to listen on"), |
1890 hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); |
| 1891 "/purple/network/ports_range_use", vbox); |
1891 |
| 1892 |
1892 ports_checkbox = pidgin_prefs_checkbox(_("_Manually specify range of ports to listen on:"), |
| 1893 spin_button = pidgin_prefs_labeled_spin_button(vbox, _("_Start port:"), |
1893 "/purple/network/ports_range_use", hbox); |
| |
1894 |
| |
1895 spin_button = pidgin_prefs_labeled_spin_button(hbox, _("_Start:"), |
| 1894 "/purple/network/ports_range_start", 0, 65535, sg); |
1896 "/purple/network/ports_range_start", 0, 65535, sg); |
| 1895 if (!purple_prefs_get_bool("/purple/network/ports_range_use")) |
1897 if (!purple_prefs_get_bool("/purple/network/ports_range_use")) |
| 1896 gtk_widget_set_sensitive(GTK_WIDGET(spin_button), FALSE); |
1898 gtk_widget_set_sensitive(GTK_WIDGET(spin_button), FALSE); |
| 1897 g_signal_connect(G_OBJECT(ports_checkbox), "clicked", |
1899 g_signal_connect(G_OBJECT(ports_checkbox), "clicked", |
| 1898 G_CALLBACK(pidgin_toggle_sensitive), spin_button); |
1900 G_CALLBACK(pidgin_toggle_sensitive), spin_button); |
| 1899 |
1901 |
| 1900 spin_button = pidgin_prefs_labeled_spin_button(vbox, _("_End port:"), |
1902 spin_button = pidgin_prefs_labeled_spin_button(hbox, _("_End:"), |
| 1901 "/purple/network/ports_range_end", 0, 65535, sg); |
1903 "/purple/network/ports_range_end", 0, 65535, sg); |
| 1902 if (!purple_prefs_get_bool("/purple/network/ports_range_use")) |
1904 if (!purple_prefs_get_bool("/purple/network/ports_range_use")) |
| 1903 gtk_widget_set_sensitive(GTK_WIDGET(spin_button), FALSE); |
1905 gtk_widget_set_sensitive(GTK_WIDGET(spin_button), FALSE); |
| 1904 g_signal_connect(G_OBJECT(ports_checkbox), "clicked", |
1906 g_signal_connect(G_OBJECT(ports_checkbox), "clicked", |
| 1905 G_CALLBACK(pidgin_toggle_sensitive), spin_button); |
1907 G_CALLBACK(pidgin_toggle_sensitive), spin_button); |
| |
1908 |
| |
1909 pidgin_add_widget_to_vbox(GTK_BOX(vbox), NULL, NULL, hbox, TRUE, NULL); |
| 1906 |
1910 |
| 1907 g_object_unref(sg); |
1911 g_object_unref(sg); |
| 1908 |
1912 |
| 1909 /* TURN server */ |
1913 /* TURN server */ |
| 1910 vbox = pidgin_make_frame(ret, _("Relay Server (TURN)")); |
1914 vbox = pidgin_make_frame(ret, _("Relay Server (TURN)")); |