ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 23日 (日) 02:16:42 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -332,20 +332,14 @@ # Pack the table that will hold the dialog widgets. fll_shr = Gtk::SHRINK | Gtk::FILL fll_exp = Gtk::EXPAND | Gtk::FILL - table.attach(Gtk::Label.new("Category:"), - 0, 1, 0, 1, fll_shr, fll_shr, 0, 0) - table.attach(combobox, - 1, 2, 0, 1, fll_exp, fll_shr, 0, 0) - table.attach(Gtk::Label.new("Product:"), - 0, 1, 1, 2, fll_shr, fll_shr, 0, 0) - table.attach(entry, - 1, 2, 1, 2, fll_exp, fll_shr, 0, 0) - table.attach(Gtk::Label.new("Quantity:"), - 0, 1, 2, 3, fll_shr, fll_shr, 0, 0) - table.attach(spin, - 1, 2, 2, 3, fll_exp, fll_shr, 0, 0) - table.attach(check, - 1, 2, 3, 4, fll_exp, fll_shr, 0, 0) + + table.attach(Gtk::Label.new("Category:"), 0, 1, 0, 1, fll_shr, fll_shr, 0, 0) + table.attach(combobox, 1, 2, 0, 1, fll_exp, fll_shr, 0, 0) + table.attach(Gtk::Label.new("Product:"), 0, 1, 1, 2, fll_shr, fll_shr, 0, 0) + table.attach(entry, 1, 2, 1, 2, fll_exp, fll_shr, 0, 0) + table.attach(Gtk::Label.new("Quantity:"), 0, 1, 2, 3, fll_shr, fll_shr, 0, 0) + table.attach(spin, 1, 2, 2, 3, fll_exp, fll_shr, 0, 0) + table.attach(check, 1, 2, 3, 4, fll_exp, fll_shr, 0, 0) dialog.vbox.pack_start_defaults(table) dialog.show_all