From: schneik@... Date: 2000-03-24T17:15:23-06:00 Subject: [ruby-talk:02147] Ruby/Glade usage questions. First of all, thanks to everyone involved in developing the Ruby GTK+, XML parser, and Glade stuff. Even though I have just got to the point of getting the samples working (I had to go back and build various additional GNU (versions of some) tools in order to build other pieces of this stuff since I'm not using a Linux box), this sure looks like the start of a very powerful set of tools. I'm impressed. How soon will we see a Ruby entry on http://glade.pn.org/links.html and a corresponding button on Glade itself (File --> Project Options --> Language --> Ruby)? IIRC, one or more of the other supported languages started out with preliminary translator modules, so I would recommend pursuing this as soon as possible. (This is also another place that will get people asking, "What's this Ruby language?". Also, since Ruby should excel at complex, dynamic GUI development, in addition to making ordinary GUI development easier, this would be a good place to indirectly call attention to Ruby.) Is there some reason that glade2rb doesn't begin with "#!/usr/local/bin/ruby" or with "#!/usr/bin/env ruby"? It would be nice if "glade2rb input.glade output.rb" were in the README file. I encountered the following error: glade2rb smart.glade smart.rb /usr/local/bin/glade2rb:124:in `widgetDone': Unsuported widget: GtkMenuBar (RuntimeError) from /usr/local/lib/ruby/1.4/gladeparser.rb:91:in `endElement' from /usr/local/bin/glade2rb:17:in `parse' from /usr/local/bin/glade2rb:17:in `generate' from /usr/local/bin/glade2rb:150 Is GtkMenuBar really unsupported or did I make some sort of "overlooking the obvious" blunder? Here is the file I used: ==== start of file smart.glade ==== smart smart src pixmaps Perl False False False True True True True interface.c interface.h callbacks.c callbacks.h support.c support.h GtkWindow window1 window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False True False GtkAlignment alignment1 0.5 0.5 1 1 GtkMenuBar menubar1 GTK_SHADOW_OUT GtkMenuItem file1 activate on_file1_activate Fri, 24 Mar 2000 21:08:51 GMT False GtkMenuItem edit1 activate on_edit1_activate Fri, 24 Mar 2000 21:09:06 GMT False GtkMenuItem view1 activate on_view1_activate Fri, 24 Mar 2000 21:09:12 GMT False GtkMenuItem tools1 activate on_tools1_activate Fri, 24 Mar 2000 21:09:19 GMT False GtkMenuItem help1 activate on_help1_activate Fri, 24 Mar 2000 21:09:25 GMT True ==== end of file ==== Conrad Schneiker (This note is unofficial and subject to improvement without notice.)