tSkip server options tab without networking - vaccinewars - be a doctor and try… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 6a57584d57e6e633b4224ba24fe4f1c955ef89be | |
parent 48053a5a0d32c015ab553f1c0f5074efb4ee4183 | |
Author: Ben Webb <[email protected]> | |
Date: Fri, 13 Nov 2020 00:11:43 -0800 | |
Skip server options tab without networking | |
When the client is built without network support, | |
tthere is no server to configure, so skip the | |
server tab from the Options dialog. | |
Diffstat: | |
M src/gui_client/optdialog.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/gui_client/optdialog.c b/src/gui_client/optdialog.c | |
t@@ -901,6 +901,7 @@ void OptDialog(GtkWidget *widget, gpointer data) | |
label = gtk_label_new(_("Cops")); | |
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label); | |
+#ifdef NETWORKING | |
table = gtk_table_new(6, 4, FALSE); | |
gtk_table_set_row_spacings(GTK_TABLE(table), 5); | |
gtk_table_set_col_spacings(GTK_TABLE(table), 5); | |
t@@ -935,6 +936,7 @@ void OptDialog(GtkWidget *widget, gpointer data) | |
gtk_container_set_border_width(GTK_CONTAINER(table), 7); | |
label = gtk_label_new(_("Server")); | |
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), table, label); | |
+#endif | |
vbox2 = gtk_vbox_new(FALSE, 5); | |
gtk_container_set_border_width(GTK_CONTAINER(vbox2), 7); |