Commit 66818013 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

replace helpfile address with #define from help.h ditto

2003-08-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/sheet-object-graphic.c: replace helpfile address
	  with #define from help.h
	* src/sheet-object-widget.c: ditto

2003-08-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* graph/gog-guru.c: add correct helpfile address

2003-08-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* help.h: new, list of help links for all help buttons
	* dialog-advanced-filter.c: replace helpfile address
	  with #define from help.h
	* dialog-autocorrect.c: ditto
	* dialog-autofilter.c: ditto
	* dialog-autoformat.c: ditto
	* dialog-cell-comment.c: ditto
	* dialog-cell-format.c: ditto
	* dialog-cell-sort.c: ditto
	* dialog-col-row.c: ditto
	* dialog-col-row.c: ditto
	* dialog-col-width.c: ditto
	* dialog-consolidate.c: ditto
	* dialog-consolidate.c: ditto
	* dialog-define-names.c: ditto
	* dialog-define-names.c: ditto
	* dialog-delete-cells.c: ditto
	* dialog-fill-series.c: ditto
	* dialog-formula-guru.c: ditto
	* dialog-function-select.c: ditto
	* dialog-goal-seek.c: ditto
	* dialog-goto-cell.c: ditto
	* dialog-hyperlink.c: ditto
	* dialog-insert-cells.c: ditto
	* dialog-merge.c: ditto
	* dialog-pivottable.c: ditto
	* dialog-plugin-manager.c: ditto
	* dialog-preferences.c: ditto
	* dialog-printer-setup.c: ditto
	* dialog-random-generator.c: ditto
	* dialog-row-height.c: ditto
	* dialog-scenarios.c: ditto
	* dialog-search-replace.c: ditto
	* dialog-search.c: ditto
	* dialog-sheet-order.c: ditto
	* dialog-shuffle.c: ditto
	* dialog-simulation.c: ditto
	* dialog-solver.c: ditto
	* dialog-summary.c: ditto
	* dialog-tabulate.c: ditto
	* dialog-view.c: ditto
	* dialog-workbook-attr.c: ditto
	* dialog-zoom.c: ditto
	* dialog-analysis-tools.c: ditto, and remove some
	  duplicate code
	* dialog-autosave.c: ditto, and use utilities
