--- linux-2.5.45/scripts/tkgen.c-orig Sun Jan 13 15:55:11 2002 +++ linux-2.5.45/scripts/tkgen.c Sun Jan 13 16:02:34 2002 @@ -197,6 +197,7 @@ * previous options */ printf( "\tbind all \"puts \\\"no more menus\\\" \"\n"); + printf( "\tbind $w \"puts \\\"no more menus\\\" \"\n"); } else { @@ -204,6 +205,7 @@ * I should be binding to $w not all - but if I do nehat I get the error "unknown path" */ printf( "\tbind all $nextscript\n"); + printf( "\tbind $w $nextscript\n"); } printf( "\tbutton $w.f.prev -text \"Prev\" -underline 0\\\n" ); printf( "\t\t-width 15 -command \"catch {focus $oldFocus}; destroy $w; unregister_active %d; menu%d .menu%d \\\"$title\\\"\"\n", @@ -215,6 +217,8 @@ { printf( "\tbind $w \"catch {focus $oldFocus}; destroy $w; unregister_active %d; menu%d .menu%d \\\"$title\\\";break\"\n", menu_num, menu_num-1, menu_num-1 ); + printf( "\tbind $w \"catch {focus $oldFocus}; destroy $w; unregister_active %d; menu%d .menu%d \\\"$title\\\";break\"\n", + menu_num, menu_num-1, menu_num-1 ); } printf( "\tpack $w.f.back $w.f.next $w.f.prev -side left -expand on\n" ); printf( "\tpack $w.f -pady 10 -side bottom -anchor w -fill x\n" ); @@ -243,11 +247,17 @@ printf( "\t\t-width [expr [winfo screenwidth .] * 1 / 2] \n" ); printf( "\tframe $w.config.f\n" ); printf( "\tbind $w \"$w.config.canvas yview scroll 1 unit;break;\"\n"); + printf( "\tbind $w \"$w.config.canvas yview scroll 1 unit;break;\"\n"); + printf( "\tbind $w \"$w.config.canvas yview scroll 5 unit;break;\"\n"); printf( "\tbind $w \"$w.config.canvas yview scroll -1 unit;break;\"\n"); + printf( "\tbind $w \"$w.config.canvas yview scroll -1 unit;break;\"\n"); + printf( "\tbind $w \"$w.config.canvas yview scroll -5 unit;break;\"\n"); printf( "\tbind $w \"$w.config.canvas yview scroll 1 page;break;\"\n"); printf( "\tbind $w \"$w.config.canvas yview scroll -1 page;break;\"\n"); printf( "\tbind $w \"$w.config.canvas yview moveto 0;break;\"\n"); + printf( "\tbind $w \"$w.config.canvas yview moveto 0;break;\"\n"); printf( "\tbind $w \"$w.config.canvas yview moveto 1 ;break;\"\n"); + printf( "\tbind $w \"$w.config.canvas yview moveto 1 ;break;\"\n"); printf( "\tpack $w.config.canvas -side right -fill y\n" ); printf("\n\n"); }