Commit 4e151aa8 authored by Peter Teichman's avatar Peter Teichman
Browse files

didn't realize that there were more errors of the same type.. The wrong

* plug-ins/MapObject/mapobject_ui.c: didn't realize that there
were more errors of the same type.. The wrong callback argument
was being dereferenced for most GtkScale objects.
parent 42c76a18
Sun Jan 10 01:43:06 EST 1999 Peter Teichman <pat4@acpub.duke.edu>
* plug-ins/MapObject/mapobject_ui.c: didn't realize that there
were more errors of the same type.. The wrong callback argument
was being dereferenced for most GtkScale objects.
Sat Jan 9 03:42:30 EST 1999 Peter Teichman <pat4@acpub.duke.edu> Sat Jan 9 03:42:30 EST 1999 Peter Teichman <pat4@acpub.duke.edu>
* plug-ins/MapObject/mapobject_ui.c (angle_update): fixed a * plug-ins/MapObject/mapobject_ui.c (angle_update): fixed a
......
...@@ -162,7 +162,7 @@ void boxscale_update(GtkWidget *widget, GtkScale *scale) ...@@ -162,7 +162,7 @@ void boxscale_update(GtkWidget *widget, GtkScale *scale)
GtkAdjustment *adjustment; GtkAdjustment *adjustment;
valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr"); valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr");
adjustment=gtk_range_get_adjustment(GTK_RANGE(scale)); adjustment=gtk_range_get_adjustment(GTK_RANGE(widget));
*valueptr=(gdouble)adjustment->value; *valueptr=(gdouble)adjustment->value;
...@@ -176,7 +176,7 @@ void cylinderradius_update(GtkWidget *widget, GtkScale *scale) ...@@ -176,7 +176,7 @@ void cylinderradius_update(GtkWidget *widget, GtkScale *scale)
GtkAdjustment *adjustment; GtkAdjustment *adjustment;
valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr"); valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr");
adjustment=gtk_range_get_adjustment(GTK_RANGE(scale)); adjustment=gtk_range_get_adjustment(GTK_RANGE(widget));
*valueptr=(gdouble)adjustment->value; *valueptr=(gdouble)adjustment->value;
...@@ -190,7 +190,7 @@ void cylinderlength_update(GtkWidget *widget, GtkScale *scale) ...@@ -190,7 +190,7 @@ void cylinderlength_update(GtkWidget *widget, GtkScale *scale)
GtkAdjustment *adjustment; GtkAdjustment *adjustment;
valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr"); valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr");
adjustment=gtk_range_get_adjustment(GTK_RANGE(scale)); adjustment=gtk_range_get_adjustment(GTK_RANGE(widget));
*valueptr=(gdouble)adjustment->value; *valueptr=(gdouble)adjustment->value;
...@@ -228,7 +228,7 @@ void scale_update(GtkWidget *widget,GtkScale *scale) ...@@ -228,7 +228,7 @@ void scale_update(GtkWidget *widget,GtkScale *scale)
GtkAdjustment *adjustment; GtkAdjustment *adjustment;
valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr"); valueptr=(gdouble *)gtk_object_get_data(GTK_OBJECT(widget),"ValuePtr");
adjustment=gtk_range_get_adjustment(GTK_RANGE(scale)); adjustment=gtk_range_get_adjustment(GTK_RANGE(widget));
*valueptr=(gdouble)adjustment->value; *valueptr=(gdouble)adjustment->value;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment