-
Notifications
You must be signed in to change notification settings - Fork 80
API Unification #274
Comments
so it looks like they are not exported? |
I wasn't involved until after that choice was made, but my impression was that it was to increase familiarity for people who come from a Gtk background. I agree with your general point, however, and I suspect scoping + short names is the way to go. @vtjnash may have a different perspective, however. |
@lobingera: It seems you are right. |
... i don't remember the reference (could be a github issue or a julia-users discussion): In any case it should be a notation which has a 1:1 mapping back to the Gtk c-API for easier lookup. And generally i'd like to see Gtk.jl to be split into smaller, independent parts, like a Glib and Gdk module/package, so the library dependencies can be followed easier (Glib is not only a dependency for Gtk, but also for Cairo and Pango and...). |
Splitting up the package might make sense although this would need to be done by someone understanding better the low level bits of Glib and Gobject wrapping (i.e. not me!). My current focus would more be on the user API. I agree that it should be mostly a 1:1 mapping, which it already is in most parts. |
My thinking is that the Python wrapping of Gtk is a pretty good API. We cannot do it 1:1 since in Julia some things are not possible but still one can make it similar. |
My suggestion would be to split this package into three concepts (packages):
|
Yes this sounds good. Though 2. and 3. could live in the same package, no? The question is if the user should actually use 2. directly or if 3. should somehow forward to the lower level methods. This would allow us to fix the 0-based indexing somehow. (minor thing: GI package not working #277 currently.) |
I think it is pretty complicated that Gtk.jl provides different APIs (regular and ShortNames). Have not seen this in any Julia package elsewhere.
Whats you opinion on that @timholy @vtjnash. Was there a specific motivation for this split in API.
I don't know what my actual proposal is, but to be consistent what other packages are doing probably the best would be making the ShortNames the default. One issue is that Julia base/core has a type
Box
that would conflict with the Gtk version of that.The text was updated successfully, but these errors were encountered: