[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby and GTK

Peter

3/26/2005 1:05:00 PM

Hi,

Ruby supports some interface to GTK, but from the FAQ it is unclear to
which extent. Older documentation at rubygarden.org mentions that a port
to GTK 2.0 is to be implemented.

Fortunately Ruby is able to use the GTK-server package as well
(http://www.gtk-s...). It runs with the preferred STDIN
interface. The GTK-server provides almost unlimited access to graphical
user interfaces using GTK. Due to the design of the GTK-server any GTK
version can be used.

Demoprograms with Ruby can be found at the examples section.

Regards

Peter
5 Answers

Paul van Tilburg

3/26/2005 1:15:00 PM

0

On Sat, Mar 26, 2005 at 10:04:47PM +0900, Peter wrote:
> Ruby supports some interface to GTK, but from the FAQ it is unclear to
> which extent. Older documentation at rubygarden.org mentions that a port
> to GTK 2.0 is to be implemented.

The Ruby/GTK bindings for GTK 2.0 fall under the Ruby/GNOME2 project,
see the project page at: http://ruby-gnome2.sourc...
(hmm, which seems to have a broken Hiki setup right at this moment).

IMO great bindings.. had to switch back (yes, back) to PyGTK last week,
one can see again how nice Ruby/GNOME2 is, bound with care :)

Paul

--
Student @ Eindhoven | email: paul@luon.net
University of Technology, The Netherlands | JID: paul@luon.net
>>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181


Joao Pedrosa

3/26/2005 1:21:00 PM

0

Hi,

On Sat, 26 Mar 2005 22:04:47 +0900, Peter <somewhere@nospam.org> wrote:
> Hi,
>
> Ruby supports some interface to GTK, but from the FAQ it is unclear to
> which extent. Older documentation at rubygarden.org mentions that a port
> to GTK 2.0 is to be implemented.
>
> Fortunately Ruby is able to use the GTK-server package as well
> (http://www.gtk-s...). It runs with the preferred STDIN
> interface. The GTK-server provides almost unlimited access to graphical
> user interfaces using GTK. Due to the design of the GTK-server any GTK
> version can be used.
>
> Demoprograms with Ruby can be found at the examples section.

This is cool, but I use the standard Ruby-GNOME2 bindings, which
provide Ruby-GTK2 bindings as well. As I have some screenshots on the
Web, I feel I can show you what's possible with the Ruby-GNOME2
bindings:

1. Very simple and custom editor:
http://ruby.com.br/~pedrosa/ruby_...

2. Very simple and custom IRC client:
http://ruby.com.br/~pedrosa/ircon...

3. Very simple and custom Master-Detail table editor:
http://ruby.com.br/~pedrosa/e...

4. Very simple and custom Chess PGN viewer:
http://ruby.com.br/~pedrosa...

5. Very simple and custom Joel on Software sincronization program:
http://ruby.com.br/~pedrosa/jos_o...

(None of these are available for download, sorry. :-))

I have more of these, because the Ruby-GNOME2 is very good to base
some tools on it -- it supports Windows and Linux seamlessly.

Those GTK+ Mozilla bindings could be handy, too. But I'm yet to give it a try.

Cheers,
Joao


Randy Kramer

3/26/2005 5:16:00 PM

0

On Saturday 26 March 2005 08:20 am, Joao Pedrosa wrote:
> (None of these are available for download, sorry. :-))

Why (just curious)--is it because they are proprietary in some sense, you
don't intend to distribute them, or you just don't have or haven't set up a
means to make them available for download?

regards,
Randy Kramer


Joao Pedrosa

3/26/2005 5:24:00 PM

0

Hi,

On Sun, 27 Mar 2005 02:15:38 +0900, Randy Kramer <rhkramer@gmail.com> wrote:
> On Saturday 26 March 2005 08:20 am, Joao Pedrosa wrote:
> > (None of these are available for download, sorry. :-))
>
> Why (just curious)--is it because they are proprietary in some sense, you
> don't intend to distribute them, or you just don't have or haven't set up a
> means to make them available for download?

In the future I might release some libs as open-source, but I don't
plan to do that right now. These programs depend on such libs. :-)

Cheers,
Joao


Masao Mutoh

3/26/2005 6:12:00 PM

0

Hi,

On Sat, 26 Mar 2005 22:04:47 +0900
Peter <somewhere@nospam.org> wrote:

> Hi,
>
> Ruby supports some interface to GTK, but from the FAQ it is unclear to
> which extent. Older documentation at rubygarden.org mentions that a port
> to GTK 2.0 is to be implemented.

Ruby/GTK2 supports almost of all GTK-2.6.x APIs.
As you say, the information of rubygarden.org is too old.

See Ruby-GNOME2 Project Website

http://ruby-gnome2.sourc...

and also

http://ruby-gnome2.sourc...hiki.cgi?Status

--
:% Masao Mutoh<mutoh@highway.ne.jp>