Forum: Ruby-Gnome 2 Re: Gtk-Demo - images.rb

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Masao M. (Guest)
on 2006-04-08 16:30
(Received via mailing list)

On Wed, 5 Apr 2006 19:11:57 -0500 (CDT)
removed_email_address@domain.invalid wrote:

> Hey All,
> I found the problem with the GTK-Demo program for
> the progressive image loading.=A0 It's really a simple fix:
> Line 157 Reads: @image_stream =3D,'r')
> Line 157
> Should Be: @image_stream =3D,'rb')

> This change
> allows the image to be opened in binary format.=A0 Should explictly
> state that, instead of relying on the 'r' mode, no matter the
> platform.=A0 Once you add the binary flag to the File#open, everything
> works as it should, and it runs just fine.

Thanks. Applied.

> Also,
> per=A0 S. Weinmann's suggestion, I'll be creating a couple of libraries
> to Package Glade files into a ZIP file, and allow Loading from it.=A0
> Also, in conjunction with it, I'll be creating a new GUI Wrapper around
> Glade files for Ruby Apps.=A0 Among them, will be the ability to
> package Image files into the ZIP File, and load them directly from the ZIP
> file, as well as a cleaner way to package the signal_connect's, by looking
> into the method_missing function as a way=A0to get signal_connect's
> done, without having to fully define it.

Cool ;).
This topic is locked and can not be replied to.