Commit 83ff0104 authored by J.H.M. Dassen (Ray)'s avatar J.H.M. Dassen (Ray)

Annotated unused parameters

parent 97e9be12
2002-11-03 J.H.M. Dassen (Ray) <jdassen@debian.org>
* dialog-cell-format.c: annotated unused parameters.
* dialog-cell-format.c: Annotated unused parameters.
* dao-gui-utils.c, dialog-advanced-filter.c, dialog-analysis-tools.c,
dialog-autocorrect.c, dialog-autoformat.c, dialog-autosave.c,
dialog-cell-comment.c, dialog-cell-sort.c: ditto.
2002-11-03 Jody Goldberg <jody@gnome.org>
......
......@@ -71,8 +71,9 @@ cb_focus_on_entry (GtkWidget *widget, GtkWidget *entry)
*
**/
static void
tool_set_focus_output_range (GtkWidget *widget, GdkEventFocus *event,
GenericToolState *state)
tool_set_focus_output_range (__attribute__((unused)) GtkWidget *widget,
__attribute__((unused)) GdkEventFocus *event,
GenericToolState *state)
{
gtk_toggle_button_set_active
(GTK_TOGGLE_BUTTON (state->output_range), TRUE);
......
......@@ -54,7 +54,7 @@ typedef GenericToolState AdvancedFilterState;
* Update the dialog widgets sensitivity
**/
static void
advanced_filter_update_sensitivity_cb (GtkWidget *dummy,
advanced_filter_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
AdvancedFilterState *state)
{
Value *output_range = NULL;
......@@ -112,7 +112,8 @@ advanced_filter_update_sensitivity_cb (GtkWidget *dummy,
* contain sensible data.
**/
static void
advanced_filter_ok_clicked_cb (GtkWidget *button, AdvancedFilterState *state)
advanced_filter_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
AdvancedFilterState *state)
{
data_analysis_output_t dao;
Value *input;
......
......@@ -239,7 +239,8 @@ tool_destroy (GtkObject *w, GenericToolState *state)
* Close (destroy) the dialog
**/
static void
cb_tool_cancel_clicked (GtkWidget *button, GenericToolState *state)
cb_tool_cancel_clicked (__attribute__((unused)) GtkWidget *button,
GenericToolState *state)
{
gtk_widget_destroy (state->dialog);
return;
......@@ -491,7 +492,8 @@ tool_load_selection (GenericToolState *state, gboolean allow_multiple)
* areas as first input.
**/
static void
tool_update_sensitivity_cb (GtkWidget *dummy, GenericToolState *state)
tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
GenericToolState *state)
{
gboolean ready = FALSE;
gboolean input_1_ready = FALSE;
......@@ -552,7 +554,8 @@ tool_update_sensitivity_cb (GtkWidget *dummy, GenericToolState *state)
* contain sensible data.
**/
static void
corr_tool_ok_clicked_cb (GtkWidget *button, GenericToolState *state)
corr_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
GenericToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_generic_t *data;
......@@ -668,7 +671,8 @@ dialog_correlation_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
cov_tool_ok_clicked_cb (GtkWidget *button, GenericToolState *state)
cov_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
GenericToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_generic_t *data;
......@@ -784,7 +788,8 @@ dialog_covariance_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
rank_tool_ok_clicked_cb (GtkWidget *button, GenericToolState *state)
rank_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
GenericToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_ranking_t *data;
......@@ -872,7 +877,8 @@ dialog_ranking_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
fourier_tool_ok_clicked_cb (GtkWidget *button, GenericToolState *state)
fourier_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
GenericToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_fourier_t *data;
......@@ -969,7 +975,8 @@ static const char *stats_group[] = {
* contain sensible data.
**/
static void
cb_desc_stat_tool_ok_clicked (GtkWidget *button, DescriptiveStatState *state)
cb_desc_stat_tool_ok_clicked (__attribute__((unused)) GtkWidget *button,
DescriptiveStatState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_descriptive_t *data;
......@@ -1019,7 +1026,8 @@ cb_desc_stat_tool_ok_clicked (GtkWidget *button, DescriptiveStatState *state)
* a statistic is selected.
**/
static void
desc_stat_tool_update_sensitivity_cb (GtkWidget *dummy, DescriptiveStatState *state)
desc_stat_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
DescriptiveStatState *state)
{
gboolean ready = FALSE;
int i, j, an_int;
......@@ -1167,7 +1175,8 @@ dialog_descriptive_stat_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
ttest_tool_ok_clicked_cb (GtkWidget *button, TTestState *state)
ttest_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
TTestState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_ttests_t *data;
......@@ -1264,7 +1273,8 @@ ttest_tool_ok_clicked_cb (GtkWidget *button, TTestState *state)
* are the standard input (one or two ranges) and output items.
**/
static void
ttest_update_sensitivity_cb (GtkWidget *dummy, TTestState *state)
ttest_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
TTestState *state)
{
gboolean ready = FALSE;
gboolean input_1_ready = FALSE;
......@@ -1410,7 +1420,8 @@ dialog_ttest_adjust_to_invocation (TTestState *state)
*
**/
static void
dialog_ttest_realized (GtkWidget *widget, TTestState *state)
dialog_ttest_realized (__attribute__((unused)) GtkWidget *widget,
TTestState *state)
{
gtk_widget_set_usize (state->options_table,
state->options_table->allocation.width,
......@@ -1548,7 +1559,8 @@ dialog_ttest_tool (WorkbookControlGUI *wbcg, Sheet *sheet, ttest_type test)
* contain sensible data.
**/
static void
ftest_tool_ok_clicked_cb (GtkWidget *button, FTestToolState *state)
ftest_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
FTestToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_ftest_t *data;
......@@ -1591,7 +1603,8 @@ ftest_tool_ok_clicked_cb (GtkWidget *button, FTestToolState *state)
* are the standard input (one or two ranges) and output items.
**/
static void
ftest_update_sensitivity_cb (GtkWidget *dummy, FTestToolState *state)
ftest_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
FTestToolState *state)
{
gboolean ready = FALSE;
gboolean input_1_ready = FALSE;
......@@ -1698,7 +1711,8 @@ dialog_ftest_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* are the standard input (one range) and output items.
**/
static void
sampling_tool_update_sensitivity_cb (GtkWidget *dummy, SamplingState *state)
sampling_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
SamplingState *state)
{
gboolean ready = FALSE;
int i, periodic, size, number, err_size, err_number;
......@@ -1745,7 +1759,8 @@ sampling_tool_update_sensitivity_cb (GtkWidget *dummy, SamplingState *state)
* contain sensible data.
**/
static void
sampling_tool_ok_clicked_cb (GtkWidget *button, SamplingState *state)
sampling_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
SamplingState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_sampling_t *data;
......@@ -1814,7 +1829,8 @@ sampling_method_toggled_cb (GtkWidget *button, SamplingState *state)
*
**/
static void
dialog_sampling_realized (GtkWidget *widget, SamplingState *state)
dialog_sampling_realized (__attribute__((unused)) GtkWidget *widget,
SamplingState *state)
{
gtk_widget_set_usize (state->options_table,
state->options_table->allocation.width,
......@@ -1926,7 +1942,8 @@ dialog_sampling_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
regression_tool_ok_clicked_cb (GtkWidget *button, RegressionToolState *state)
regression_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
RegressionToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_regression_t *data;
......@@ -1999,7 +2016,8 @@ regression_tool_ok_clicked_cb (GtkWidget *button, RegressionToolState *state)
* an interval is given.
**/
static void
regression_tool_update_sensitivity_cb (GtkWidget *dummy, RegressionToolState *state)
regression_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
RegressionToolState *state)
{
gboolean ready = FALSE;
gboolean input_1_ready = FALSE;
......@@ -2106,7 +2124,8 @@ dialog_regression_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
*
**/
static void
exp_smoothing_tool_ok_clicked_cb (GtkWidget *button, ExpSmoothToolState *state)
exp_smoothing_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
ExpSmoothToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_exponential_smoothing_t *data;
......@@ -2146,7 +2165,7 @@ exp_smoothing_tool_ok_clicked_cb (GtkWidget *button, ExpSmoothToolState *state)
* a damping factor is given.
**/
static void
exp_smoothing_tool_update_sensitivity_cb (GtkWidget *dummy,
exp_smoothing_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
ExpSmoothToolState *state)
{
gboolean ready = FALSE;
......@@ -2247,7 +2266,8 @@ dialog_exp_smoothing_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
average_tool_ok_clicked_cb (GtkWidget *button, AverageToolState *state)
average_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
AverageToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_moving_average_t *data;
......@@ -2287,7 +2307,8 @@ average_tool_ok_clicked_cb (GtkWidget *button, AverageToolState *state)
* an interval is given.
**/
static void
average_tool_update_sensitivity_cb (GtkWidget *dummy, AverageToolState *state)
average_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
AverageToolState *state)
{
gboolean ready = FALSE;
int i, interval, err;
......@@ -2381,7 +2402,8 @@ dialog_average_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* Update the dialog widgets sensitivity
**/
static void
histogram_tool_update_sensitivity_cb (GtkWidget *dummy, HistogramToolState *state)
histogram_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
HistogramToolState *state)
{
gboolean ready = FALSE;
gboolean input_ready = FALSE;
......@@ -2438,7 +2460,8 @@ histogram_tool_update_sensitivity_cb (GtkWidget *dummy, HistogramToolState *stat
* contain sensible data.
**/
static void
histogram_tool_ok_clicked_cb (GtkWidget *button, HistogramToolState *state)
histogram_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
HistogramToolState *state)
{
data_analysis_output_t *dao;
analysis_tools_data_histogram_t *data;
......@@ -2498,8 +2521,9 @@ histogram_tool_ok_clicked_cb (GtkWidget *button, HistogramToolState *state)
*
**/
static void
histogram_tool_set_predetermined (GtkWidget *widget, GdkEventFocus *event,
HistogramToolState *state)
histogram_tool_set_predetermined (__attribute__((unused)) GtkWidget *widget,
__attribute__((unused)) GdkEventFocus *event,
HistogramToolState *state)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (state->predetermined_button), TRUE);
}
......@@ -2514,8 +2538,8 @@ histogram_tool_set_predetermined (GtkWidget *widget, GdkEventFocus *event,
*
**/
static void
histogram_tool_set_predetermined_on_toggle (GtkWidget *widget,
HistogramToolState *state)
histogram_tool_set_predetermined_on_toggle (__attribute__((unused)) GtkWidget *widget,
HistogramToolState *state)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (state->predetermined_button), TRUE);
}
......@@ -2531,8 +2555,9 @@ histogram_tool_set_predetermined_on_toggle (GtkWidget *widget,
*
**/
static void
histogram_tool_set_calculated (GtkWidget *widget, GdkEventFocus *event,
HistogramToolState *state)
histogram_tool_set_calculated (__attribute__((unused)) GtkWidget *widget,
__attribute__((unused)) GdkEventFocus *event,
HistogramToolState *state)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (state->calculated_button), TRUE);
}
......@@ -2638,7 +2663,8 @@ dialog_histogram_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
anova_single_tool_ok_clicked_cb (GtkWidget *button, AnovaSingleToolState *state)
anova_single_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
AnovaSingleToolState *state)
{
data_analysis_output_t *dao;
GtkWidget *w;
......@@ -2674,7 +2700,7 @@ anova_single_tool_ok_clicked_cb (GtkWidget *button, AnovaSingleToolState *state)
* an alpha is given.
**/
static void
anova_single_tool_update_sensitivity_cb (GtkWidget *dummy,
anova_single_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
AnovaSingleToolState *state)
{
gboolean input_1_ready = FALSE;
......@@ -2783,7 +2809,7 @@ dialog_anova_single_factor_tool (WorkbookControlGUI *wbcg, Sheet *sheet)
* contain sensible data.
**/
static void
anova_two_factor_tool_ok_clicked_cb (GtkWidget *button,
anova_two_factor_tool_ok_clicked_cb (__attribute__((unused)) GtkWidget *button,
AnovaTwoFactorToolState *state)
{
data_analysis_output_t *dao;
......@@ -2881,7 +2907,7 @@ anova_two_factor_tool_ok_clicked_cb (GtkWidget *button,
* an alpha and a replaication is given.
**/
static void
anova_two_factor_tool_update_sensitivity_cb (GtkWidget *dummy,
anova_two_factor_tool_update_sensitivity_cb (__attribute__((unused)) GtkWidget *dummy,
AnovaTwoFactorToolState *state)
{
gboolean ready = FALSE;
......
......@@ -62,7 +62,8 @@ typedef struct {
} AutoCorrectState;
static void
cb_add_clicked (GtkWidget *widget, AutoCorrectExceptionState *s)
cb_add_clicked (__attribute__((unused)) GtkWidget *widget,
AutoCorrectExceptionState *s)
{
gchar const *txt;
GSList *ptr;
......@@ -87,7 +88,8 @@ cb_add_clicked (GtkWidget *widget, AutoCorrectExceptionState *s)
}
static void
cb_remove_clicked (GtkWidget *widget, AutoCorrectExceptionState *s)
cb_remove_clicked (__attribute__((unused)) GtkWidget *widget,
AutoCorrectExceptionState *s)
{
char *txt;
GtkTreeIter iter;
......@@ -179,7 +181,8 @@ ac_dialog_toggle_init (AutoCorrectState *state, char const *name,
}
static gboolean
cb_autocorrect_destroy (GtkObject *w, AutoCorrectState *state)
cb_autocorrect_destroy (__attribute__((unused)) GtkObject *w,
AutoCorrectState *state)
{
g_slist_foreach (state->init_caps.exceptions, (GFunc)g_free, NULL);
g_slist_free (state->init_caps.exceptions);
......@@ -201,7 +204,8 @@ cb_autocorrect_destroy (GtkObject *w, AutoCorrectState *state)
}
static gint
cb_autocorrect_key_press (GtkWidget *widget, GdkEventKey *event,
cb_autocorrect_key_press (__attribute__((unused)) GtkWidget *widget,
GdkEventKey *event,
AutoCorrectState *state)
{
if (event->keyval == GDK_Escape) {
......@@ -212,13 +216,15 @@ cb_autocorrect_key_press (GtkWidget *widget, GdkEventKey *event,
}
static void
cb_cancel_button_clicked (GtkWidget *button, AutoCorrectState *state)
cb_cancel_button_clicked (__attribute__((unused)) GtkWidget *button,
AutoCorrectState *state)
{
gtk_object_destroy (GTK_OBJECT (state->dialog));
}
static void
cb_apply_button_clicked (GtkWidget *button, AutoCorrectState *state)
cb_apply_button_clicked (__attribute__((unused)) GtkWidget *button,
AutoCorrectState *state)
{
int i;
if (state->init_caps.changed)
......
......@@ -126,7 +126,8 @@ typedef struct {
********************************************************************************/
static MStyle *
cb_get_cell_style (PreviewGrid *pg, int row, int col, FormatTemplate *ft)
cb_get_cell_style (__attribute__((unused)) PreviewGrid *pg,
int row, int col, FormatTemplate *ft)
{
/*
* If this happens to be NULL the default style
......@@ -136,7 +137,9 @@ cb_get_cell_style (PreviewGrid *pg, int row, int col, FormatTemplate *ft)
}
static Value *
cb_get_cell_value (PreviewGrid *pg, int row, int col, gpointer data)
cb_get_cell_value (__attribute__((unused)) PreviewGrid *pg,
int row, int col,
__attribute__((unused)) gpointer data)
{
char const *text;
char *endptr = NULL;
......@@ -370,7 +373,8 @@ previews_load (AutoFormatState *state, int topindex)
********************************************************************************/
static void
cb_ok_clicked (GtkButton *button, AutoFormatState *state)
cb_ok_clicked (__attribute__((unused)) GtkButton *button,
AutoFormatState *state)
{
if (state->selected_template)
cmd_selection_autoformat (WORKBOOK_CONTROL (state->wbcg),
......@@ -380,7 +384,8 @@ cb_ok_clicked (GtkButton *button, AutoFormatState *state)
}
static void
cb_cancel_clicked (GtkButton *button, AutoFormatState *state)
cb_cancel_clicked (__attribute__((unused)) GtkButton *button,
AutoFormatState *state)
{
gtk_widget_destroy (GTK_WIDGET (state->dialog));
}
......@@ -407,7 +412,9 @@ cb_scroll_value_changed (GtkAdjustment *adjustment, AutoFormatState *state)
}
static gboolean
cb_canvas_button_press (GnomeCanvas *canvas, GdkEventButton *event, AutoFormatState *state)
cb_canvas_button_press (GnomeCanvas *canvas,
__attribute__((unused)) GdkEventButton *event,
AutoFormatState *state)
{
FormatTemplate *ft;
GSList *ptr;
......@@ -444,7 +451,8 @@ cb_canvas_button_press (GnomeCanvas *canvas, GdkEventButton *event, AutoFormatSt
}
static void
cb_check_item_toggled (GtkCheckMenuItem *item, AutoFormatState *state)
cb_check_item_toggled (__attribute__((unused)) GtkCheckMenuItem *item,
AutoFormatState *state)
{
GSList *ptr;
int i;
......@@ -472,7 +480,8 @@ cb_check_item_toggled (GtkCheckMenuItem *item, AutoFormatState *state)
}
static void
cb_category_popwin_hide (GtkWidget *widget, AutoFormatState *state)
cb_category_popwin_hide (__attribute__((unused)) GtkWidget *widget,
AutoFormatState *state)
{
state->current_category_group = category_group_list_find_category_by_name(
state->category_groups,
......@@ -519,7 +528,8 @@ cb_category_popwin_hide (GtkWidget *widget, AutoFormatState *state)
}
static void
cb_gridlines_item_toggled (GtkCheckMenuItem *item, AutoFormatState *state)
cb_gridlines_item_toggled (__attribute__((unused)) GtkCheckMenuItem *item,
AutoFormatState *state)
{
previews_free (state);
previews_load (state, state->preview_top);
......
......@@ -48,7 +48,8 @@ typedef struct {
#define AUTOSAVE_KEY "autosave-setup-dialog"
static void
autosave_set_sensitivity (GtkWidget *widget, autosave_t *state)
autosave_set_sensitivity (__attribute__((unused)) GtkWidget *widget,
autosave_t *state)
{
gboolean active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (state->autosave_on_off));
gint minutes;
......@@ -117,7 +118,8 @@ dialog_autosave_destroy (GtkObject *w, autosave_t *state)
* Close (destroy) the dialog
**/
static void
cb_autosave_cancel (GtkWidget *button, autosave_t *state)
cb_autosave_cancel (__attribute__((unused)) GtkWidget *button,
autosave_t *state)
{
gtk_widget_destroy (state->dialog);
return;
......@@ -129,7 +131,8 @@ cb_autosave_cancel (GtkWidget *button, autosave_t *state)
* @state:
**/
static void
cb_autosave_help (GtkWidget *button, autosave_t *state)
cb_autosave_help (__attribute__((unused)) GtkWidget *button,
__attribute__((unused)) autosave_t *state)
{
gnumeric_help_display ("autosave.html");
return;
......@@ -141,7 +144,7 @@ cb_autosave_help (GtkWidget *button, autosave_t *state)
* @state:
**/
static void
cb_autosave_ok (GtkWidget *button, autosave_t *state)
cb_autosave_ok (__attribute__((unused)) GtkWidget *button, autosave_t *state)
{
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (state->autosave_on_off))) {
int minutes;
......
......@@ -67,14 +67,16 @@ dialog_cell_comment_destroy (GtkObject *w, CommentState *state)
}
static void
cb_cell_comment_cancel_clicked (GtkWidget *button, CommentState *state)
cb_cell_comment_cancel_clicked (__attribute__((unused)) GtkWidget *button,
CommentState *state)
{
gtk_widget_destroy (state->dialog);
return;
}
static void
cb_cell_comment_ok_clicked (GtkWidget *button, CommentState *state)
cb_cell_comment_ok_clicked (__attribute__((unused)) GtkWidget *button,
CommentState *state)
{
GtkTextIter start;
GtkTextIter end;
......
......@@ -215,7 +215,8 @@ load_model_data (SortFlowState *state)
*
**/
static void
cb_update_add_sensitivity (GtkWidget *dummy, SortFlowState *state)
cb_update_add_sensitivity (__attribute__((unused)) GtkWidget *dummy,
SortFlowState *state)
{
Value *range_add;
......@@ -324,7 +325,8 @@ dialog_destroy (GtkObject *w, SortFlowState *state)
* Sort
**/
static void
cb_dialog_ok_clicked (GtkWidget *button, SortFlowState *state)
cb_dialog_ok_clicked (__attribute__((unused)) GtkWidget *button,
SortFlowState *state)
{
SortData *data;
SortClause *array, *this_array_item;
......@@ -385,7 +387,8 @@ cb_dialog_ok_clicked (GtkWidget *button, SortFlowState *state)
* Close (destroy) the dialog
**/
static void
cb_dialog_cancel_clicked (GtkWidget *button, SortFlowState *state)
cb_dialog_cancel_clicked (__attribute__((unused)) GtkWidget *button,
SortFlowState *state)
{
gtk_widget_destroy (state->dialog);
return;
......@@ -437,7 +440,8 @@ location_of_iter (GtkTreeIter *iter, GtkListStore *model)
*
*/
static void
cb_sort_selection_changed (GtkTreeSelection *ignored, SortFlowState *state)
cb_sort_selection_changed (__attribute__((unused)) GtkTreeSelection *ignored,
SortFlowState *state)
{
GtkTreeIter iter;
GtkTreeIter this_iter;
......@@ -461,7 +465,7 @@ cb_sort_selection_changed (GtkTreeSelection *ignored, SortFlowState *state)
}
static void
toggled (GtkCellRendererToggle *cell,
toggled (__attribute__((unused)) GtkCellRendererToggle *cell,
gchar *path_string,
gpointer data,
int column)
......@@ -519,10 +523,20 @@ move_cb (SortFlowState *state, gint direction)
g_free (name);
}
static void cb_up (GtkWidget *w, SortFlowState *state) { move_cb (state, -1); }
static void cb_down (GtkWidget *w, SortFlowState *state) { move_cb (state, 1); }
static void
cb_up (__attribute__((unused)) GtkWidget *w, SortFlowState *state)
{
move_cb (state, -1);
}
static void
cb_down (__attribute__((unused)) GtkWidget *w, SortFlowState *state)
{
move_cb (state, 1);
}
static void cb_delete_clicked (GtkWidget *w, SortFlowState *state)
static void
cb_delete_clicked (__attribute__((unused)) GtkWidget *w, SortFlowState *state)
{
GtkTreeIter iter;
......@@ -535,7 +549,7 @@ static void cb_delete_clicked (GtkWidget *w, SortFlowState *state)
cb_update_sensitivity (NULL, state);
}
static void cb_add_clicked (GtkWidget *w, SortFlowState *state)
static void cb_add_clicked (__attribute__((unused)) GtkWidget *w, SortFlowState *state)
{
Value *range_add;
GlobalRange *grange_sort;
......@@ -601,7 +615,7 @@ static void cb_add_clicked (GtkWidget *w, SortFlowState *state)
}
static void
cb_toggled_descending (GtkCellRendererToggle *cell,
cb_toggled_descending (__attribute__((unused)) GtkCellRendererToggle *cell,
gchar *path_string,
gpointer data)
{
......
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