Commit 1e22ad65 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

silence warning. (gnm_filter_set_condition) : ditto.


2002-12-05  Jody Goldberg <jody@gnome.org>

	* src/sheet-filter.c (cb_filter_button_release) : silence warning.
	(gnm_filter_set_condition) : ditto.
parent ebb02df4
2002-12-05 Jody Goldberg <jody@gnome.org>
* src/sheet-filter.c (cb_filter_button_release) : silence warning.
(gnm_filter_set_condition) : ditto.
* src/plugin-service.c : s/gnum_plugin/gnm_plugin/
......
2002-12-05 Jody Goldberg <jody@gnome.org>
* src/sheet-filter.c (cb_filter_button_release) : silence warning.
(gnm_filter_set_condition) : ditto.
* src/plugin-service.c : s/gnum_plugin/gnm_plugin/
......
2002-12-05 Jody Goldberg <jody@gnome.org>
* src/sheet-filter.c (cb_filter_button_release) : silence warning.
(gnm_filter_set_condition) : ditto.
* src/plugin-service.c : s/gnum_plugin/gnm_plugin/
......
......@@ -61,7 +61,7 @@ cb_autofilter_destroy (AutoFilterState *state)
}
static void
cb_autofilter_ok (GtkWidget *button G_GNUC_UNUSED,
cb_autofilter_ok (G_GNUC_UNUSED GtkWidget *button,
AutoFilterState *state)
{
GnmFilterCondition *cond = NULL;
......@@ -93,12 +93,22 @@ cb_autofilter_ok (GtkWidget *button G_GNUC_UNUSED,
}
static void
cb_autofilter_cancel (GtkWidget *button G_GNUC_UNUSED,
AutoFilterState *state)
cb_autofilter_cancel (G_GNUC_UNUSED GtkWidget *button,
AutoFilterState *state)
{
gtk_widget_destroy (state->dialog);
}
static void
cb_top10_type_changed (GtkOptionMenu *menu,
AutoFilterState *state)
{
GtkWidget *spin = glade_xml_get_widget (state->gui, "item_count");
int max_val = (gtk_option_menu_get_history (menu) > 0) ? 100 : 500;
printf ("%d\n", max_val);
}
void
dialog_auto_filter (WorkbookControlGUI *wbcg,
GnmFilter *filter, int field,
......@@ -123,6 +133,14 @@ dialog_auto_filter (WorkbookControlGUI *wbcg,
g_return_if_fail (state->gui != NULL);
if (is_expr) {
} else {
w = glade_xml_get_widget (state->gui, "item_vs_percentage_option_menu");
g_signal_connect (G_OBJECT (w),
"changed",
G_CALLBACK (cb_top10_type_changed), state);
}
if (cond != NULL) {
GnmFilterOp const op = cond->op[0];
if (is_expr && 0 == (op & GNM_FILTER_OP_TYPE_MASK)) {
......
......@@ -59,14 +59,14 @@ cb_pivottable_guru_destroy (PivotTableGuru *state)
}
static void
cb_pivottable_guru_ok (GtkWidget *button G_GNUC_UNUSED,
cb_pivottable_guru_ok (G_GNUC_UNUSED GtkWidget *button,
PivotTableGuru *state)
{
gtk_widget_destroy (state->dialog);
}
static void
cb_pivottable_guru_cancel (GtkWidget *button G_GNUC_UNUSED,
cb_pivottable_guru_cancel (G_GNUC_UNUSED GtkWidget *button,
PivotTableGuru *state)
{
gtk_widget_destroy (state->dialog);
......
......@@ -894,7 +894,7 @@ gnm_filter_set_condition (GnmFilter *filter, unsigned i,
{
GnmFilterField *field;
gboolean set_infilter = FALSE;
gboolean existing_cond;
gboolean existing_cond = FALSE;
int r;
g_return_if_fail (filter != NULL);
......
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