inspector: Fix a copy-paste error

We were stuffing the layout overlay into the updates_overlay
field, leaving the layout_overlay field unused.
This commit is contained in:
Matthias Clasen
2019-04-06 15:36:10 +00:00
parent d3c0899000
commit 5ff59c12b0

View File

@@ -330,19 +330,19 @@ layout_activate (GtkSwitch *sw,
if (draw_layout)
{
if (priv->updates_overlay == NULL)
if (priv->layout_overlay == NULL)
{
priv->updates_overlay = gtk_layout_overlay_new ();
gtk_inspector_window_add_overlay (iw, priv->updates_overlay);
g_object_unref (priv->updates_overlay);
priv->layout_overlay = gtk_layout_overlay_new ();
gtk_inspector_window_add_overlay (iw, priv->layout_overlay);
g_object_unref (priv->layout_overlay);
}
}
else
{
if (priv->updates_overlay != NULL)
if (priv->layout_overlay != NULL)
{
gtk_inspector_window_remove_overlay (iw, priv->updates_overlay);
priv->updates_overlay = NULL;
gtk_inspector_window_remove_overlay (iw, priv->layout_overlay);
priv->layout_overlay = NULL;
}
}