[#3741] Re: Why it's quiet -- standard distribution issues — Aleksi Niemel<aleksi.niemela@...>
I think it's the feature of the mailing list archive to create a threads of
[#3756] RE: XMP on comments — Aleksi Niemel<aleksi.niemela@...>
> require "xmp"
[#3766] modulo and remainder — Dave Thomas <Dave@...>
[#3776] Kernel.rand — Aleksi Niemel<aleksi.niemela@...>
How about defining:
[#3781] Widening out discussions — Dave Thomas <Dave@...>
[#3795] Re: Array.uniq! returning nil — Aleksi Niemel<aleksi.niemela@...>
> As matz said in [ruby-talk:3785] and Dave said in [ruby-talk:1229],
Hi, Aleksi,
[#3823] Re: Array.pick — Aleksi Niemel<aleksi.niemela@...>
> > Just a general comment--a brief statement of purpose and using
[#3827] JRuby? — Aleksi Niemel<aleksi.niemela@...>
Is there or will there be Ruby equivalent of JPython?
[#3882] Re: Array.uniq! returning nil — Aleksi Niemel<aleksi.niemela@...>
> |look too strange, confusing, or cryptic. Maybe just @, $, %, &.
Hi,
[#3918] A question about variable names... — Dave Thomas <Dave@...>
[#3935] If your company uses Pallets, Skids, Boxes, Lumber, etc. — pallets2@...
[#3956] Tk PhotoImage options — andy@... (Andrew Hunt)
Hi all,
[#3971] Thread and File do not work together — "Michael Neumann" <neumann@...>
following example do not work correctly with my ruby
[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>
> Principle of Least Effort.
Hi,
[#4005] Re: Pluggable functions and blocks — Aleksi Niemel<aleksi.niemela@...>
Aleksi makes a question:
[#4008] Ruby installation instructions for Windows — Aleksi Niemel<aleksi.niemela@...>
I had to write these instructions for my friends. I thought it might be nice
[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>
On 15 Jul 2000 22:08:50 -0500,
Hi,
[#4057] Re: What are you using Ruby for? — Aleksi Niemel<aleksi.niemela@...>
Johann:
[#4082] Re: What are you using Ruby for? — Aleksi Niemel<aleksi.niemela@...>
[#4091] 'each' and 'in' — hal9000@...
I just recently realized why the default
[#4107] Re: 'each' and 'in' -- special char problem? — schneik@...
[#4114] Method signature - a question for the group — Dave Thomas <Dave@...>
[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>
Hi,
[#4158] Getting Tk to work on Windows — "Michael Neumann" <neumann@...>
Hi....
[#4178] Partly converted English Ruby/Tk widget demo working. — Conrad Schneiker <schneik@...>
Hi,
[#4234] @ variables not updated within method? — Hugh Sasse Staff Elec Eng <hgs@...>
Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
On 27 Jul 2000, Dave Thomas wrote:
[#4267] Ruby.next, Perl6, Python 3000, Tcl++, etc. -- Any opportunities for common implementation code? — "Conrad Schneiker" <schneiker@...>
Hi,
"Conrad Schneiker" wrote:
[ruby-talk:04208] Gtk Wins and scrolls
Two questions about Gtk, both probably quite simple:
1)
How one can get Gtk work on Win? Could someone confirm it's working well and
briefly explain the setup?
I downloaded newest gimp (http://user.sgic.fi/~tml/gimp/win32/downloads.html
points to http://www.gimp.org/win32/gimp-setup-20000416.zip), and Ruby
extension Gtk-cygwin
(ftp://ftp.netlab.co.jp/pub/lang/ruby/pc/ruby-gtk-0.23-cygwin.zip).
I've tried every possible combination how files could arranged and the best
try, I guess, was when Ruby said:
ruby -v
ruby 1.4.5 (2000-06-26) [i386-cygwin]
ruby -Idlls -e'require "gtk"'
LoadLibraryExA: gtk.dll
C:\DOCUME~1\niemela\LOCALS~1\Temp/rb001000:1:in `require': 1114: A dynamic
link library (DLL) initialization routine failed. - ./gtk.dll (LoadError)
from C:\DOCUME~1\niemela\LOCALS~1\Temp/rb001000:1
This clearly indicates that at least the gtk.dll has been found, ruby is
just unable to initialize it properly for use.
I have the following dlls in the directory specified with -I:
2000-04-16 09:19 395 952 gdk-1.3.dll
2000-03-11 11:32 134 266 gdk_imlib.dll
2000-04-11 21:20 72 192 gimp-1.1.dll
2000-04-11 21:20 125 440 gimpui-1.1.dll
2000-03-26 21:54 208 017 glib-1.3.dll
2000-03-26 21:54 16 884 gmodule-1.3.dll
1999-11-14 02:48 28 405 gnu-intl.dll
2000-03-26 21:54 23 000 gthread-1.3.dll
2000-04-15 08:17 1 438 262 gtk-1.3.dll
2000-03-20 23:26 79 872 gtk.dll
2000-03-11 11:32 132 569 imlib-jpeg.dll
2000-03-11 11:32 145 041 imlib-png.dll
2000-03-11 11:32 413 808 imlib-tiff.dll
1999-06-21 00:10 36 924 pthread.dll
As you can see the gnu-intl.dll and pthread.dll are older than the others,
but it seems to be unimportant.
So I'm asking if you could kindly help me out here.
I suspect the problem is in rather old ruby-gtk-0.23-cygwin, because the
date on the list for it seems to be 2000-03-20 while the gtk-1.3 has been
compiled at 2000-04-15. Could that be the reason?
Actually I'm even more suspicious the problem is about version
incompatibility because http://www.ruby-lang.org/gtk/en/index.html says:
Ruby/GTK works with Ruby 1.4.x and GTK+ 1.2.x.
So perhaps the dll load should fail, as the GTK shipped with Windows
installation kit for GIMP seems to be the version 1.3 instead of 1.2.
If this is the case, when can we expect an update for Gtk-cygwin?
2)
I'm really newbie with gtk so enlight me. How should I scroll a window
containing text box to certain location?
Here's a setup:
w = Gtk::ScrolledWindow.new(nil, nil)
w.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_ALWAYS)
w.set_usize(400,600)
box.pack_start(w, true, true, 0)
w.show
text = Gtk::Text.new(nil, nil)
text.set_editable(false)
w.add(text)
text.show
And here's the reposition:
# 2DO: there has to be better way!!!
text.thaw # 1
text.set_point(start) # 2
text.insert(nil, nil, nil, "a") # 3
text.set_point(start) # 3
text.forward_delete(1) # 3
Some notes:
# 1 Wont reposition if the textbox is freezed
# 2 Does not do the trick alone, but requires # 3
# 3 Only really inserting something scrolls the window.
Even with this trick the scroll is extremely slow (I guess the window is
redrawed for each row scrolled).
I guessed vadjustment for scrollwindow might do the trick, but couldn't make
it happen.
- Aleksi