tSet zero page size on adjustments - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit ac4948ce0b970217f9ea743531da1ee3b963b8fa
parent 7722aebe43c181b6dfc29221a4b17381fde83767
Author: Ben Webb 
Date:   Sat, 31 Oct 2020 23:36:35 -0700

Set zero page size on adjustments

The page size is ignored anyway; set it to zero
tto avoid a deprecation warning.

Diffstat:
  M src/gui_client/optdialog.c          |       4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui_client/optdialog.c b/src/gui_client/optdialog.c
t@@ -256,7 +256,7 @@ static GtkWidget *NewConfigEntry(gchar *name)
       spin_adj = (GtkAdjustment *)gtk_adjustment_new(*gvar->IntVal,
                                                      gvar->MinVal,
                                                      gvar->MaxVal,
-                                                     1.0, 10.0, 10.0);
+                                                     1.0, 10.0, 0.0);
       entry = gtk_spin_button_new(spin_adj, 1.0, 0);
     } else {
       tmpstr = g_strdup_printf("%d", *gvar->IntVal);
t@@ -299,7 +299,7 @@ static void AddStructConfig(GtkWidget *table, int row, gchar *structname,
     if (gvar->IntVal && gvar->MaxVal > gvar->MinVal) {
       GtkAdjustment *spin_adj = (GtkAdjustment *)
           gtk_adjustment_new(gvar->MinVal, gvar->MinVal, gvar->MaxVal,
-                             1.0, 10.0, 10.0);
+                             1.0, 10.0, 0.0);
       entry = gtk_spin_button_new(spin_adj, 1.0, 0);
     } else {
       entry = gtk_entry_new();