Commit 2c8b64d0 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Improve versioning. Fix a few bugs.

Improve versioning.
Fix a few bugs.

2000-04-26  Jody Goldberg <jgoldberg@home.com>

	* src/command-context.c (gnumeric_error_sys_err) : New function.
	* src/command-context-gui.c (ccg_error_sys_err) : Support it.

	* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.

	* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
	(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.

	* src/plugin.c (load_all_plugins) : Use
	  gnumeric_usr_plugin_dir, and  gnumeric_sys_plugin_dir.

	* src/item-edit.c (point_is_inside_range) : Handle non-singleton
	  expr start characters.

2000-04-25  Jody Goldberg <jgoldberg@home.com>

	* *.c : glade_new_xml -> gnumeric_glade_new_xml
	  Localize GNUMERIC_GLADEDIR so that plugins can use it too.

	* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.

	* */Makefile.am : Set 'DATADIR' rather than GLADEDIR.  And version
	  the glade file the same way the plugins are set.  This should
	  probably expand to include architecture akin to gcc.

	* src/widgets/widget-editable-label.c (el_button_press_event) :
	  Clicking in another window accepts the changes.  Once we have
	  reliquished our grab push the button event back on the queue
	  so that it can be forwarded on to the appropriate recipient (9007).

	* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
	  strings which could start an expression.
parent b8aa8242
......@@ -4,12 +4,13 @@ and longer term bugs.
Release Critical
----------------
- Row height auto resize has been disabled temporarily.
- If there are no problems with the new array formula xml format then
we should convert expressions to use the same scheme.
Long term breakage
------------------
- The max row/col scroll size is still hard coded.
- Auto resize needs to handle empty cells.
- Clearing a cell that stopped a span does not regenerate the span.
- changing col/row sizes does not have undo support.
- The implication of mixed mode references ($B$2:C3)
......
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_sys_err) : New function.
* src/command-context-gui.c (ccg_error_sys_err) : Support it.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
* src/plugin.c (load_all_plugins) : Use
gnumeric_usr_plugin_dir, and gnumeric_sys_plugin_dir.
* src/item-edit.c (point_is_inside_range) : Handle non-singleton
expr start characters.
2000-04-25 Jody Goldberg <jgoldberg@home.com>
* *.c : glade_new_xml -> gnumeric_glade_new_xml
Localize GNUMERIC_GLADEDIR so that plugins can use it too.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
* */Makefile.am : Set 'DATADIR' rather than GLADEDIR. And version
the glade file the same way the plugins are set. This should
probably expand to include architecture akin to gcc.
* src/widgets/widget-editable-label.c (el_button_press_event) :
Clicking in another window accepts the changes. Once we have
reliquished our grab push the button event back on the queue
so that it can be forwarded on to the appropriate recipient (9007).
* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
strings which could start an expression.
2000-04-25 Miguel de Icaza <miguel@helixcode.com>
* src/item-edit.c (entry_changed): Call complete_start here; Pass
......
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_sys_err) : New function.
* src/command-context-gui.c (ccg_error_sys_err) : Support it.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
* src/plugin.c (load_all_plugins) : Use
gnumeric_usr_plugin_dir, and gnumeric_sys_plugin_dir.
* src/item-edit.c (point_is_inside_range) : Handle non-singleton
expr start characters.
2000-04-25 Jody Goldberg <jgoldberg@home.com>
* *.c : glade_new_xml -> gnumeric_glade_new_xml
Localize GNUMERIC_GLADEDIR so that plugins can use it too.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
* */Makefile.am : Set 'DATADIR' rather than GLADEDIR. And version
the glade file the same way the plugins are set. This should
probably expand to include architecture akin to gcc.
* src/widgets/widget-editable-label.c (el_button_press_event) :
Clicking in another window accepts the changes. Once we have
reliquished our grab push the button event back on the queue
so that it can be forwarded on to the appropriate recipient (9007).
* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
strings which could start an expression.
2000-04-25 Miguel de Icaza <miguel@helixcode.com>
* src/item-edit.c (entry_changed): Call complete_start here; Pass
......
......@@ -7,6 +7,7 @@ Morten:
Jody:
* Overhaul cell structure to cleanup temp formats, improve spans.
* Improve array formula entry, editing, and xml-io.
* Add auto-sum
Translations:
* Updated: de (Karl), en_GB (Robert), ru (Valek), and more.
......
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_sys_err) : New function.
* src/command-context-gui.c (ccg_error_sys_err) : Support it.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
* src/plugin.c (load_all_plugins) : Use
gnumeric_usr_plugin_dir, and gnumeric_sys_plugin_dir.
* src/item-edit.c (point_is_inside_range) : Handle non-singleton
expr start characters.
2000-04-25 Jody Goldberg <jgoldberg@home.com>
* *.c : glade_new_xml -> gnumeric_glade_new_xml
Localize GNUMERIC_GLADEDIR so that plugins can use it too.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
* */Makefile.am : Set 'DATADIR' rather than GLADEDIR. And version
the glade file the same way the plugins are set. This should
probably expand to include architecture akin to gcc.
* src/widgets/widget-editable-label.c (el_button_press_event) :
Clicking in another window accepts the changes. Once we have
reliquished our grab push the button event back on the queue
so that it can be forwarded on to the appropriate recipient (9007).
* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
strings which could start an expression.
2000-04-25 Miguel de Icaza <miguel@helixcode.com>
* src/item-edit.c (entry_changed): Call complete_start here; Pass
......
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_sys_err) : New function.
* src/command-context-gui.c (ccg_error_sys_err) : Support it.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
* src/plugin.c (load_all_plugins) : Use
gnumeric_usr_plugin_dir, and gnumeric_sys_plugin_dir.
* src/item-edit.c (point_is_inside_range) : Handle non-singleton
expr start characters.
2000-04-25 Jody Goldberg <jgoldberg@home.com>
* *.c : glade_new_xml -> gnumeric_glade_new_xml
Localize GNUMERIC_GLADEDIR so that plugins can use it too.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
* */Makefile.am : Set 'DATADIR' rather than GLADEDIR. And version
the glade file the same way the plugins are set. This should
probably expand to include architecture akin to gcc.
* src/widgets/widget-editable-label.c (el_button_press_event) :
Clicking in another window accepts the changes. Once we have
reliquished our grab push the button event back on the queue
so that it can be forwarded on to the appropriate recipient (9007).
* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
strings which could start an expression.
2000-04-25 Miguel de Icaza <miguel@helixcode.com>
* src/item-edit.c (entry_changed): Call complete_start here; Pass
......
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_sys_err) : New function.
* src/command-context-gui.c (ccg_error_sys_err) : Support it.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
* src/plugin.c (load_all_plugins) : Use
gnumeric_usr_plugin_dir, and gnumeric_sys_plugin_dir.
* src/item-edit.c (point_is_inside_range) : Handle non-singleton
expr start characters.
2000-04-25 Jody Goldberg <jgoldberg@home.com>
* *.c : glade_new_xml -> gnumeric_glade_new_xml
Localize GNUMERIC_GLADEDIR so that plugins can use it too.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
* */Makefile.am : Set 'DATADIR' rather than GLADEDIR. And version
the glade file the same way the plugins are set. This should
probably expand to include architecture akin to gcc.
* src/widgets/widget-editable-label.c (el_button_press_event) :
Clicking in another window accepts the changes. Once we have
reliquished our grab push the button event back on the queue
so that it can be forwarded on to the appropriate recipient (9007).
* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
strings which could start an expression.
2000-04-25 Miguel de Icaza <miguel@helixcode.com>
* src/item-edit.c (entry_changed): Call complete_start here; Pass
......
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_sys_err) : New function.
* src/command-context-gui.c (ccg_error_sys_err) : Support it.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
* src/plugin.c (load_all_plugins) : Use
gnumeric_usr_plugin_dir, and gnumeric_sys_plugin_dir.
* src/item-edit.c (point_is_inside_range) : Handle non-singleton
expr start characters.
2000-04-25 Jody Goldberg <jgoldberg@home.com>
* *.c : glade_new_xml -> gnumeric_glade_new_xml
Localize GNUMERIC_GLADEDIR so that plugins can use it too.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
* */Makefile.am : Set 'DATADIR' rather than GLADEDIR. And version
the glade file the same way the plugins are set. This should
probably expand to include architecture akin to gcc.
* src/widgets/widget-editable-label.c (el_button_press_event) :
Clicking in another window accepts the changes. Once we have
reliquished our grab push the button event back on the queue
so that it can be forwarded on to the appropriate recipient (9007).
* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
strings which could start an expression.
2000-04-25 Miguel de Icaza <miguel@helixcode.com>
* src/item-edit.c (entry_changed): Call complete_start here; Pass
......
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* src/command-context.c (gnumeric_error_sys_err) : New function.
* src/command-context-gui.c (ccg_error_sys_err) : Support it.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
* src/plugin.c (load_all_plugins) : Use
gnumeric_usr_plugin_dir, and gnumeric_sys_plugin_dir.
* src/item-edit.c (point_is_inside_range) : Handle non-singleton
expr start characters.
2000-04-25 Jody Goldberg <jgoldberg@home.com>
* *.c : glade_new_xml -> gnumeric_glade_new_xml
Localize GNUMERIC_GLADEDIR so that plugins can use it too.
* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
* */Makefile.am : Set 'DATADIR' rather than GLADEDIR. And version
the glade file the same way the plugins are set. This should
probably expand to include architecture akin to gcc.
* src/widgets/widget-editable-label.c (el_button_press_event) :
Clicking in another window accepts the changes. Once we have
reliquished our grab push the button event back on the queue
so that it can be forwarded on to the appropriate recipient (9007).
* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
strings which could start an expression.
2000-04-25 Miguel de Icaza <miguel@helixcode.com>
* src/item-edit.c (entry_changed): Call complete_start here; Pass
......
#!/bin/sh
version="@VERSION@"
BONOBO="@BONOBO@"
prefix="@prefix@"
exec_prefix="@exec_prefix@"
datadir="@datadir@"
libdir="@libdir@"
usage()
{
cat <<EOF
Usage: gnumeric-config [OPTIONS]
Options:
[--datadir]
[--libdir]
[--with-bonobo]
[--exec-prefix]
[--prefix]
[--version]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix)
echo_prefix=yes
;;
--exec-prefix)
echo_exec_prefix=yes
;;
--version)
echo_version=yes
;;
--datadir)
echo_datadir=yes
;;
--libdir)
echo_libdir=yes
;;
--with-bonobo)
echo_with_bonobo=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$echo_with_bonobo" = "yes"; then
if test "${BONOBO}x" = "x"; then
echo no
else
echo yes
fi
fi
if test "$echo_version" = "yes"; then
echo $version
fi
if test "$echo_prefix" = "yes"; then
echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix
fi
if test "$echo_datadir" = "yes"; then
echo $datadir
fi
if test "$echo_libdir" = "yes"; then
echo $libdir
fi
#
# Sample Makefile for a Gnumeric plugin.
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(top_srcdir)/src
#
# Where to install the plugin
#
plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
plugin_LTLIBRARIES = libgnum_csv.la
libgnum_csv_la_SOURCES = csv-io.h csv-io.c
if BONOBO
gnumeric_version="$(VERSION)-bonobo"
else
gnumeric_version="$(VERSION)"
endif
gnumeric_libdir = $(libdir)/gnumeric/$(gnumeric_version)
gnumeric_datadir = $(datadir)/gnumeric/$(gnumeric_version)
plugindir = $(gnumeric_libdir)/plugins
gladedir = $(gnumeric_datadir)/glade
INCLUDES = \
-I$(GNUMERIC_SRC_DIR) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
-I$(top_srcdir)/src \
$(GNOME_INCLUDEDIR)
plugin_LTLIBRARIES = libgnum_csv.la
libgnum_csv_la_SOURCES = csv-io.h csv-io.c
#
# Sample Makefile for a Gnumeric plugin.
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(top_srcdir)/src
#
# Where to install the plugin
#
plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
plugin_LTLIBRARIES = libgnum_stf.la
libgnum_stf_la_SOURCES = stf.h stf.c dialog-stf.h dialog-stf.c dialog-stf-main-page.c dialog-stf-csv-page.c dialog-stf-fixed-page.c dialog-stf-format-page.c dialog-stf-preview.h dialog-stf-preview.c stf-util.h stf-util.c stf-separated.h stf-separated.c stf-fixed.h stf-fixed.c
gladedir = $(datadir)/gnumeric/glade
glade_DATA = stf.glade
glade_msgs = stf.glade.h
if BONOBO
gnumeric_version="$(VERSION)-bonobo"
else
gnumeric_version="$(VERSION)"
endif
gnumeric_libdir = $(libdir)/gnumeric/$(gnumeric_version)
gnumeric_datadir = $(datadir)/gnumeric/$(gnumeric_version)
plugindir = $(gnumeric_libdir)/plugins
gladedir = $(gnumeric_datadir)/glade
INCLUDES = \
-I$(GNUMERIC_SRC_DIR) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-DGNUMERIC_GLADEDIR=\""$(gladedir)"\" \
-I$(includedir) \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
-I$(top_srcdir)/src \
$(GNOME_INCLUDEDIR)
EXTRA_DIST = $(glade_DATA) $(glade_msgs)
plugin_LTLIBRARIES = libgnum_stf.la
libgnum_stf_la_SOURCES = \
stf.h stf.c \
dialog-stf.h dialog-stf.c \
dialog-stf-main-page.c dialog-stf-csv-page.c \
dialog-stf-fixed-page.c dialog-stf-format-page.c \
dialog-stf-preview.h dialog-stf-preview.c \
stf-util.h stf-util.c \
stf-separated.h stf-separated.c \
stf-fixed.h stf-fixed.c
glade_DATA = stf.glade
glade_msgs = stf.glade.h
EXTRA_DIST = $(glade_DATA) $(glade_msgs)
......@@ -332,7 +332,7 @@ dialog_stf (CommandContext *context, FileSource_t *src)
glade_gnome_init();
gui = glade_xml_new (GNUMERIC_GLADEDIR "/" GLADE_FILE, NULL);
gui = gnumeric_glade_xml_new (NULL, GLADE_FILE);
if (!gui) {
message = g_strdup_printf (_("Missing %s file"), GLADE_FILE);
gnumeric_error_read (context, message);
......
#
# Makefile for the Gnome Basic Gnumeric plugin.
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(srcdir)/../../src
#
# Where to install the plugin
#
plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
plugin_LTLIBRARIES = libgnum_gb.la
libgnum_gb_la_SOURCES = plugin.c
libgnum_gb_la_LIBADD = $(GB_LIBS) $(EXTRA_GNOME_LIBS) -lm @GLIB_LIBS@ -lgb -lgbrun
if BONOBO
gnumeric_version="$(VERSION)-bonobo"
else
gnumeric_version="$(VERSION)"
endif
gnumeric_libdir = $(libdir)/gnumeric/$(gnumeric_version)
gnumeric_datadir = $(datadir)/gnumeric/$(gnumeric_version)
plugindir = $(gnumeric_libdir)/plugins
gladedir = $(gnumeric_datadir)/glade
INCLUDES = \
-I$(GNUMERIC_SRC_DIR) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
$(GNOME_INCLUDEDIR) $(GB_CFLAGS)
\ No newline at end of file
-I$(top_srcdir)/src \
$(GNOME_INCLUDEDIR) \
$(GB_CFLAGS)
plugin_LTLIBRARIES = libgnum_gb.la
libgnum_gb_la_SOURCES = plugin.c
libgnum_gb_la_LIBADD = $(GB_LIBS) $(EXTRA_GNOME_LIBS) -lm @GLIB_LIBS@ -lgb -lgbrun
#
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(top_srcdir)/src
#
# Where to install the plugin
#
plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
hack=$(shell gnome-config --includedir)
plugin_LTLIBRARIES = libgnum_gdaif.la
libgnum_gdaif_la_SOURCES = plugin-gda.c
if BONOBO
gnumeric_version="$(VERSION)-bonobo"
else
gnumeric_version="$(VERSION)"
endif
gnumeric_libdir = $(libdir)/gnumeric/$(gnumeric_version)
gnumeric_datadir = $(datadir)/gnumeric/$(gnumeric_version)
plugindir = $(gnumeric_libdir)/plugins
gladedir = $(gnumeric_datadir)/glade
hack=$(shell gnome-config --includedir)
INCLUDES = \
-I$(GNUMERIC_SRC_DIR) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
-I$(top_srcdir)/src \
$(GNOME_INCLUDEDIR) \
-I$(hack)/gda
plugin_LTLIBRARIES = libgnum_gdaif.la
libgnum_gdaif_la_SOURCES = plugin-gda.c
libgnum_gdaif_la_LIBADD = -L$(hack)/lib -lgda-client $(GNORBA_LIBS)
2000-04-26 Jody Goldberg <jgoldberg@home.com>
* plugin.c (init_plugin) : Use gnumeric_sys_data_dir.
2000-04-21 Jody Goldberg <jgoldberg@home.com>
* plugin.c (scm_to_value) : Use value_new_{cellrange,string}.
......
#
# Makefile for the Guile Gnumeric plugin.
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(srcdir)/../../src
#
# Where to install the plugin
#
plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
plugin_LTLIBRARIES = libgnum_guile.la
libgnum_guile_la_SOURCES = plugin.c
if BONOBO
gnumeric_version="$(VERSION)-bonobo"
else
gnumeric_version="$(VERSION)"
endif
gnumeric_libdir = $(libdir)/gnumeric/$(gnumeric_version)
gnumeric_datadir = $(datadir)/gnumeric/$(gnumeric_version)
plugindir = $(gnumeric_libdir)/plugins
gladedir = $(gnumeric_datadir)/glade
guiledir = $(gnumeric_datadir)/guile
INCLUDES = \
-I$(GNUMERIC_SRC_DIR) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
-I$(top_srcdir)/src \
$(GUILE_INCS) \
$(GNOME_INCLUDEDIR)
#libguile_la_LDFLAGS = $(PYTHON_LIB_LOC)
libgnum_guile_la_LIBADD = $(GUILE_LIBS)
plugin_LTLIBRARIES = libgnum_guile.la
Guilescriptsdir = $(datadir)/gnumeric/guile
libgnum_guile_la_SOURCES = plugin.c
#libgnum_guile_la_LDFLAGS = $(PYTHON_LIB_LOC)
libgnum_guile_la_LIBADD = $(GUILE_LIBS)
Guilescriptsdir = $(gnumeric_guiledir)
Guilescripts_DATA = functions.scm gnumeric_startup.scm
EXTRA_DIST = $(Guilescripts_DATA)
......@@ -19,6 +19,7 @@
#include "symbol.h"
#include "plugin.h"
#include "expr.h"
#include "gutils.h"
#include "func.h"
#include "cell.h"
#include "value.h"
......@@ -470,7 +471,7 @@ PluginInitResult
init_plugin (CommandContext *context, PluginData *pd)
{
FunctionCategory *cat;
char *init_file_name;
char *name, *dir;
if (plugin_version_mismatch (context, pd, GNUMERIC_VERSION))
return PLUGIN_QUIET_ERROR;
......@@ -494,13 +495,16 @@ init_plugin (CommandContext *context, PluginData *pd)
scm_make_gsubr ("gnumeric-funcall", 2, 0, 0, scm_gnumeric_funcall);
scm_make_gsubr ("register-function", 5, 0, 0, scm_register_function);
init_file_name = gnome_unconditional_datadir_file ("gnumeric/guile/gnumeric_startup.scm");
dir = gnumeric_sys_data_dir ("guile");
name = g_strconcat (dir, "gnumeric_startup.scm", NULL);
scm_apply (scm_eval_0str ("(lambda (filename)"
" (if (access? filename R_OK)"
" (load filename)"
" (display (string-append \"could not read Guile plug-in init file\" filename \"\n\"))))"),
scm_cons (scm_makfrom0str (init_file_name), SCM_EOL),
scm_cons (scm_makfrom0str (name), SCM_EOL),
SCM_EOL);
g_free (name);
g_free (dir);
if (!plugin_data_init (pd, no_unloading_for_me, no_cleanup_for_me,
GUILE_TITLE, GUILE_DESCR))
......
#
# Makefile for the html Gnumeric plugin.
#
# Where can we find the Gnumeric include files.
#
GNUMERIC_SRC_DIR = $(top_srcdir)/src
#
# Where to install the plugin
#
plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
plugin_LTLIBRARIES = libgnum_html.la
libgnum_html_la_SOURCES = boot.h boot.c html.h html.c latex.h latex.c \
roff.h roff.c font.h font.c
#epsf.h epsf.c ps.h ps.c
if BONOBO
gnumeric_version="$(VERSION)-bonobo"
else
gnumeric_version="$(VERSION)"
endif
gnumeric_libdir = $(libdir)/gnumeric/$(gnumeric_version)
gnumeric_datadir = $(datadir)/gnumeric/$(gnumeric_version)
plugindir = $(gnumeric_libdir)/plugins
gladedir = $(gnumeric_datadir)/glade
INCLUDES = \
-I$(GNUMERIC_SRC_DIR) \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNUMERIC_VERSION=\""$(VERSION)"\" \
-I$(includedir) \
-I$(top_srcdir)/src \
$(GNOME_INCLUDEDIR)
plugin_LTLIBRARIES = libgnum_html.la
libgnum_html_la_SOURCES = boot.h boot.c html.h html.c latex.h latex.c \
roff.h roff.c font.h font.c
#No longer used now that printing is available.
#epsf.h epsf.c ps.h ps.c
EXTRA_DIST = README ChangeLog
# Where can we find the Gnumeric include files.
GNUMERIC_SRC_DIR = $(top_srcdir)/src
# Where to install the plugin
plugindir = $(libdir)/gnumeric/plugins/$(VERSION)
plugin_LTLIBRARIES = libgnum_numtheory.la
libgnum_numtheory_la_SOURCES = numtheory.c
#
if BONOBO
gnumeric_version="$(VERSION)-bonobo"
else
gnumeric_version="$(VERSION)"
endif
gnumeric_libdir = $(libdir)/gnumeric/$(gnumeric_version)