SF.net SVN: geany:[3453] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Jan 8 17:27:57 UTC 2009


Revision: 3453
          http://geany.svn.sourceforge.net/geany/?rev=3453&view=rev
Author:   ntrel
Date:     2009-01-08 17:27:57 +0000 (Thu, 08 Jan 2009)

Log Message:
-----------
Fix remaining spin buttons in the prefs dialog (closes #2492317).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/prefs.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-01-08 17:14:18 UTC (rev 3452)
+++ trunk/ChangeLog	2009-01-08 17:27:57 UTC (rev 3453)
@@ -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  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c	2009-01-08 17:14:18 UTC (rev 3452)
+++ trunk/src/prefs.c	2009-01-08 17:27:57 UTC (rev 3453)
@@ -751,6 +751,8 @@
 			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 @@
 		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 @@
 		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");


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list