# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT([libreptool], [0.2.2], [azagli@libero.it])
+AC_INIT([libreptool], [0.5.0], [azagli@libero.it])
AC_CONFIG_SRCDIR([src/rptprint.c])
AC_CONFIG_HEADER([config.h])
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
# Checks for libraries.
-PKG_CHECK_MODULES([REPTOOL], [gtk+-2.0 >= 2.10.0
+PKG_CHECK_MODULES([REPTOOL], [gtk+-3.0 >= 3.0.0
libxml-2.0 >= 2.6.0
- libgda-4.0 >= 4.0.0])
+ libgda-5.0 >= 5.0.0])
AC_SUBST(REPTOOL_CFLAGS)
AC_SUBST(REPTOOL_LIBS)
Name: @PACKAGE_NAME@
Description: Library to manage RepTool files
Version: @PACKAGE_VERSION@
-Requires: glib-2.0 gobject-2.0 libxml-2.0 libgda-4.0
+Requires: gtk+-3.0 libxml-2.0 libgda-5.0
Libs: -L${libdir} -lreptool
Cflags: -I${includedir}
/*
- * Copyright (C) 2007-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2007-2013 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#define __RPT_COMMON_H__
#include <glib.h>
-#include <gdk/gdkcolor.h>
+#include <gdk/gdk.h>
#include <libxml/tree.h>
#include <pango/pango-attributes.h>
/*
- * Copyright (C) 2007-2011 Andrea Zagli <azagli@inwind.it>
+ * Copyright (C) 2007-2013 Andrea Zagli <azagli@libero.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
RptStroke stroke;
RptColor *color;
- g_type_init ();
-
rptr = rpt_report_new ();
if (rptr != NULL)
/*
- * Copyright (C) 2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2013 Andrea Zagli <azagli@libero.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
g_signal_connect (w, "delete-event", G_CALLBACK (on_w_delete_event), NULL);
g_signal_connect (w, "destroy", gtk_main_quit, NULL);
- GtkWidget *box = gtk_vbox_new (FALSE, 5);
+ GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_add (GTK_CONTAINER (w), box);
/*
- * Copyright (C) 2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2013 Andrea Zagli <azagli@libero.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
GtkTreeIter iter;
GHashTable *columns_names;
- g_type_init ();
-
rptr = rpt_report_new_from_file (argv[1]);
model = gtk_list_store_new (2,
/*
- * Copyright (C) 2006-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2006-2013 Andrea Zagli <azagli@libero.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
RptPrint *rptp;
- g_type_init ();
-
context = g_option_context_new ("- test rptprint");
g_option_context_add_main_entries (context, entries, NULL);
/*
- * Copyright (C) 2007-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2007-2013 Andrea Zagli <azagli@libero.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
GtkPrintSettings *settings;
- g_type_init ();
-
context = g_option_context_new ("- test rptprint");
g_option_context_add_main_entries (context, entries, NULL);