diff --git a/ChangeLog b/ChangeLog index a96865e7..d6c9ee64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ Fix using prefs dialog editor & files tab spin button values when they've just been edited and Alt-O is used to close the dialog without moving the focus. + * src/prefs.c: + Fix remaining spin buttons in the prefs dialog (closes #2492317). 2009-01-06 Enrico Tröger diff --git a/src/prefs.c b/src/prefs.c index f91543ea..9eb6e42e 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -751,6 +751,8 @@ on_prefs_button_clicked(GtkDialog *dialog, gint response, gpointer user_data) gtk_editable_get_chars(GTK_EDITABLE(widget), 0, -1)); widget = ui_lookup_widget(ui_widgets.prefs_dialog, "spin_long_line"); + /* note: use stash for new code - it updates spin buttons itself */ + gtk_spin_button_update(GTK_SPIN_BUTTON(widget)); editor_prefs.long_line_column = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget)); widget = ui_lookup_widget(ui_widgets.prefs_dialog, "check_folding"); @@ -806,12 +808,15 @@ on_prefs_button_clicked(GtkDialog *dialog, gint response, gpointer user_data) editor_prefs.auto_complete_symbols = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); widget = ui_lookup_widget(ui_widgets.prefs_dialog, "spin_symbol_complete_chars"); + gtk_spin_button_update(GTK_SPIN_BUTTON(widget)); editor_prefs.symbolcompletion_min_chars = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget)); widget = ui_lookup_widget(ui_widgets.prefs_dialog, "spin_symbollistheight"); + gtk_spin_button_update(GTK_SPIN_BUTTON(widget)); editor_prefs.symbolcompletion_max_height = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget)); widget = ui_lookup_widget(ui_widgets.prefs_dialog, "spin_line_break"); + gtk_spin_button_update(GTK_SPIN_BUTTON(widget)); editor_prefs.line_break_column = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget)); widget = ui_lookup_widget(ui_widgets.prefs_dialog, "check_autoclose_parenthesis"); @@ -925,6 +930,7 @@ on_prefs_button_clicked(GtkDialog *dialog, gint response, gpointer user_data) if (vte_info.have_vte) { widget = ui_lookup_widget(ui_widgets.prefs_dialog, "spin_scrollback"); + gtk_spin_button_update(GTK_SPIN_BUTTON(widget)); vc->scrollback_lines = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget)); widget = ui_lookup_widget(ui_widgets.prefs_dialog, "entry_shell");