Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove method on Image gives GTK error on STDOUT #51

Open
translunar opened this issue Sep 9, 2011 · 2 comments
Open

remove method on Image gives GTK error on STDOUT #51

translunar opened this issue Sep 9, 2011 · 2 comments

Comments

@translunar
Copy link
Contributor

I have a similar problem to the one described here:

http://librelist.com/browser//shoes/2011/3/3/green-shoes-error-on-stdout-when-trying-to-clear-a-flow/#7fe6a7ed1f69f7d0b9827ad90fb4808d

It happens when I attempt to remove an image:

Shoes.app :title => "Test" do
  update = File.mtime(file)
  img = image(file)

  # If image is updated, reload it.
  every(2) do
    new_time = File.mtime(file)
    unless new_time == update
      img.remove
      update  = new_time
      img     = image(file)
    end
  end
end

Still learning GTK -- tried to figure out the problem, but just don't know enough yet.

Cheers,
John

@translunar
Copy link
Contributor Author

Workaround is img.real.clear, but that may create a memory leak.

@ashbb
Copy link
Owner

ashbb commented Sep 10, 2011

Hi John,
Thank you for the information. Yeah, remove method is not so good. I need to study GTK more.
Try out to use img.clear instead of img.remove for now. ;-)
ashbb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants