From: Darrin T. <dth...@ch...> - 2002-08-06 20:17:59
|
I have a few questions. Wish I knew Japanese. Does anyone have a ballpark idea of when ruby-gnome2 will be stable enough for general use? Will it be easy to integrate the appropriate parts of ruby-gnome2 with the one-click windows installer from rubycentral.com? Thanks to all who are working on it. I've played with a cvs checkout and was able to pop up a dialog from irb. Fun. :-) Darrin |
From: Masao M. <mu...@hi...> - 2002-08-07 12:30:52
|
Hi, On Tue, 06 Aug 2002 15:17:52 -0500 Darrin Thompson <dth...@ch...> wrote: > I have a few questions. Wish I knew Japanese. OK, How I wish I knew English well;->. > Does anyone have a ballpark idea of when ruby-gnome2 will be stable > enough for general use? Sorry, but NO, though we make efforts. Now we are implementing common parts like glib and gobject, Ruby object <-> GTK object and others. Especially, Ruby Object <-> GTK Object converting algorithm was improved much better than Ruby-GNOME. And then, I am going to improve APIs and constants. #This is just an idea. I want any ideas/comments. (1) Setter/Getter In Ruby-GNOME, as there are no rule, we got confused sometimes. So I decide to make rules as follows: * Method has An argument setter: hoge= set_hoge(a) getter: hoge * Method has more than 2 arguments setter: set_fuga(a, b) getter: fuga #Have no arguments. get_fuga(a, b) #Have arguments. (2) Constants * Abolish Constants module. e.g. Gtk::ItemFactory::Constants. * Make rules for constants. Now I think as follows: - If the constants belong an object(class or module) obiviouly, include the constants among members of the object. e.g.)In the case of GtkDialog GtkDialogFlags GTK_DIALOG_MODAL -> Gtk::Dialog::MODAL GTK_DIALOG_DESTROY_WITH_PARENT -> Gtk::Dialog::DESTROY_WITH_PARENT GTK_DIALOG_NO_SEPARATOR -> Gtk::Dialog::NO_SEPARATOR GtkResponseType GTK_RESPONSE_NONE -> Gtk::Dialog::RESPONSE_NONE GTK_RESPONSE_REJECT -> Gtk::Dialog::RESPONSE_REJECT GTK_RESPONSE_ACCEPT -> Gtk::Dialog::RESPONSE_ACCEPT - The constants is independant from objects (though I don't know whether such constants exists). GTK_FOO_BAR -> Gtk::FOO_BAR > Will it be easy to integrate the appropriate parts of ruby-gnome2 with > the one-click windows installer from rubycentral.com? It is good idea. But now, I don't have any idea, because I don't have any knowhows/skills both Win32 and Installer of Win32. If you have any idea/knowhow/skills about it, I would like to start sub project such as installer_win32 under ruby-gnome2 #Though I may not be able to help you.... > Thanks to all who are working on it. I've played with a cvs checkout and > was able to pop up a dialog from irb. Fun. :-) Yeah! Especialy, Sakai-san who is also maintainer of Gimp-Ruby, wrote almost of all Ruby/GLib and improved many parts of Ruby-GNOME2. In addition, he is still continuing to write more cool source codes for Ruby-GNOME2. He is so cool hacker. Thanks! -- .:% Masao Mutoh<mu...@hi...> |
From: Darrin T. <dth...@ch...> - 2002-08-07 17:04:17
|
Did your decision to not use SWIG take into consideration the recent developments there? From what I've read on the english ruby-talk list, SWIG 1.3 is turning into a really excellent tool and the ruby to c code generator is excellent. Perhaps you all should reconsider? http://swig-jp.dyndns.org/ <- Japanese. I don't know what it actually says. :-) Darrin Masao Mutoh wrote: >Hi, > >On Tue, 06 Aug 2002 15:17:52 -0500 >Darrin Thompson <dth...@ch...> wrote: > > > >>I have a few questions. Wish I knew Japanese. >> >> > >OK, How I wish I knew English well;->. > > > >>Does anyone have a ballpark idea of when ruby-gnome2 will be stable >>enough for general use? >> >> > >Sorry, but NO, though we make efforts. > >Now we are implementing common parts like glib and gobject, >Ruby object <-> GTK object and others. >Especially, Ruby Object <-> GTK Object converting algorithm was improved >much better than Ruby-GNOME. > >And then, I am going to improve APIs and constants. >#This is just an idea. I want any ideas/comments. > >(1) Setter/Getter >In Ruby-GNOME, as there are no rule, we got confused sometimes. >So I decide to make rules as follows: > > * Method has An argument > setter: hoge= > set_hoge(a) > getter: hoge > * Method has more than 2 arguments > setter: set_fuga(a, b) > getter: fuga #Have no arguments. > get_fuga(a, b) #Have arguments. > >(2) Constants > * Abolish Constants module. e.g. Gtk::ItemFactory::Constants. > * Make rules for constants. > Now I think as follows: > - If the constants belong an object(class or module) obiviouly, > include the constants among members of the object. > e.g.)In the case of GtkDialog > GtkDialogFlags > GTK_DIALOG_MODAL -> Gtk::Dialog::MODAL > GTK_DIALOG_DESTROY_WITH_PARENT -> Gtk::Dialog::DESTROY_WITH_PARENT > GTK_DIALOG_NO_SEPARATOR -> Gtk::Dialog::NO_SEPARATOR > > GtkResponseType > GTK_RESPONSE_NONE -> Gtk::Dialog::RESPONSE_NONE > GTK_RESPONSE_REJECT -> Gtk::Dialog::RESPONSE_REJECT > GTK_RESPONSE_ACCEPT -> Gtk::Dialog::RESPONSE_ACCEPT > > - The constants is independant from objects > (though I don't know whether such constants exists). > GTK_FOO_BAR -> Gtk::FOO_BAR > > > >>Will it be easy to integrate the appropriate parts of ruby-gnome2 with >>the one-click windows installer from rubycentral.com? >> >> > >It is good idea. But now, I don't have any idea, because I don't have any >knowhows/skills both Win32 and Installer of Win32. > >If you have any idea/knowhow/skills about it, I would like to start sub >project such as installer_win32 under ruby-gnome2 >#Though I may not be able to help you.... > > > >>Thanks to all who are working on it. I've played with a cvs checkout and >>was able to pop up a dialog from irb. Fun. :-) >> >> > >Yeah! >Especialy, Sakai-san who is also maintainer of Gimp-Ruby, wrote almost >of all Ruby/GLib and improved many parts of Ruby-GNOME2. In addition, >he is still continuing to write more cool source codes for Ruby-GNOME2. >He is so cool hacker. Thanks! > > > |
From: Masao M. <mu...@hi...> - 2002-08-07 17:30:51
|
Hi, On Wed, 07 Aug 2002 12:04:09 -0500 Darrin Thompson <dth...@ch...> wrote: > Did your decision to not use SWIG take into consideration the recent > developments there? From what I've read on the english ruby-talk list, > SWIG 1.3 is turning into a really excellent tool and the ruby to c code > generator is excellent. Perhaps you all should reconsider? When I started Ruby-GNOME2, I decided to make Ruby-GNOME2 be not wrapper of GNOME2. Some methods will be named more ruby-like, Constants will be also changed. So I decided to write Ruby-GNOME2 by hand. But if you write Ruby-GNOME2 using SWIG and it'll become cool, I may accept it. Cheers. -- .:% Masao Mutoh<mu...@hi...> |
From: Evan M. <ma...@cs...> - 2002-08-07 22:34:26
|
Darrin Thompson wrote: > Did your decision to not use SWIG take into consideration the recent > developments there? From what I've read on the english ruby-talk list, > SWIG 1.3 is turning into a really excellent tool and the ruby to c code > generator is excellent. Perhaps you all should reconsider? > > http://swig-jp.dyndns.org/ <- Japanese. I don't know what it actually > says. :-) I believe one of their design decisions was to do things by hand. If you're going to use autogeneration, GTK provides a datafile (gtk.defs) that describes all of the C functions in a structured form that is parsable into generated wrappers. That's how PyGTK [Python] does it, for example (I believe that James, the guy behind PyGTK, is actually responsible for it). I wrote a small parser for that file a while back but there is still a lot of internal work to do-- the GObject <-> Ruby object stuff probably needs to be done by hand. |
From: Masao M. <mu...@hi...> - 2002-08-08 11:08:16
|
Hi, On Wed, 07 Aug 2002 15:34:17 -0700 Evan Martin <ma...@cs...> wrote: > If you're going to use autogeneration, GTK provides a datafile > (gtk.defs) that describes all of the C functions in a structured form > that is parsable into generated wrappers. That's how PyGTK [Python] > does it, for example (I believe that James, the guy behind PyGTK, is > actually responsible for it). There is a script for same purpose by Igarashi-san. #But as a result of some discussion with Mr.Igarashi, I did not adopted it. If you are still interested in, check it. http://www.ruby-lang.org/~iga/files/gnome-ruby-proto-20010916.tar.gz -- .:% Masao Mutoh<mu...@hi...> |