From: Joshua K. <jos...@li...> - 2002-12-05 17:49:44
|
<snip> > You should call Gtk::Notebook#set_page(num) after Gtk::Window was showed. > > window.show_all > notebook.set_page( 3 ) #After window.show_all. > Gtk.main > That seems odd to me. I understod #show to mean that you were completely done with the widget, and that GTK can now display it, but you want to set it active, you are obviously not done with the widget yet. Am I incorrect in my understanding? > > BTW, > Your tutorial is so cool! > Everyone who try Ruby/GTK2 should read your tutorial at first. > Thank you. :) I hope it helps a lot of people. > But I think your codes as follows are strange. > > window.border_width=( 10 ) > window.title=( "Notebook Example" ) > > IMO, bellow codes are more natural. > > window.border_width = 10 > window.title = "Notebook Example" > > or > > window.set_border_width(10) > window.set_title("Notebook Example") > I may change it to this. I come from a procedural background, and I find that I miss my () and ;, o I add them in Ruby whenever I can. I'm also a lazy typer, so I use the shorter methods. If you think it will be a source of confussion, I will change it in he tutorial. > > And now, I try to implement Gtk::Itemfactory again. > The APIs will be changed. > So please wait to write tutorial for a moment. > Will do. I hope to get chapter 11 done today, and to finish up some misc items in previous chapters. As usual, I will upload the changes tonight. Thanks, Joshua Keith -- ______________________________________________ http://www.linuxmail.org/ Now with POP3/IMAP access for only US$19.95/yr Powered by Outblaze |
From: Joshua K. <jos...@li...> - 2002-12-05 19:18:25
|
<snip> > > Hmm, I don't know. I think it's GTK+ issue(though I have not try it in GTK+). > If you are interested in it, See GTK+ source codes. > I will do that when I get a chance. > Hmm, I would like to change above codes. > But others, I leave it to you. > Or are there anyone to have any idea? > The changes have been made. They will be uploaded tonight. I will add a section as to how you can use Ruby-GNOME2 as well, i.e #set_border_width( 10 ) vs #set_border_width = 10, etc > I'll finish it tomorrow night, maybe. > Take your time, I have plenty to do :) Thanks, Joshua Keith -- ______________________________________________ http://www.linuxmail.org/ Now with POP3/IMAP access for only US$19.95/yr Powered by Outblaze |
From: Nikolai :: lone-s. :: W. <lon...@ho...> - 2002-12-06 16:57:03
|
On Thu, 05 Dec 2002 12:16:44 +0000, Joshua Keith wrote: > <snip> > > > > Hmm, I don't know. I think it's GTK+ issue(though I have not try it in GTK+). > > If you are interested in it, See GTK+ source codes. > > > > I will do that when I get a chance. > > > Hmm, I would like to change above codes. > > But others, I leave it to you. > > Or are there anyone to have any idea? > > > The changes have been made. They will be uploaded tonight. I will add a > section as to how you can use Ruby-GNOME2 as well, > i.e #set_border_width( 10 ) vs #set_border_width = 10, etc > vs #border_width = 10 i hope ;) > > > I'll finish it tomorrow night, maybe. > > > Take your time, I have plenty to do :) > > Thanks, > Joshua Keith > -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star ::: ::: born: Chicago, IL USA :: loc now: Gothenburg, Sweden ::: ::: page: http://pcppopper.org/ :: top ref: google "pcp rocks" ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} |
From: Masao M. <mu...@hi...> - 2002-12-05 18:20:00
|
Hi, On Thu, 05 Dec 2002 09:44:40 -0700 "Joshua Keith" <jos...@li...> wrote: > <snip> > > You should call Gtk::Notebook#set_page(num) after Gtk::Window was showed. > > > > window.show_all > > notebook.set_page( 3 ) #After window.show_all. > > Gtk.main > > > That seems odd to me. I understod #show to mean that you were completely done > with the widget, and that GTK can now display it, but you want to set it active, > you are obviously not done with the widget yet. Am I incorrect in my understanding? Hmm, I don't know. I think it's GTK+ issue(though I have not try it in GTK+). If you are interested in it, See GTK+ source codes. > > IMO, bellow codes are more natural. > > > > window.border_width = 10 > > window.title = "Notebook Example" > > > > or > > > > window.set_border_width(10) > > window.set_title("Notebook Example") > > > I may change it to this. I come from a procedural background, and I find that > I miss my () and ;, o I add them in Ruby whenever I can. I'm also a lazy typer, > so I use the shorter methods. If you think it will be a source of confussion, > I will change it in he tutorial. Hmm, I would like to change above codes. But others, I leave it to you. Or are there anyone to have any idea? > > And now, I try to implement Gtk::Itemfactory again. > > The APIs will be changed. > > So please wait to write tutorial for a moment. > > > Will do. I hope to get chapter 11 done today, and to finish up some misc items > in previous chapters. As usual, I will upload the changes tonight. I'll finish it tomorrow night, maybe. Cheers, Masao. -- .:% Masao Mutoh<mu...@hi...> |