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...> |