goffice r2277 - in trunk: . goffice/math plugins/plot_distrib



Author: jbrefort
Date: Sun Nov 16 09:00:45 2008
New Revision: 2277
URL: http://svn.gnome.org/viewvc/goffice?rev=2277&view=rev

Log:
2008-11-16  Jean Brefort  <jean brefort normalesup org>

	* goffice/math/go-spline.c: removed unnecessary casts.
	* goffice/math/go-distribution.c: removed unused gtk dependent function.
	* goffice/math/go-distribution.h: ditto.
	* plugins/plot_distrib/gog-probability-plot.c: fixed compilation without
	gtk.



Modified:
   trunk/ChangeLog
   trunk/goffice/math/go-cspline.c
   trunk/goffice/math/go-distribution.c
   trunk/goffice/math/go-distribution.h
   trunk/plugins/plot_distrib/gog-probability-plot.c

Modified: trunk/goffice/math/go-cspline.c
==============================================================================
--- trunk/goffice/math/go-cspline.c	(original)
+++ trunk/goffice/math/go-cspline.c	Sun Nov 16 09:00:45 2008
@@ -89,13 +89,13 @@
 	sp->n = n;
 	sp->x = x;
 	sp->y = y;
-	sp->a = (DOUBLE*) g_new0 (DOUBLE, nm1);
-	sp->b = (DOUBLE*) g_new (DOUBLE, nm1);
-	sp->c = (DOUBLE*) g_new (DOUBLE, nm1);
-	d1 = (DOUBLE*) g_new0 (DOUBLE, n);
-	d2 = (DOUBLE*) g_new0 (DOUBLE, n);
-	d3 = (DOUBLE*) g_new0 (DOUBLE, n);
-	d4 = (DOUBLE*) g_new0 (DOUBLE, n);
+	sp->a = g_new0 (DOUBLE, nm1);
+	sp->b = g_new (DOUBLE, nm1);
+	sp->c = g_new (DOUBLE, nm1);
+	d1 =  g_new0 (DOUBLE, n);
+	d2 = g_new0 (DOUBLE, n);
+	d3 = g_new0 (DOUBLE, n);
+	d4 = g_new0 (DOUBLE, n);
 
   /* --- COMPUTE FOR N-2 ROWS --- */
 	nm2 = n - 2; 

Modified: trunk/goffice/math/go-distribution.c
==============================================================================
--- trunk/goffice/math/go-distribution.c	(original)
+++ trunk/goffice/math/go-distribution.c	Sun Nov 16 09:00:45 2008
@@ -101,8 +101,6 @@
 	double (*get_cumulative) (GODistribution *dist, double x);
 	double (*get_ppf) (GODistribution *dist, double x);
 
-	GtkWidget * (*get_property_page) (GODistribution *dist);
-
 #ifdef GOFFICE_WITH_LONG_DOUBLE
 	long double (*get_densityl) (GODistribution *dist, long double x);
 	long double (*get_cumulativel) (GODistribution *dist, long double x);
@@ -292,19 +290,6 @@
 	NULL, go_distribution_class_init, NULL, go_distribution_init,
 	G_TYPE_OBJECT, G_TYPE_FLAG_ABSTRACT,
 	GSF_INTERFACE (go_distribution_persist_init, GO_PERSIST_TYPE))
-	
-GtkWidget *
-go_distribution_get_property_page (GODistribution *dist)
-{
-	GODistributionClass *go_dist_klass;
-
-	g_return_val_if_fail (GO_DISTRIBUTION (dist), NULL);
-
-	go_dist_klass = GO_DISTRIBUTION_GET_CLASS (dist);
-	if (go_dist_klass->get_property_page != NULL)
-		return go_dist_klass->get_property_page (dist);
-	return NULL;
-}
 
 void
 go_distribution_scale (GODistribution *dist, double location, double scale)

Modified: trunk/goffice/math/go-distribution.h
==============================================================================
--- trunk/goffice/math/go-distribution.h	(original)
+++ trunk/goffice/math/go-distribution.h	Sun Nov 16 09:00:45 2008
@@ -24,7 +24,6 @@
 #define GO_DISTRIBUTION_H
 
 #include <glib-object.h>
-#include <gtk/gtkwidget.h>
 
 G_BEGIN_DECLS
 
@@ -61,8 +60,6 @@
 double go_distribution_get_survival (GODistribution *dist, double x);
 double go_distribution_get_inverse_survival (GODistribution *dist, double x);
 
-GtkWidget *go_distribution_get_property_page (GODistribution *dist);
-
 #ifdef GOFFICE_WITH_LONG_DOUBLE
 long double go_distribution_get_densityl (GODistribution *dist, long double x);
 long double go_distribution_get_cumulativel (GODistribution *dist, long double x);

Modified: trunk/plugins/plot_distrib/gog-probability-plot.c
==============================================================================
--- trunk/plugins/plot_distrib/gog-probability-plot.c	(original)
+++ trunk/plugins/plot_distrib/gog-probability-plot.c	Sun Nov 16 09:00:45 2008
@@ -22,7 +22,9 @@
 
 #include <goffice/goffice-config.h>
 #include "gog-probability-plot.h"
+#ifdef GOFFICE_WITH_GTK
 #include "go-distribution-prefs.h"
+#endif
 #include <goffice/graph/gog-axis.h>
 #include <goffice/graph/gog-chart-map.h>
 #include <goffice/graph/gog-renderer.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]