From 82980a466b1c4d6e66199e9ec6c0f34aa759927e Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Sat, 17 Sep 2022 22:36:24 +0200 Subject: [PATCH] doc: Add documentation for Gtk.Label attributes --- docs/examples.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/examples.rst b/docs/examples.rst index 4d9c1cd..9b123d2 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -418,3 +418,26 @@ Gtk.Dialog and Gtk.InfoBar [action response=9] Gtk.Button app_defined_response {} } + +Gtk.Label +~~~~~~~~~ + +Blueprint does not have syntax for `attributes` on `Gtk.Label`. + +Instead, you should use `platform classes `_, `CSS `_, `Pango Markup `_ or `Gtk.Label.set_attributes `_. + +Examples + +.. code-block:: + + Gtk.Label { + label: "Hello, World!"; + styles ["title-1"] + } + +.. code-block:: + + Gtk.Label { + label: "Hello, World!"; + use-markup: true; + }