-
Notifications
You must be signed in to change notification settings - Fork 80
major API changes #72
Comments
Thanks for the heads-up! Since the gtk branch of ImageView is not yet merged to master (I've been waiting for the "how do we handle the binary dependencies?" problem to be solved), people are kinda on their own anyway. |
Looks good, I also have thought the interface types to be the 'real' types. There is a question though, with multiple libraries implementing the concrete types: should client libraries still cooperate so that each GObject instance has mostly one juila wrapper, even when two libraries happen to define leaf types to the same GObject type? ( I guess with #47 we want this) |
Yes, the idea is to allow libraries to provide custom behavior for the leaf type, while maintaining a common trunk of abstract types. The primary reason I didn't initially introduce interface types as the 'real' type was the inability to add constructors to them. However, an appropriately named function |
Would be interesting to see an example of how the API will be used after this change. I am also for explicit |
I'll make a pull request in a few hours which implements most of this |
some of this happened, some did not, but various improvements were made |
@vtjnash So if I get this right we can now either use the macro syntax or the Leaf suffix, right? l ask because the examples still use the _new suffix. In README.md there is also still an example where _new is used. |
thanks, i fixed the documentation. let me know if i missed anywhere else |
yes, the tests still use _new. I said examples in my last message but actually meant tests. |
i'm not sure how i missed that...fixed now thanks again! |
I'm am planning MAJOR api breakage for the next release version. Please tag existing packages as Gtk 0.1 0.6- to avoid upgrade headaches (including Winston.jl, ImageView.jl, ???)
new
which can be more easily generalized to construct anything in an inheritence-friendly way...I
suffix will be removed from interface types...I
suffix will be renamed to...Leaf
and will NOT be exported@GType
will generate the correspondingimport GLib.newtype
)getindex!
alias togetproperty
will be removedG
fromusing Gtk
, likeWindow
andCanvas
)show
inpush!
(ref. layouts forget to call show #30). Alternatives including callingshowall
indisplay
, or just making the user aware of these functionsThe text was updated successfully, but these errors were encountered: