We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently signals in ListModelIF are generated as virtual methods
connect:
GtkD/generated/gtkd/gio/ListModelIF.d
Line 203 in 81ddb59
Line 186 in 81ddb59
and implementation of signals defined in mixin template ListModelT. It is required to implement signal methods in the derived classes.
void itemsChanged(uint position, uint removed, uint added) { g_list_model_items_changed(getListModelStruct(), position, removed, added); } gulong addOnItemsChanged(void delegate(uint, uint, uint, ListModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) { return Signals.connect(this, "items-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); }
https://github.com/Rogni/ExampleContactsBook/blob/8ed1193ba5a5048b0a6a71cdef42ff10f7034aea/src/controllers/ContactListController.d#L84-L91
I suggest to move implementation of signal methods from mixin template to interface as final methods
The text was updated successfully, but these errors were encountered:
also maybe need generate
GListModel* getListModelStruct(bool transferOwnership = false) { return cast(GListModel*) getStruct; }
as final method
Sorry, something went wrong.
Probably all functions that are not part of the GTK interface should be final functions in the D interface.
No branches or pull requests
Currently signals in ListModelIF are generated as virtual methods
connect:
GtkD/generated/gtkd/gio/ListModelIF.d
Line 203 in 81ddb59
emit:
GtkD/generated/gtkd/gio/ListModelIF.d
Line 186 in 81ddb59
and implementation of signals defined in mixin template ListModelT. It is required to implement signal methods in the derived classes.
https://github.com/Rogni/ExampleContactsBook/blob/8ed1193ba5a5048b0a6a71cdef42ff10f7034aea/src/controllers/ContactListController.d#L84-L91
I suggest to move implementation of signal methods from mixin template to interface as final methods
The text was updated successfully, but these errors were encountered: