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

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2012年 11月 20日 (火) 01:21:15 JST


-------------------------
REMOTE_ADDR = 184.145.95.170
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-tb
-------------------------
@@ -438,22 +438,23 @@
  # on the left and set the snap edge to the top of the widget.
  handle.shadow_type = Gtk::SHADOW_IN
  handle.handle_position = Gtk::POS_TOP		# or ... Gtk::POS_LEFT
- handle.snap_edge = Gtk::POS_TOP			# or ... Gtk::POS_LEFT
+ handle.snap_edge = Gtk::POS_TOP		# or ... Gtk::POS_LEFT
  
- #toolbar.set_size_request(600, -1)	# -- Important, otherwise only arrow 
- 					#    item box would be moved out!
- 					
+ # ---- handle's signal handlers are optional ----- (start) --
  handle.signal_connect('child-detached') do |w, child|
-   puts "dettached: child=#{child.class}"
    child.set_size_request(80, 450)
    child.orientation = Gtk::Orientation::VERTICAL
  end
  handle.signal_connect('child-attached') do |w, child|
-   child.set_size_request(600, -1)
    child.orientation = Gtk::Orientation::HORIZONTAL
    puts "attached: child=#{child.class}"
  end
- 
+ # ---- handle's signal handlers are optional ----- (end) --
+
+ # -- If you comment out the above tear-off orientation signal handling
+ #    code make sure you uncomment the following line! 
+ #toolbar.set_size_request(600, -1)	# -- Important, otherwise only arrow 
+ 					#    item box would be moved out!
  handle.add(toolbar)
 
  vbox = Gtk::VBox.new(false, 5)




ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index