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

subclass: Hook up instance_init() #216

Merged
merged 1 commit into from
Dec 15, 2020
Merged

Conversation

YaLTeR
Copy link
Contributor

@YaLTeR YaLTeR commented Dec 14, 2020

Add a new wrapper type, InitializingObject, to store the object pointer during instance_init(). Binding crates are expected to define traits and implement them for InitializingObject to expose safe methods. Notably, this is required for gtk_widget_init_template().

glib/src/subclass/types.rs Outdated Show resolved Hide resolved
glib/src/subclass/types.rs Outdated Show resolved Hide resolved
Add a new wrapper type, InitializingObject, to store the object pointer
during instance_init(). Binding crates are expected to define traits and implement
them for InitializingObject to expose safe methods. Notably, this is required
for gtk_widget_init_template().
@YaLTeR
Copy link
Contributor Author

YaLTeR commented Dec 14, 2020

Updated.

@sdroege sdroege merged commit db69590 into gtk-rs:master Dec 15, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants