[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-mnstbs-mnui

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 11月 5日 (月) 08:20:42 JST


-------------------------
REMOTE_ADDR = 184.145.95.170
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnui
-------------------------
@@ -274,7 +274,7 @@
     
     Here we define the top menu items. Note, that the second item saved in variable 'mitem2' is the sub-menu, hence no signal handling is required for this menu item. 
 
-    -2-{{br}} Next we proceed to the first sub-menu on the top menu, which we created in step #1 (well, on our top menu we have only one sub-menu item, but in general there could be more on every menu and/or sub-menu). The difference between, how we passed menu items to our 'mk_submenu' method in the earlier 'menuitems-n-submenus-1.rb' program and now, here in 'menuitems-n-submenus-2.rb' is, that instead of a list which was collected into the array parameter earlier, now we build a hash in which keys are the menu items, and the value is supposed to be the the callback proc for final (leaf) menu items which are passed in as String objects, and((*nul*))for the sub-menus and separators which are of type Gtk::Menu and Gtk::MenuItem respectively.
+    -2-{{br}} Next we proceed to the first sub-menu on the top menu, which we created in step #1 (well, on our top menu we have only one sub-menu item, but in general there could be more on every menu and/or sub-menu). The difference between, how we passed menu items to our 'mk_submenu' method in the earlier 'menuitems-n-submenus-1.rb' program and now, here in 'menuitems-n-submenus-2.rb' is, that instead of a list which was collected into the array parameter ('*menuitems') earlier, now we build a hash in which keys are the menu items, and the value is supposed to be the the callback proc for final (leaf) menu items which are passed in as String objects, and((*nul*))for the sub-menus and separators which are of type Gtk::Menu and Gtk::MenuItem respectively.
 
 
      # (2. menu building step)




ruby-gnome2-cvs メーリングリストの案内
Back to archive index