mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
extract-strings: Support more GtkBuilder markup
The inspector templates are using the <item> tag with an id attribute, which was causing extract-strings to fail. Fix this.
This commit is contained in:
parent
f3227688b4
commit
53a67d20a2
@ -424,7 +424,8 @@ HTML_IMAGES = \
|
||||
$(srcdir)/images/getting-started-app9.png \
|
||||
$(srcdir)/images/getting-started-app10.png \
|
||||
$(srcdir)/images/exampleapp.png \
|
||||
$(srcdir)/images/flow-box.png
|
||||
$(srcdir)/images/flow-box.png \
|
||||
$(srcdir)/images/inspector.png
|
||||
|
||||
# Extra options to supply to gtkdoc-fixref
|
||||
FIXXREF_OPTIONS=--extra-dir=../gdk/html \
|
||||
|
BIN
docs/reference/gtk/images/inspector.png
Normal file
BIN
docs/reference/gtk/images/inspector.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 85 KiB |
@ -194,10 +194,27 @@ additional environment variables.
|
||||
<term>no-css-cache</term>
|
||||
<listitem><para>Bypass caching for CSS style properties.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>baselines</term>
|
||||
<listitem><para>Baselines.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>pixel-cache</term>
|
||||
<listitem><para>Pixel cache.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>no-pixel-cache</term>
|
||||
<listitem><para>Disable the pixel cache.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>interactive</term>
|
||||
<listitem><para>Open the <link linkend="interactive-debugging">interactive debugger</link>.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
The special value <literal>all</literal> can be used to turn on all
|
||||
debug options.
|
||||
debug options. The special value <literal>help</literal> can be used
|
||||
to obtain a list of all supported debug options.
|
||||
</para>
|
||||
</formalpara>
|
||||
|
||||
@ -509,6 +526,24 @@ nevertheless.
|
||||
|
||||
</refsect2>
|
||||
|
||||
<refsect2 id="interactive-debugging">
|
||||
<title>Interactive debugging</title>
|
||||
|
||||
<para>
|
||||
GTK+ includes an interactive debugger which lets you explore the
|
||||
widget tree of any GTK+ application at runtime, as well as tweak
|
||||
the theme and trigger visual debugging aids.
|
||||
</para>
|
||||
<para>
|
||||
To enable the debugger, you can use the Control-Shift-S keybinding
|
||||
or pass set the <envar>GTK_DEBUG=interactive</envar> environment
|
||||
variable.
|
||||
</para>
|
||||
|
||||
<inlinegraphic fileref="inspector.png" format="PNG"></inlinegraphic>
|
||||
|
||||
</refsect2>
|
||||
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
@ -52,6 +52,7 @@ start_element_handler (GMarkupParseContext *contexts,
|
||||
G_MARKUP_COLLECT_TRISTATE, "translatable", &translatable,
|
||||
G_MARKUP_COLLECT_STRDUP|G_MARKUP_COLLECT_OPTIONAL, "context", &context,
|
||||
G_MARKUP_COLLECT_STRDUP|G_MARKUP_COLLECT_OPTIONAL, "comments", &comments,
|
||||
G_MARKUP_COLLECT_STRING|G_MARKUP_COLLECT_OPTIONAL, "id", NULL,
|
||||
G_MARKUP_COLLECT_INVALID);
|
||||
|
||||
if (translatable == TRUE)
|
||||
|
Loading…
Reference in New Issue
Block a user