Permalink
Browse files

minor fixes

  • Loading branch information...
1 parent 3bafe89 commit 8138a67a253765a0a6675b89e969659749e05b23 @pchilds committed Nov 5, 2012
Showing with 3 additions and 5 deletions.
  1. +0 −1 gtk2plot/gtkplotlinear.c
  2. +1 −1 gtk2plot/gtkplotpolar.c
  3. +0 −1 gtk3plot/gtkplotlinear.c
  4. +2 −2 gtk3plot/gtkplotpolar.c
View
@@ -4187,7 +4187,6 @@ static gboolean gtk_plot_linear_button_release(GtkWidget *widget, GdkEventButton
else (plot->zmode)|=GTK_PLOT_LINEAR_ZOOM_SGL;
}
}
- //gtk_plot_linear_redraw(widget);
gtk_widget_queue_draw_area(widget, xw-22, 0, 22, 11);
}
}
View
@@ -5535,7 +5535,7 @@ static gboolean gtk_plot_polar_button_release(GtkWidget *widget, GdkEventButton
(plot->zmode)-=GTK_PLOT_POLAR_ZOOM_RDL;
if (((plot->zmode)&(GTK_PLOT_POLAR_ZOOM_SGL|GTK_PLOT_POLAR_ZOOM_AZM|GTK_PLOT_POLAR_ZOOM_RDL))==0) (plot->zmode)|=GTK_PLOT_POLAR_ZOOM_SGL;
}
- gtk_plot_polar_redraw(widget);
+ gtk_widget_queue_draw_area(widget, xw-22, 0, 22, 11);
}
}
return FALSE;
View
@@ -4159,7 +4159,6 @@ static gboolean gtk_plot_linear_button_release(GtkWidget *widget, GdkEventButton
else (plot->zmode)|=GTK_PLOT_LINEAR_ZOOM_SGL;
}
}
- //gtk_plot_linear_redraw(widget);
gtk_widget_queue_draw_area(widget, xw-22, 0, 22, 11);
}
}
View
@@ -5520,7 +5520,7 @@ static gboolean gtk_plot_polar_button_release(GtkWidget *widget, GdkEventButton
(plot->zmode)-=GTK_PLOT_POLAR_ZOOM_RDL;
if (((plot->zmode)&(GTK_PLOT_POLAR_ZOOM_SGL|GTK_PLOT_POLAR_ZOOM_AZM|GTK_PLOT_POLAR_ZOOM_RDL))==0) (plot->zmode)|=GTK_PLOT_POLAR_ZOOM_SGL;
}
- gtk_plot_polar_redraw(widget);
+ gtk_widget_queue_draw_area(widget, xw-22, 0, 22, 11);
}
}
return FALSE;
@@ -5533,7 +5533,7 @@ void gtk_plot_polar_set_label(GtkPlotPolar *plot, gchar *rl, gchar *tl)
{(plot->rlab)=g_strdup(rl); (plot->thlab)=g_strdup(tl);}
}
-void gtk_plot_polar_set_data(GtkPlotPolar *plot, GArray *rd, GArray *td, GArray *nd, GArray *sz, GArray *st)
+void gtk_plot_polar_set_data(GtkPlotPolar *plot, GArray *rd, GArray *td, GArray *nd, GArray *sz, Garray *st)
{
if (plot->rdata) g_array_free((plot->rdata), FALSE);
if (plot->thdata) g_array_free((plot->thdata), FALSE);

0 comments on commit 8138a67

Please sign in to comment.