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

tweak the bounds as the type changes (top 150% makes no sense)


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

	* dialog-autofilter.c (cb_top10_type_changed) : tweak the bounds as
	  the type changes (top 150% makes no sense)
parent a8937584
2002-12-05 Jody Goldberg <jody@gnome.org>
* dialog-autofilter.c (cb_top10_type_changed) : tweak the bounds as
the type changes (top 150% makes no sense)
* dialog-goto-cell.c (cb_dialog_goto_selection_changed) : fix
silliness.
......
......@@ -149,7 +149,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">10 1 500 1 10 10</property>
<property name="adjustment">10 1 500 1 0 0</property>
</widget>
<packing>
<property name="padding">0</property>
......
......@@ -104,9 +104,9 @@ 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);
gtk_spin_button_set_range (GTK_SPIN_BUTTON (spin), 1.,
(gtk_option_menu_get_history (menu) > 0) ? 100. : 500.);
}
void
......
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