GNOME Bugzilla – Bug 117193
" Number of copies", "Width", "Height" in print dialog accepts alphanumeric data
Last modified: 2004-12-22 21:47:04 UTC
Steps to reproduce: 1. Open a 5-6 page document in gedit 2. Select File-> Print 3. Enter some alphanumeric characters in the edit box for "Number of copies" field Result: The editbox accepts alphanumeric character when only numeric values are valid for this field. The page numer is set back to 1 when "enter" key is pressed. Expected Result: The edit box should not let the user enter any non-numeric value. Similarly "Width" and "Height" in paper tab accepts non-numeric inputs.
s/Page Number/Number of copies in summary.
Created attachment 18207 [details] [review] proposed patch
In Jobs page two more spin button "Pages _From <> to <>" accepts non- numeric value. This option is seen when you create print dialog with GNOME_PRINT_RANGE_ALL | GNOME_PRINT_RANGE_RANGE option. Eg. Ghex->File->Print Hence uploading a new patch which fixes this problem also.
Created attachment 18380 [details] [review] updated patch
Chema: Pls. let me know if I can commit this patch?
This patch looks reasonable. Lets get it applied to HEAD only. Although its safe enough for gnome-2.4 I'd rather not change UI retroactively.
Applied the patch to HEAD. Marking the bug as fixed.