Commit 2792bc1d authored by Jody Goldberg's avatar Jody Goldberg

Have the zoom dialog custom spinbox close dialog when enter is pressed,

but should not snap values to multiples of 5.
parent 965b85ea
1999-10-06 Jody Goldberg <jgoldberg@home.com>
* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Have the custom zoom
spinbox call 'Ok' when enter is pressed.
* src/sheet.c (sheet_destroy_contents) : Fix typo causing memory
corruption.
......
1999-10-06 Jody Goldberg <jgoldberg@home.com>
* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Have the custom zoom
spinbox call 'Ok' when enter is pressed.
* src/sheet.c (sheet_destroy_contents) : Fix typo causing memory
corruption.
......
......@@ -124,6 +124,10 @@ dialog_zoom_impl (Workbook *wb, Sheet *cur_sheet, GladeXML *gui)
/* Make the dialog a child of the application so that it will iconify */
gnome_dialog_set_parent (GNOME_DIALOG (dialog), GTK_WINDOW (wb->toplevel));
/* Hitting enter in the spin box should Press 'Ok' */
gnome_dialog_editable_enters(GNOME_DIALOG(dialog),
GTK_EDITABLE(zoom));
/* Bring up the dialog */
res = gnome_dialog_run (GNOME_DIALOG (dialog));
if (res == 0) {
......
......@@ -233,7 +233,7 @@
<digits>0</digits>
<numeric>True</numeric>
<update_policy>GTK_UPDATE_ALWAYS</update_policy>
<snap>True</snap>
<snap>False</snap>
<wrap>False</wrap>
<value>100</value>
<lower>10</lower>
......
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