summaryrefslogtreecommitdiff
blob: d0f5bb005020aa769bcf689542acaaa66a90f28c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
===================================================================
RCS file: /cvs/gnome/gnumeric/src/sheet-object-widget.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -r1.141 -r1.142
--- sheet-object-widget.c	2005/01/05 05:22:55	1.141
+++ sheet-object-widget.c	2005/02/06 17:57:39	1.142
@@ -769,11 +769,11 @@
 
 		swa->being_updated = TRUE;
 		sheet_cell_set_value (cell, value_new_int (swa->adjustment->value));
-		swa->being_updated = FALSE;
 
 		sheet_set_dirty (ref.sheet, TRUE);
 		workbook_recalc (ref.sheet->workbook);
 		sheet_update (ref.sheet);
+		swa->being_updated = FALSE;
 	}
 }
 
@@ -782,7 +782,7 @@
 {
 	g_return_if_fail (swa != NULL);
 
-	swa->adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (0., 0., 100., 1., 10., 1.));
+	swa->adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (0., 0., 100., 1., 10., 0.));
 	g_object_ref (swa->adjustment);
 	gtk_object_sink (GTK_OBJECT (swa->adjustment));
 
@@ -908,7 +908,7 @@
 	state->swa->adjustment->lower = gtk_spin_button_get_value_as_int (
 		GTK_SPIN_BUTTON (state->min));
 	state->swa->adjustment->upper = gtk_spin_button_get_value_as_int (
-		GTK_SPIN_BUTTON (state->max)) + 1;
+		GTK_SPIN_BUTTON (state->max));
 	state->swa->adjustment->step_increment = gtk_spin_button_get_value_as_int (
 		GTK_SPIN_BUTTON (state->inc));
 	state->swa->adjustment->page_increment = gtk_spin_button_get_value_as_int (
@@ -1035,7 +1035,7 @@
 {
 	SheetWidgetAdjustment const *swa = SHEET_WIDGET_ADJUSTMENT (so);
 	gsf_xml_out_add_float (output, "Min",   swa->adjustment->lower, 2);
-	gsf_xml_out_add_float (output, "Max",   swa->adjustment->upper-1., 2); /* allow scrolling to max */
+	gsf_xml_out_add_float (output, "Max",   swa->adjustment->upper, 2); /* allow scrolling to max */
 	gsf_xml_out_add_float (output, "Inc",   swa->adjustment->step_increment, 2);
 	gsf_xml_out_add_float (output, "Page",  swa->adjustment->page_increment, 2);
 	gsf_xml_out_add_float (output, "Value", swa->adjustment->value, 2);
@@ -1050,7 +1050,7 @@
 	SheetWidgetAdjustment *swa = SHEET_WIDGET_ADJUSTMENT (so);
 
 	xml_node_set_double (tree, "Min", swa->adjustment->lower, 2);
-	xml_node_set_double (tree, "Max", swa->adjustment->upper-1., 2); /* allow scrolling to max */
+	xml_node_set_double (tree, "Max", swa->adjustment->upper, 2); /* allow scrolling to max */
 	xml_node_set_double (tree, "Inc", swa->adjustment->step_increment, 2);
 	xml_node_set_double (tree, "Page", swa->adjustment->page_increment, 2);
 	xml_node_set_double  (tree, "Value", swa->adjustment->value, 2);
@@ -1072,7 +1072,7 @@
 	if (xml_node_get_double (tree, "Min", &tmp))
 		swa->adjustment->lower = tmp;
 	if (xml_node_get_double (tree, "Max", &tmp))
-		swa->adjustment->upper = tmp + 1.;  /* allow scrolling to max */
+		swa->adjustment->upper = tmp;  /* allow scrolling to max */
 	if (xml_node_get_double (tree, "Inc", &tmp))
 		swa->adjustment->step_increment = tmp;
 	if (xml_node_get_double (tree, "Page", &tmp))
@@ -1092,7 +1092,7 @@
 	g_return_if_fail (swa != NULL);
 	swa->adjustment->value = value;
 	swa->adjustment->lower = min;
-	swa->adjustment->upper = max + 1.; /* allow scrolling to max */
+	swa->adjustment->upper = max; /* allow scrolling to max */
 	swa->adjustment->step_increment = inc;
 	swa->adjustment->page_increment = page;
 	if (link != NULL)