Commit 33d7196d authored by Matthias Clasen's avatar Matthias Clasen

Add a layout debug option

This will be used to show box model borders.
parent 04e59719
......@@ -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
......
......@@ -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
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment