[#1649] Re: New Ruby projects — Yukihiro Matsumoto <matz@...>
The following message is a courtesy copy of an article
[#1672] Re: Ruby 1.4 stable manual bug? — Yukihiro Matsumoto <matz@...>
The following message is a courtesy copy of an article
[#1673] Re: Possible problem with ext/socket in 1.5.2 — itojun@...
[#1694] Conventions for our Ruby book — Dave Thomas <Dave@...>
[#1715] Install postgresql support — Ikhlasul Amal <amal@...>
Hi all,
Hi,
[#1786] Is this a bug? — Clemens Hintze <clemens.hintze@...>
(mailed & posted)
[#1814] Objects nested sometimes. — Hugh Sasse Staff Elec Eng <hgs@...>
I am attemptiong to write a package which consists of a workspace
[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>
Hi all,
Hi,
Yukihiro Matsumoto writes:
Hi,
Hi,
[#1834] enum examples? — Hugh Sasse Staff Elec Eng <hgs@...>
Has anyone any examplse of using the Enumerable module? I've had a
[#1844] Minor irritation, can't figure out how to patch it though! — Hugh Sasse Staff Elec Eng <hgs@...>
I was considering how difficult it would be to patch Ruby to accept
[#1889] [ruby-1.5.3] require / SAFE — ts <decoux@...>
[#1896] Ruby Syntax similar to other languages? — "David Douthitt" <DDouthitt@...>
From: Yukihiro Matsumoto <matz@netlab.co.jp>
[#1900] Enumerations and all that. — Hugh Sasse Staff Elec Eng <hgs@...>
Thank you to the people who responded to my questions about Enumerated
Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
On 16 Mar 2000, Dave Thomas wrote:
[#1929] Re: Class Variables — "David Douthitt" <DDouthitt@...>
| "David Douthitt" <DDouthitt@cuna.com> writes:
[#1942] no Fixnum#new ? — Quinn Dunkan <quinn@...>
Ok, I can add methods to a built-in class well enough (yes I know about succ,
[#1989] English Ruby/Gtk Tutorial? — schneik@...
Hi,
[#2022] rb_global_entry — ts <decoux@...>
[#2036] Anonymous and Singleton Classes — B_DAVISON <Bob.Davison@...>
I am a Ruby newbie and having some problems getting my mind around certain
[#2069] Ruby/GTK+ question about imlib --> gdk-pixbug — schneik@...
[#2073] Re: eval.rb fails — "Dat Nguyen" <thucdat@...>
The doc is fine, this happens only if you try to execute 'until' block
On Wed, 22 Mar 2000, Dat Nguyen wrote:
[#2084] Scope violated by import via 'require'? — Clemens Hintze <c.hintze@...>
Hi,
[#2104] ARGF or $< — Hugh Sasse Staff Elec Eng <hgs@...>
Has anyone any examples of how to use ARGF or $< as I cannot find much
Hi.
[#2165] Ruby strict mode and stand-alone executables. — "Conrad Schneiker" <schneiker@...>
Some people want Ruby to have a strict compile mode.
[#2203] Re: parse bug in 1.5 — schneik@...
[#2212] Re: Ruby/Glade usage questions. — ts <decoux@...>
>>>>> "m" == mrilu <mrilu@ale.cx> writes:
[#2241] setter() for local variables — ts <decoux@...>
[#2256] Multiple assignment of pattern match results. — schneik@...
[#2267] Re: Ruby and Eiffel — h.fulton@...
[#2309] Question about attribute writers — Dave Thomas <Dave@...>
Clemens Hintze <c.hintze@gmx.net> writes:
[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 ====
<?xml version="1.0"?>
<GTK-Interface>
<project>
<name>smart</name>
<program_name>smart</program_name>
<directory></directory>
<source_directory>src</source_directory>
<pixmaps_directory>pixmaps</pixmaps_directory>
<language>Perl</language>
<gnome_support>False</gnome_support>
<gettext_support>False</gettext_support>
<use_widget_names>False</use_widget_names>
<output_main_file>True</output_main_file>
<output_support_files>True</output_support_files>
<output_build_files>True</output_build_files>
<backup_source_files>True</backup_source_files>
<main_source_file>interface.c</main_source_file>
<main_header_file>interface.h</main_header_file>
<handler_source_file>callbacks.c</handler_source_file>
<handler_header_file>callbacks.h</handler_header_file>
<support_source_file>support.c</support_source_file>
<support_header_file>support.h</support_header_file>
<translatable_strings_file></translatable_strings_file>
</project>
<widget>
<class>GtkWindow</class>
<name>window1</name>
<title>window1</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
<widget>
<class>GtkAlignment</class>
<name>alignment1</name>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xscale>1</xscale>
<yscale>1</yscale>
<widget>
<class>GtkMenuBar</class>
<name>menubar1</name>
<shadow_type>GTK_SHADOW_OUT</shadow_type>
<widget>
<class>GtkMenuItem</class>
<name>file1</name>
<signal>
<name>activate</name>
<handler>on_file1_activate</handler>
<last_modification_time>Fri, 24 Mar 2000 21:08:51
GMT</last_modification_time>
</signal>
<label>File</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>edit1</name>
<signal>
<name>activate</name>
<handler>on_edit1_activate</handler>
<last_modification_time>Fri, 24 Mar 2000 21:09:06
GMT</last_modification_time>
</signal>
<label>Edit</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>view1</name>
<signal>
<name>activate</name>
<handler>on_view1_activate</handler>
<last_modification_time>Fri, 24 Mar 2000 21:09:12
GMT</last_modification_time>
</signal>
<label>View</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>tools1</name>
<signal>
<name>activate</name>
<handler>on_tools1_activate</handler>
<last_modification_time>Fri, 24 Mar 2000 21:09:19
GMT</last_modification_time>
</signal>
<label>Tools</label>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>help1</name>
<signal>
<name>activate</name>
<handler>on_help1_activate</handler>
<last_modification_time>Fri, 24 Mar 2000 21:09:25
GMT</last_modification_time>
</signal>
<label>Help</label>
<right_justify>True</right_justify>
</widget>
</widget>
</widget>
</widget>
</GTK-Interface>
==== end of file ====
Conrad Schneiker
(This note is unofficial and subject to improvement without notice.)