...
 
Commits (1)
......@@ -56,8 +56,7 @@ module.exports = {
'14-templates',
'15-saving-data',
'16-settings',
'17-dialogs',
'18-localization'
'17-dialogs'
],
'/': false
}
......
......@@ -42,7 +42,7 @@ Now let's actually implement `/* file close code */`. We will essentially be rev
```js
this._fileNotesTextView.set_sensitive(false);
this._fileNotesTextView.set_buffer(null); // TODO
this._fileNotesTextView.set_buffer(null);
this._headerBar.setTitle('Tags');
```
......@@ -52,7 +52,7 @@ Now we should have:
this._backButton.connect('clicked', () => {
log('addFileButton has been clicked.');
this._fileNotesTextView.set_sensitive(false);
this._fileNotesTextView.set_buffer(null); // TODO
this._fileNotesTextView.set_buffer(null);
this._headerBar.setTitle('Tags');
});
```
......
......@@ -40,9 +40,9 @@ let [success, contents] = file.load_contents(null);
log(contents);
```
### Load Part of a File
<!--### Load Part of a File
*TODO*
*TODO*-->
......@@ -113,7 +113,7 @@ application.connect('activate', app => {
...
```
This code creates the window when the application is "activated". An application is "activated" when it is ready to display the user interface. Activation can happen multiple times (what if the application is hidden and then shown, for example -- TODO correct example?) so we first check if there is already an active window. If there is not an active window we create our own. Finally, we "present" the window with `Gtk.Window.prototype.present()` which will show the window and then bring it to focus.
This code creates the window when the application is "activated". An application is "activated" when it is ready to display the user interface. Activation can happen multiple times (what if the application is hidden and then shown, for example) so we first check if there is already an active window. If there is not an active window we create our own. Finally, we "present" the window with `Gtk.Window.prototype.present()` which will show the window and then bring it to focus.
```js
...
......
......@@ -51,11 +51,11 @@ Verify your system has a recent version of GJS. Type...
...into a terminal. You can see the features your version of GTK+ supports [here](../../gjs/features-across-versions.html). If your version is below 1.50.x it is recommended you use [GNOME Builder](https://flathub.org/apps/details/org.gnome.Builder) or build GJS from source.
### Building GJS From Source
<!--### Building GJS From Source
Use BuildStream of JHBuild
Use BuildStream or JHBuild
<!--TODO: Finish this documentation-->
TODO: Finish this documentation-->
### Building Your Project
......
......@@ -4,8 +4,6 @@ title: Dialogs
# Dialogs
WIP
### Creating a dialog
To create the dialog we'll use `GtkMessageDialog`. GtkMessageDialog
......
......@@ -21,4 +21,4 @@ Welcome to GTK+ in GJS. This guide will introduce you to both GTK+ and using it
- [Saving Application Data](15-saving-data.html)
- [Application Settings](16-settings.html)
- [Dialogs](17-dialogs.html)
- [Localization](18-localization.html)
\ No newline at end of file
<!--- [Localization](18-localization.html)-->
\ No newline at end of file