diff --git a/docs/vala.xml b/docs/vala.xml index 28bea900fb6c13539136f3c41477f3adee0b4f03..86f4a661907548644586965e6cccdb1df6374850 100644 --- a/docs/vala.xml +++ b/docs/vala.xml @@ -106,7 +106,7 @@ namespace Example { <file>application.vala</file> <file>application-window.vala</file> <file>window.ui</file> @@ -265,7 +265,7 @@ Exec=@bindir@/exampleapp <file>application-window.vala</file> <file>exampleapp.gresource.xml</file> @@ -381,7 +381,7 @@ namespace Example { ...]]> -

(full source)

+

(full source)

Note that we did not have to touch the stack switcher at all. It gets all its information from the stack that it belongs @@ -409,7 +409,7 @@ namespace Example {

<file>app-menu.ui</file> @@ -466,7 +466,7 @@ namespace Example { } ...]]> -

(full source)

+

(full source)

Our preferences menu item does not do anything yet, but the Quit menu item is fully functional (the quit() @@ -496,7 +496,7 @@ namespace Example {

<file>org.gtk.exampleapp.gschema.xml</file> @@ -549,7 +549,7 @@ namespace Example { } ...]]> -

(full source)

+

(full source)

The code to connect the font setting is a little more involved, since there is no simple object property that it @@ -647,7 +647,7 @@ namespace Example {

<file>application-preferences.vala</file> -

(full source)

+

(full source)

After all this work, our application can now show a preference dialog like this:

@@ -715,7 +715,7 @@ namespace Example { <file>window.ui</file> @@ -813,7 +813,7 @@ namespace Example { } ...]]> -

(full source)

+

(full source)

With the search bar, our application now looks like this:

@@ -833,7 +833,7 @@ namespace Example { <file>window.ui</file> @@ -953,7 +953,7 @@ namespace Example { <file>gears-menu.ui</file> @@ -989,7 +989,7 @@ namespace Example { } ...]]> -

(full source)

+

(full source)

What our application looks like now:

@@ -1069,13 +1069,13 @@ namespace Example { ...]]>
-

(full source)

+

(full source)

We also need a function that counts the lines of the currently active tab, and updates the lines label. See the full + href="https://raw.githubusercontent.com/canek-pelaez/vala-example/stage8/src/application-window.vala">full source if you are interested in the details.

This brings our example application to this appearance: