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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 10月 31日 (水) 04:42:50 JST


-------------------------
REMOTE_ADDR = 74.14.158.59
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnui
-------------------------
@@ -236,16 +236,19 @@
 
 :Menu Program Design Based On Hash Of Items and Callbacks
 
-    We start by creating the top context menu. This process is no different than what we have been doing so far, namely we code everything on this top level by hand. At this point we can also connect all final or leaf menu items with the((*'activate'*))signal: 
+    -1-{{br}} We start by creating the top context menu. This process is no different than what we have been doing so far, namely we code everything on this top level by hand. At this point we can also connect all final or leaf menu items with the((*'activate'*))signal: 
 
+     # (1. menu building step)
      menu = Gtk::Menu.new
      menutearoff = Gtk::TearoffMenuItem.new
      menu.append(menutearoff)
      menu.append(mitem1 = Gtk::MenuItem.new("Test1"))
      menu.append(mitem2 = Gtk::MenuItem.new("Test2"))	# 'Test2' is the name for the 1st level sub-menu
      mitem1.signal_connect('activate') { |w| puts "Wigget=#{w.class} - Test1" }
-
+    
     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 
 
 
 




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