From: Kristof B. <kr...@vl...> - 2002-07-29 17:23:58
|
Hello. > On Sun, 28 Jul 2002 17:01:34 +0200 (CEST) > "Kristof Bastiaensen" wrote: > >> This is an example taken from the gtk - user manual. >> There it uses the function gtk_block_signal_handler_by_func. >> This is not available in the ruby-language bindings, so I use >> a global variable. > > Hmm, I could not find gtk_block_signal_handler_by_func. > Is it gtk_signal_connect_by_func? > Sorry, I meaned gtk_signal_handler_block_by_func. I think it is not implemented because ruby connects signals by proc, not by func. > #and I don't know the example what you see. The example is from the gtk-manual, Example 1. under GtkEditable. It works with c, but not with ruby (when converted). >> Is there a way to make this work, or do I have change to the >> c-language? > > I wrote a script same as your code once. > It works fine for ASCII charcter, but it doesn't work with > 2-byte character(like Kanji). > Thank you, this will do very fine. I noticed that when using libglade, setting the flag After for the signal handler in the glade-file didn't seem to work (if I didn't overlook something...). Thanks, Kristof Bastiaensen |