This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Making custom widgets work in Gtk.Builder#134
Open
martinKupec wants to merge 3 commits into
Open
Conversation
This is a proper fix of old FIXME. It defers setting of managed properties during GLib.Object construction until we have paired Managed and Unmanaged objects.
This patch adds TypeName attribute which can be used on custom class derived from GLib.Object in order to set GLib type name of the class.
This is needed for Gtk.Builder to properly parse signal registration. The registred signals are not actually used but Gtk.Builder check for their presence and fails if not present.
Collaborator
|
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message. |
|
may this help, without patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This series of commits is supposed to fix and enchant the use of Gtk.Builder with custom widgets.
It enables to pick GLib type name of custom class.
It also fixes old problem with pairing native and managed objects during class creation.
There is problem with Gtk.Builder with gtk+ > 3.12 as it newly check for existence of signals during parsing phase. This is fixed by properly creating native signals for custom widgets.