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; + }