Commit 302c5059 authored by Stepan Kasal's avatar Stepan Kasal

Move solver_max_time_err to gutils.c

parent 4134ab28
2005-05-31 Stepan Kasal <kasal@ucw.cz>
* src/dialogs/dialog-solver.c (solver_max_time_err): Move the
variable and its initialization...
* src/gutils.c (gutils_init): ... here.
* src/gutils.h (solver_max_time_err): Declare.
* src/tools/solver/solver.c: Include gutils.h instead of the
declaration of solver_max_time_err.
2005-05-31 Stepan Kasal <kasal@ucw.cz>
* src/commands.c (cmd_set_text): Remove the variable `GObject *obj';
......
2005-05-31 Stepan Kasal <kasal@ucw.cz>
* src/dialogs/dialog-solver.c (solver_max_time_err): Move the
variable and its initialization...
* src/gutils.c (gutils_init): ... here.
* src/gutils.h (solver_max_time_err): Declare.
* src/tools/solver/solver.c: Include gutils.h instead of the
declaration of solver_max_time_err.
2005-05-31 Stepan Kasal <kasal@ucw.cz>
* src/commands.c (cmd_set_text): Remove the variable `GObject *obj';
......
......@@ -134,7 +134,6 @@ static const char *const model_type_group[] = {
static GList *lp_alg_name_list = NULL;
static GList *qp_alg_name_list = NULL;
const gchar *solver_max_time_err;
/**
* is_hom_row_or_col_ref:
......@@ -1027,10 +1026,6 @@ dialog_init (SolverState *state)
param = state->sheet->solver_parameters;
solver_max_time_err = _("The maximum time exceeded. The optimal "
"value could not be found in given "
"time.");
if (lp_alg_name_list == NULL) {
for (i = 0; algorithm_defs [i].name; i++)
switch (algorithm_defs [i].type) {
......
......@@ -28,6 +28,8 @@
#include <errno.h>
#include <gsf/gsf-impl-utils.h>
const gchar *solver_max_time_err;
#ifndef G_OS_WIN32
const char *gnumeric_lib_dir = GNUMERIC_LIBDIR;
const char *gnumeric_data_dir = GNUMERIC_DATADIR;
......@@ -63,6 +65,10 @@ gutils_init (void)
home_dir = g_get_home_dir ();
gnumeric_usr_dir = (home_dir == NULL ? NULL :
g_build_filename (home_dir, ".gnumeric", GNUMERIC_VERSION, NULL));
solver_max_time_err = _("The maximum time exceeded. The optimal "
"value could not be found in given "
"time.");
}
void
......
......@@ -3,6 +3,8 @@
#include <goffice/utils/regutf8.h>
extern const gchar *solver_max_time_err;
void gutils_init (void);
void gutils_shutdown (void);
......
......@@ -40,6 +40,7 @@
#include "mathfunc.h"
#include "analysis-tools.h"
#include "api.h"
#include "gutils.h"
#include <math.h>
#include <stdlib.h>
......@@ -48,8 +49,6 @@
#include <sys/times.h>
#endif
extern const gchar *solver_max_time_err;
/* ------------------------------------------------------------------------- */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment