When I start shoes programs using the dialogue (i.e from the .bat
file), I get a choice of choosing from all the files in a directory,
or just the text ones.  I think it would be useful if I could choose
to see just the ruby ones.  I think the patch below fixes that, but
I'm not sure if I've hit the right place in the source tree for this
patch.  Also, it's the first time I've used git, so I may have
missed something important.  I don't have a compiler for windows, so
haven't tested this.  Given the target audience, it may be best to
change the word "Ruby" to be "Shoes".

        Hugh

diff --git a/shoes/native/windows.c b/shoes/native/windows.c
index 3d93afa..0bb759b 100644
--- a/shoes/native/windows.c
+++ b/shoes/native/windows.c
@@ -1483,7 +1483,7 @@ shoes_dialog_chooser(VALUE self, char *t
   ofn.lpstrTitle      = title;
   ofn.nMaxFile        = sizeof(_path);
   ofn.lpstrFile[0] = '\0';
-  ofn.lpstrFilter = "All\0*.*\0Text\0*.TXT\0";
+  ofn.lpstrFilter = "All\0*.*\0Ruby\0*.RB\0Text\0*.TXT\0";
   ofn.nFilterIndex = 1;
   ofn.lpstrFileTitle = NULL;
   ofn.nMaxFileTitle = 0;

Reply via email to