-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop usage of deprecated gtk.types.Types class
- Loading branch information
Showing
6 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ Our simple ui file gives the window a title, and puts a `GtkStack` widget as the | |
</interface> | ||
``` | ||
|
||
To make use of this file in our application, we revisit our `GtkApplicationWindow` subclass, and add a `GtkTemplate` annotation. The annotation is processed by the `io.github.jwharm.javagi.gtk.types.Types.register()` method. It will call {{ doc('[email protected]_template_from_resource') }} from the class init function to set the ui file as template for this class, and call {{ doc('[email protected]_template') }} in the instance init function to instantiate the template for each instance of our class. | ||
To make use of this file in our application, we revisit our `GtkApplicationWindow` subclass, and add a `GtkTemplate` annotation. The annotation is processed by the `TemplateTypes.register()` method. It will call {{ doc('[email protected]_template_from_resource') }} from the class init function to set the ui file as template for this class, and call {{ doc('[email protected]_template') }} in the instance init function to instantiate the template for each instance of our class. | ||
|
||
```java | ||
... | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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