Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

SegFault when using setproperty! after getproperty #206

Closed
rodrigolece opened this issue Dec 1, 2015 · 1 comment
Closed

SegFault when using setproperty! after getproperty #206

rodrigolece opened this issue Dec 1, 2015 · 1 comment

Comments

@rodrigolece
Copy link

I want to change the label of a button after I press it. I also need the label it had before, in order to know how to change it. I can pefectly use setproperty! and getproperty separately, but not one after the other:

using Gtk.ShortNames

b = @Button("B")
win = @Window(b, "SegFault")
showall(win

function button_clicked_callback(widget)
    println(getproperty(widget, :label, AbstractString))
    setproperty!(widget, :label, "ON")
end

signal_connect(button_clicked_callback, b, :clicked)

I get a SegFault both in the REPL and running the above code as script (modified accordingly). I am running Mac OS 10.9.5, Julia 0.4.2 and Gtk 0.9.2.

@vtjnash
Copy link
Contributor

vtjnash commented Dec 1, 2015

duplicate of #161

@vtjnash vtjnash closed this as completed Dec 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants