[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dynui-tyu

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2009年 3月 7日 (土) 03:40:31 JST


-------------------------
REMOTE_ADDR = 74.15.84.244
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dynui-tyu
-------------------------
@@ -312,7 +312,7 @@
 In this exercise you should implement the same text editor with a menu bar rather than a toolbar. However, this implementation will be done partly with Glade and partly with Gtk::UIManager. First thing we need to do is design a new Glade layout. The fastest it will be to copy the earlier "ex10-1-editor-tb.glade" file into a new "ex10-2-editor-mb-ui.glade" file and remove the toolbar so the first cell of the vertical box (vbox1) will be empty (mesh). Another change we have to do in "vbox1" is to change the packing order of the children widgets, namely of the "scrolledwindow1" and the "hbox", from "start" to "end". It is premature to explain this now but it is worth drawing your attention in this direction. The next thing we need is our "menu2.ui" file where we have the required menu layout design. Yet another issue that you have to be concerned with is the fact that in Gtk::UIManager designs we prefer Proc callbacks over functions or methods. Again for the reasons likely not yet clear to you, I suggest you believe me that it is best if you  try to turn this around, namely use methods for callbacks that used to be Procs.
 
 
-Well, you must now have enough hints and information to try to re-write the output of ((*ruby-glade-create-template*)) into Ruby application that will use both (.glade) file and the (.ui) files. Indeed, you should try to tackle all of these issues on your own. I have to warn you it will not be as easy as it may sound, but do not give up too soon. Regardless of which studying technique you choose in either case, whether studying the solutions provided here or doing it yourself, your aim should be complete understanding of the issues involved.
+Well, you must now have enough hints and information to try to re-write the output of ((*ruby-glade-create-template*)) into a Ruby application that will use both (.glade) file and the (.ui) files. Indeed, you should try to tackle all of these issues on your own. I have to warn you it will not be as easy as it may sound, but do not give up too soon. Regardless of which studying technique you choose in either case, whether studying the solutions provided here or doing it yourself, your aim should be complete understanding of the issues involved.
 
 First let me provide the Glade output file for you to download and use for "verification" of your own creation:
 




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