Add a layout debug option

This will be used to show box model borders.
This commit is contained in:
Matthias Clasen 2016-03-10 23:14:57 -05:00
parent 04e59719b5
commit 33d7196dc8
3 changed files with 8 additions and 3 deletions

View File

@ -218,7 +218,10 @@ additional environment variables.
<term>resize</term>
<listitem><para>Highlight resizing widgets</para></listitem>
</varlistentry>
<varlistentry>
<term>layout</term>
<listitem><para>Show layout borders</para></listitem>
</varlistentry>
</variablelist>
The special value <literal>all</literal> can be used to turn on all
debug options. The special value <literal>help</literal> can be used

View File

@ -55,7 +55,8 @@ typedef enum {
GTK_DEBUG_INTERACTIVE = 1 << 17,
GTK_DEBUG_TOUCHSCREEN = 1 << 18,
GTK_DEBUG_ACTIONS = 1 << 19,
GTK_DEBUG_RESIZE = 1 << 20
GTK_DEBUG_RESIZE = 1 << 20,
GTK_DEBUG_LAYOUT = 1 << 21
} GtkDebugFlag;
#ifdef G_ENABLE_DEBUG

View File

@ -181,7 +181,8 @@ static const GDebugKey gtk_debug_keys[] = {
{"interactive", GTK_DEBUG_INTERACTIVE},
{"touchscreen", GTK_DEBUG_TOUCHSCREEN},
{"actions", GTK_DEBUG_ACTIONS},
{"resize", GTK_DEBUG_RESIZE}
{"resize", GTK_DEBUG_RESIZE},
{"layout", GTK_DEBUG_LAYOUT}
};
#endif /* G_ENABLE_DEBUG */