echo '";' >> program_version.c
src_scdataviz_SOURCES = src/graph.c src/matdb.c src/scdataviz.c src/graphwidget.c src/matdb-dotcode.c program_version.c
-LIBS += $(GLIB_LIBS) $(GIO_LIBS) $(GTK_LIBS)
+LIBS += $(GLIB_LIBS) $(GIO_LIBS) $(GTK_LIBS) -lm
AC_PROG_CC
AM_PROG_CC_C_O
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6, have_glib=true, have_glib=false)
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.18, have_glib=true, have_glib=false)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
-PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 3.1, have_gtk=true, have_gtk=false)
+PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.18, have_gtk=true, have_gtk=false)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
** at http://gnomejournal.org/article/34/writing-a--using-cairo-and-gtk28
** Started on Thu Jul 17 10:51:32 2008 Johnny Q. Hacker
-** Last update Thu Oct 15 21:37:21 2009 Johnny Q. Hacker
+** Last update Thu Oct 15 21:51:41 2009 Johnny Q. Hacker
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
+#include "config.h"
#include "graph.h"
#ifdef DEBUG
** at http://gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28
** Started on Thu Jul 17 10:51:32 2008 Johnny Q. Hacker
-** Last update Thu Oct 8 17:13:50 2009 Johnny Q. Hacker
+** Last update Thu Oct 15 21:53:34 2009 Johnny Q. Hacker
*/
-#include <graphwidget.h>
#include <math.h>
+#include "graphwidget.h"
G_DEFINE_TYPE(GraphWidget, graph_widget, GTK_TYPE_DRAWING_AREA);
along with this program. If not, see <http://www.gnu.org/licenses/>.
** Started on Thu Jul 17 10:51:32 2008 Johnny Q. Hacker
-** Last update Thu Oct 8 14:28:34 2009 Johnny Q. Hacker
+** Last update Thu Oct 15 22:16:50 2009 Johnny Q. Hacker
*/
#ifndef GRAPHWIDGET_H_
#define GRAPHWIDGET_H_
#include <gtk/gtkdrawingarea.h>
-#include <graph.h>
+#include "graph.h"
typedef struct _GraphWidget {
GtkDrawingArea parent_instance;
*/
-#include <matdb-dotcode.h>
#define _GNU_SOURCE
#include <stdio.h>
#include <strings.h>
#include <stdlib.h>
+#include "config.h"
+#include "matdb-dotcode.h"
#ifdef DEBUG
#undef DEBUG
#ifndef MATDB_DOTCODE_H_
#define MATDB_DOTCODE_H_
-#include <matdb.h>
+#include "matdb.h"
struct matdb* read_matdb_dotcode(const GString *name, int *err);
*/
-#include <matdb.h>
#include <stdio.h>
#include <stdlib.h>
+#include "matdb.h"
static void print_property(gpointer key, gpointer value, gpointer user_data) {
fprintf(stderr, "\t\t%s=%g:\n", (char*)key, *(double*)value);
along with this program. If not, see <http://www.gnu.org/licenses/>.
** Started on Thu Jul 17 11:03:27 2008 Johnny Q. Hacker
-** Last update Thu Oct 8 19:13:57 2009 Johnny Q. Hacker
+** Last update Thu Oct 15 21:51:34 2009 Johnny Q. Hacker
*/
-#include <gtk/gtk.h>
-#include <graphwidget.h>
-#include <matdb-dotcode.h>
#include <stdlib.h>
#include <strings.h>
+#include <gtk/gtk.h>
+#include "config.h"
+#include "matdb-dotcode.h"
+#include "graphwidget.h"
#define DEBUG_SHOW_ONLY_BOWED