parent de3d0a7e
2003-08-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/sheet-object-graphic.c: replace helpfile address
with #define from help.h
* src/sheet-object-widget.c: ditto
2003-08-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/sheet-filter.c (cb_filter_blanks): hide non-blanks
......
2003-08-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/sheet-object-graphic.c: replace helpfile address
with #define from help.h
* src/sheet-object-widget.c: ditto
2003-08-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/sheet-filter.c (cb_filter_blanks): hide non-blanks
......
2003-08-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/sheet-object-graphic.c: replace helpfile address
with #define from help.h
* src/sheet-object-widget.c: ditto
2003-08-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/sheet-filter.c (cb_filter_blanks): hide non-blanks
......
2003-08-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* graph/gog-guru.c: add correct helpfile address
2003-08-01 Morten Welinder <terra@gnome.org>
* graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_finalize): Plug
......
......@@ -1203,10 +1203,9 @@ graph_guru_init (GraphGuruState *s)
s->button_navigate = graph_guru_init_button (s, "button_navigate");
s->button_ok = graph_guru_init_button (s, "button_ok");
/* FIXME: Add correct helpfile address */
gnumeric_init_help_button (
glade_xml_get_widget (s->gui, "help_button"),
"graph-guru.html");
"sect-graphics-plots");
return FALSE;
}
......
2003-08-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* help.h: new, list of help links for all help buttons
* dialog-advanced-filter.c: replace helpfile address
with #define from help.h
* dialog-autocorrect.c: ditto
* dialog-autofilter.c: ditto
* dialog-autoformat.c: ditto
* dialog-cell-comment.c: ditto
* dialog-cell-format.c: ditto
* dialog-cell-sort.c: ditto
* dialog-col-row.c: ditto
* dialog-col-row.c: ditto
* dialog-col-width.c: ditto
* dialog-consolidate.c: ditto
* dialog-consolidate.c: ditto
* dialog-define-names.c: ditto
* dialog-define-names.c: ditto
* dialog-delete-cells.c: ditto
* dialog-fill-series.c: ditto
* dialog-formula-guru.c: ditto
* dialog-function-select.c: ditto
* dialog-goal-seek.c: ditto
* dialog-goto-cell.c: ditto
* dialog-hyperlink.c: ditto
* dialog-insert-cells.c: ditto
* dialog-merge.c: ditto
* dialog-pivottable.c: ditto
* dialog-plugin-manager.c: ditto
* dialog-preferences.c: ditto
* dialog-printer-setup.c: ditto
* dialog-random-generator.c: ditto
* dialog-row-height.c: ditto
* dialog-scenarios.c: ditto
* dialog-search-replace.c: ditto
* dialog-search.c: ditto
* dialog-sheet-order.c: ditto
* dialog-shuffle.c: ditto
* dialog-simulation.c: ditto
* dialog-solver.c: ditto
* dialog-summary.c: ditto
* dialog-tabulate.c: ditto
* dialog-view.c: ditto
* dialog-workbook-attr.c: ditto
* dialog-zoom.c: ditto
* dialog-analysis-tools.c: ditto, and remove some
duplicate code
* dialog-autosave.c: ditto, and use utilities
2003-08-06 Andreas J. Guelzow <aguelzow@taliesin.ca>
http://bugzilla.gnome.org/show_bug.cgi?id=119287
......
......@@ -27,6 +27,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <sheet.h>
#include <cell.h>
......@@ -191,7 +192,7 @@ dialog_advanced_filter (WorkbookControlGUI *wbcg)
state = g_new (AdvancedFilterState, 1);
if (dialog_tool_init (state, wbcg, wb_control_cur_sheet (wbc),
"filters.html",
GNUMERIC_HELP_LINK_ADVANCED_FILTER,
"advanced-filter.glade", "Filter",
_("_List Range:"), _("Criteria _Range:"),
_("Could not create the Advanced Filter dialog."),
......
......@@ -45,6 +45,7 @@
#include <selection.h>
#include <value.h>
#include <commands.h>
#include "help.h"
#include <widgets/gnumeric-expr-entry.h>
......@@ -619,7 +620,8 @@ dialog_correlation_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (GenericToolState, 1);
if (dialog_tool_init (state, wbcg, sheet, "correlation-tool.html",
if (dialog_tool_init (state, wbcg, sheet,
GNUMERIC_HELP_LINK_CORRELATION,
"correlation.glade", "Correlation", NULL, NULL,
_("Could not create the Correlation Tool dialog."),
CORRELATION_KEY,
......@@ -736,7 +738,8 @@ dialog_covariance_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (GenericToolState, 1);
if (dialog_tool_init (state, wbcg, sheet, "covariance-tool.html",
if (dialog_tool_init (state, wbcg, sheet,
GNUMERIC_HELP_LINK_COVARIANCE,
"covariance.glade", "Covariance", NULL, NULL,
_("Could not create the Covariance Tool dialog."),
COVARIANCE_KEY,
......@@ -825,7 +828,7 @@ dialog_ranking_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (GenericToolState, 1);
if (dialog_tool_init (state, wbcg, sheet,
"rank-and-percentile-tool.html",
GNUMERIC_HELP_LINK_RANKING,
"rank.glade", "RankPercentile", NULL, NULL,
_("Could not create the Rank and Percentile "
"Tools dialog."),
......@@ -914,7 +917,7 @@ dialog_fourier_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (GenericToolState, 1);
if (dialog_tool_init (state, wbcg, sheet,
"fourier-analysis-tool.html",
GNUMERIC_HELP_LINK_FOURIER_ANALYSIS,
"fourier-analysis.glade", "FourierAnalysis",
NULL, NULL,
_("Could not create the Fourier Analysis Tool "
......@@ -1076,7 +1079,7 @@ dialog_descriptive_stat_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (DescriptiveStatState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"descriptive-statistics-tool.html",
GNUMERIC_HELP_LINK_DESCRIPTIVE_STATS,
"descriptive-stats.glade", "DescStats",
NULL, NULL,
_("Could not create the Descriptive Statistics "
......@@ -1453,7 +1456,7 @@ dialog_ttest_tool (WorkbookControlGUI *wbcg, Sheet *sheet, ttest_type test)
state->invocation = test;
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"t-test.html",
GNUMERIC_HELP_LINK_MEAN_TESTS,
"mean-tests.glade", "MeanTests",
_("Var_iable 1 Range:"),
_("_Variable 2 Range:"),
......@@ -1652,7 +1655,7 @@ dialog_ftest_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (FTestToolState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"ftest-two-sample-for-variances-tool.html",
GNUMERIC_HELP_LINK_F_TEST_TWO_SAMPLE,
"variance-tests.glade", "VarianceTests",
_("Var_iable 1 Range"), _("_Variable 2 Range"),
_("Could not create the FTest Tool dialog."),
......@@ -1855,7 +1858,7 @@ dialog_sampling_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (SamplingState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"sampling-tool.html",
GNUMERIC_HELP_LINK_SAMPLING,
"sampling.glade", "Sampling", NULL, NULL,
_("Could not create the Sampling Tool dialog."),
SAMPLING_KEY,
......@@ -2073,7 +2076,7 @@ dialog_regression_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (RegressionToolState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"regression-tool.html",
GNUMERIC_HELP_LINK_REGRESSION,
"regression.glade", "Regression",
_("_X Variables:"), _("_Y Variable:"),
_("Could not create the Regression Tool dialog."),
......@@ -2209,7 +2212,7 @@ dialog_exp_smoothing_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (ExpSmoothToolState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"exp-smoothing-tool.html",
GNUMERIC_HELP_LINK_EXP_SMOOTHING,
"exp-smoothing.glade",
"ExpSmoothing", NULL, NULL,
_("Could not create the Exponential Smoothing "
......@@ -2350,7 +2353,7 @@ dialog_average_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (AverageToolState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"moving-average-tool.html",
GNUMERIC_HELP_LINK_MOVING_AVERAGES,
"moving-averages.glade",
"MovAverages", NULL, NULL,
_("Could not create the Moving Average Tool "
......@@ -2576,7 +2579,7 @@ dialog_histogram_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (HistogramToolState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"histogram-tool.html",
GNUMERIC_HELP_LINK_HISTOGRAM,
"histogram.glade", "Histogram",
_("_Input Range:"), _("Bin _Range:"),
_("Could not create the Histogram Tool dialog."),
......@@ -2753,7 +2756,7 @@ dialog_anova_single_factor_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
state = g_new (AnovaSingleToolState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"anova.html#ANOVA-SINGLE-FACTOR-TOOL",
GNUMERIC_HELP_LINK_ANOVA_SINGLE_FACTOR,
"anova-one.glade", "ANOVA", NULL, NULL,
_("Could not create the ANOVA (single factor) "
"tool dialog."),
......@@ -2955,16 +2958,9 @@ dialog_anova_two_factor_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
return 0;
state = g_new (AnovaTwoFactorToolState, 1);
state->base.wbcg = wbcg;
state->base.wb = wb_control_workbook (WORKBOOK_CONTROL (wbcg));
state->base.sheet = sheet;
state->base.warning_dialog = NULL;
state->base.help_link = "anova.html#ANOVA-TWO-FACTOR-TOOL";
state->base.input_var1_str = NULL;
state->base.input_var2_str = NULL;
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"anova.html#ANOVA-TWO-FACTOR-TOOL",
GNUMERIC_HELP_LINK_ANOVA_TWO_FACTOR,
"anova-two.glade", "ANOVA", NULL, NULL,
_("Could not create the ANOVA (two factor) "
"tool dialog."),
......
......@@ -43,6 +43,7 @@
#include <gsf/gsf-impl-utils.h>
#include <gdk/gdkkeysyms.h>
#include <string.h>
#include "help.h"
typedef struct {
gboolean changed;
......@@ -254,7 +255,7 @@ dialog_init (AutoCorrectState *state)
ac_dialog_toggle_init (state, "replace_text", AC_REPLACE);
button = glade_xml_get_widget (state->gui, "help_button");
gnumeric_init_help_button (button, "autocorrect-tool.html");
gnumeric_init_help_button (button, GNUMERIC_HELP_LINK_AUTOCORRECT);
button = glade_xml_get_widget (state->gui, "ok_button");
g_signal_connect (GTK_OBJECT (button),
......
......@@ -22,6 +22,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <commands.h>
......@@ -288,7 +289,7 @@ dialog_auto_filter (WorkbookControlGUI *wbcg,
/* a candidate for merging into attach guru */
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"autofilter.html");
GNUMERIC_HELP_LINK_AUTOFILTER);
g_object_set_data_full (G_OBJECT (state->dialog),
"state", state, (GDestroyNotify)cb_autofilter_destroy);
wbcg_edit_attach_guru (state->wbcg, state->dialog);
......
......@@ -28,6 +28,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <mstyle.h>
......@@ -672,7 +673,7 @@ dialog_autoformat (WorkbookControlGUI *wbcg)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"autoformat.html");
GNUMERIC_HELP_LINK_AUTOFORMAT);
gtk_dialog_set_default_response (state->dialog, GTK_RESPONSE_OK);
......
......@@ -25,6 +25,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <workbook.h>
#include <workbook-control-gui-priv.h>
......@@ -40,7 +41,6 @@ typedef struct {
GtkWidget *autosave_on_off;
GtkWidget *ok_button;
GtkWidget *cancel_button;
GtkWidget *help_button;
Workbook *wb;
WorkbookControlGUI *wbcg;
} autosave_t;
......@@ -128,19 +128,6 @@ cb_autosave_cancel (G_GNUC_UNUSED GtkWidget *button,
return;
}
/**
* cb_autosave_help:
* @button:
* @state:
**/
static void
cb_autosave_help (G_GNUC_UNUSED GtkWidget *button,
G_GNUC_UNUSED autosave_t *state)
{
gnumeric_help_display ("autosave.html");
return;
}
/**
* cb_autosave_ok:
* @button:
......@@ -191,7 +178,6 @@ dialog_autosave (WorkbookControlGUI *wbcg)
state->autosave_on_off = glade_xml_get_widget (state->gui, "autosave_on_off");
state->ok_button = glade_xml_get_widget (state->gui, "button1");
state->cancel_button = glade_xml_get_widget (state->gui, "button2");
state->help_button = glade_xml_get_widget (state->gui, "button3");
if (!state->dialog || !state->minutes_entry || !state->prompt_cb ||
!state->autosave_on_off) {
......@@ -218,13 +204,14 @@ dialog_autosave (WorkbookControlGUI *wbcg)
g_signal_connect (G_OBJECT (state->cancel_button),
"clicked",
G_CALLBACK (cb_autosave_cancel), state);
g_signal_connect (G_OBJECT (state->help_button),
"clicked",
G_CALLBACK (cb_autosave_help), state);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
G_CALLBACK (dialog_autosave_destroy), state);
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "button3"),
GNUMERIC_HELP_LINK_AUTOFILTER);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (state->autosave_on_off),
wbcg->autosave);
gtk_toggle_button_set_active ((GtkToggleButton *) state->prompt_cb,
......
......@@ -22,6 +22,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <sheet.h>
......@@ -142,7 +143,7 @@ dialog_cell_comment (WorkbookControlGUI *wbcg, Sheet *sheet, CellPos const *pos)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"cell-comment.html");
GNUMERIC_HELP_LINK_CELL_COMMENT);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
......
......@@ -25,6 +25,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <sheet.h>
#include <sheet-view.h>
......@@ -2339,7 +2340,7 @@ fmt_dialog_impl (FormatState *state, FormatDialogPosition_t pageno)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "helpbutton"),
"formatting.html");
GNUMERIC_HELP_LINK_CELL_FORMAT);
state->ok_button = glade_xml_get_widget (state->gui, "okbutton");
g_signal_connect (G_OBJECT (state->ok_button),
......
......@@ -25,6 +25,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <workbook-view.h>
#include <gui-util.h>
......@@ -790,7 +791,7 @@ dialog_init (SortFlowState *state)
0., .5, 0., 0.);
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"cell-sort.html");
GNUMERIC_HELP_LINK_CELL_SORT);
state->ok_button = glade_xml_get_widget (state->gui, "ok_button");
g_signal_connect (G_OBJECT (state->ok_button),
......
/**
* dialog-col-row.c: Sets the magnification factor
* dialog-col-row.c: group/ungroup dialog
*
* Author:
* Andreas J. Guelzow <aguelzow@taliesin.ca>
......@@ -23,6 +23,7 @@
#include <gnumeric-config.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <commands.h>
......@@ -124,7 +125,7 @@ dialog_col_row (WorkbookControlGUI *wbcg, char const *operation,
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"row-height.html");
GNUMERIC_HELP_LINK_GROUP_UNGROUP);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
......
......@@ -24,6 +24,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <commands.h>
......@@ -294,7 +295,7 @@ dialog_col_width (WorkbookControlGUI *wbcg, gboolean use_default)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"col-width.html");
GNUMERIC_HELP_LINK_COL_WIDTH);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
......
......@@ -24,6 +24,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include "tool-dialogs.h"
#include <commands.h>
......@@ -551,7 +552,7 @@ dialog_consolidate (WorkbookControlGUI *wbcg)
state = g_new0 (ConsolidateState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sheet,
"consolidate-tool.html",
GNUMERIC_HELP_LINK_CONSOLIDATE,
"consolidate.glade", "Consolidate",
NULL, NULL,
_("Could not create the Consolidate dialog."),
......
......@@ -26,6 +26,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <expr.h>
#include <str.h>
......@@ -527,7 +528,7 @@ name_guru_init (NameGuruState *state, WorkbookControlGUI *wbcg)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "helpbutton"),
"names.html");
GNUMERIC_HELP_LINK_DEFINE_NAMES);
/* a candidate for merging into attach guru */
gnumeric_keyed_dialog (state->wbcg, GTK_WINDOW (state->dialog),
......
......@@ -23,6 +23,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <selection.h>
......@@ -175,10 +176,10 @@ dialog_delete_cells (WorkbookControlGUI *wbcg)
g_signal_connect (G_OBJECT (state->cancel_button),
"clicked",
G_CALLBACK (cb_delete_cell_cancel_clicked), state);
/* FIXME: Add correct helpfile address */
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "helpbutton"),
"delete-cells.html");
GNUMERIC_HELP_LINK_DELETE_CELLS);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
......
......@@ -26,6 +26,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include "tool-dialogs.h"
#include <gui-util.h>
......@@ -258,7 +259,7 @@ dialog_fill_series (WorkbookControlGUI *wbcg)
state = g_new (FillSeriesState, 1);
if (dialog_tool_init ((GenericToolState *)state, wbcg, sv_sheet (sv),
"fill-series-tool.html",
GNUMERIC_HELP_LINK_FILL_SERIES,
"fill-series.glade", "Fill_series",
NULL, NULL,
_("Could not create the Fill Series dialog."),
......
......@@ -27,6 +27,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <parse-util.h>
#include <gui-util.h>
......@@ -867,7 +868,7 @@ dialog_formula_guru_init (FormulaGuruState *state)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"cell-sort.html");
GNUMERIC_HELP_LINK_FORMULA_GURU);
g_object_set_data_full (G_OBJECT (state->dialog),
"state", state, (GDestroyNotify) dialog_formula_guru_destroy);
......
......@@ -27,6 +27,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <func.h>
......@@ -488,7 +489,7 @@ dialog_function_select_init (FunctionSelectState *state)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"cell-sort.html");
GNUMERIC_HELP_LINK_FUNCTION_SELECT);
g_object_set_data_full (G_OBJECT (state->dialog),
"state", state, (GDestroyNotify) dialog_function_select_destroy);
}
......
......@@ -25,6 +25,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <cell.h>
......@@ -555,7 +556,7 @@ dialog_init (GoalSeekState *state)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "helpbutton"),
"goal-seek.html");
GNUMERIC_HELP_LINK_GOAL_SEEK);
state->to_value_entry = glade_xml_get_widget (state->gui, "to_value_entry");
state->at_least_entry = glade_xml_get_widget (state->gui, "at_least-entry");
......
......@@ -26,6 +26,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <workbook-priv.h> /* for Workbook::names */
......@@ -309,7 +310,7 @@ dialog_goto_init (GotoState *state)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"cell-sort.html");
GNUMERIC_HELP_LINK_GOTO_CELL);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
......
......@@ -22,6 +22,7 @@
#include <gnumeric-config.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <commands.h>
#include <widgets/gnumeric-expr-entry.h>
......@@ -381,7 +382,7 @@ dhl_init (HyperlinkState *state)
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"hyperlink.html");
GNUMERIC_HELP_LINK_HYPERLINK);
menu = gtk_menu_new ();
for (i = 0 ; i < G_N_ELEMENTS (type); i++) {
......
......@@ -23,6 +23,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <selection.h>
......@@ -178,7 +179,7 @@ dialog_insert_cells (WorkbookControlGUI *wbcg)
/* FIXME: Add correct helpfile address */
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "helpbutton"),
"insert-cells.html");
GNUMERIC_HELP_LINK_INSERT_CELS);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
......
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* dialog-merge.c: Dialog to change the order of sheets in the Gnumeric
* spreadsheet
* dialog-merge.c: Dialog to merge a list of data into a given range
*
*
* Author:
* Andreas J. Guelzow <aguelzow@taliesin.ca>
......@@ -27,6 +27,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <workbook-control-gui.h>
......@@ -431,10 +432,9 @@ dialog_merge (WorkbookControlGUI *wbcg)
"clicked",
G_CALLBACK (cb_merge_cancel_clicked), state);
/* FIXME: Add correct helpfile address */
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"merge.html");
GNUMERIC_HELP_LINK_DATA_MERGE);
gnumeric_keyed_dialog (state->wbcg, GTK_WINDOW (state->dialog),
MERGE_KEY);
......
......@@ -20,6 +20,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <commands.h>
......@@ -108,7 +109,7 @@ dialog_pivottable (WorkbookControlGUI *wbcg)
/* a candidate for merging into attach guru */
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"pivottable.html");
GNUMERIC_HELP_LINK_PIVOT_TABLE);
g_object_set_data_full (G_OBJECT (state->dialog),
"state", state, (GDestroyNotify)cb_pivottable_guru_destroy);
wbcg_edit_attach_guru (state->wbcg, state->dialog);
......
......@@ -30,6 +30,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gutils.h>
#include <gui-util.h>
......@@ -759,7 +760,7 @@ dialog_plugin_manager (WorkbookControlGUI *wbcg)
pm_dialog_init (pm_gui);
gnumeric_init_help_button (
glade_xml_get_widget (gui, "help_button"),
"plugin.html");
GNUMERIC_HELP_LINK_PLUGIN_MANAGER);
g_signal_connect (glade_xml_get_widget (gui, "button_close_manager"),
"clicked",
G_CALLBACK (cb_pm_close_clicked), pm_gui);
......
......@@ -28,6 +28,8 @@
#include <gnumeric.h>
#include "application.h"
#include "dialogs.h"
#include "help.h"
#include "mstyle.h"
#include "value.h"
#include "workbook.h"
......@@ -1542,10 +1544,9 @@ dialog_preferences (WorkbookControlGUI *wbcg, gint page)
"switch-page",
G_CALLBACK (cb_dialog_pref_switch_page), state);
/* FIXME: Add correct helpfile address */
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
"sheet-order.html");
GNUMERIC_HELP_LINK_PREFERENCES);
g_signal_connect (G_OBJECT (state->dialog),
"destroy",
......
......@@ -24,6 +24,7 @@
#include <gnumeric-i18n.h>
#include <gnumeric.h>
#include "dialogs.h"
#include "help.h"
#include <gui-util.h>
#include <commands.h>
......@@ -1052,15 +1053,14 @@ do_hf_customize (gboolean header, PrinterSetupState *state)