[gtk/inspector-fixes: 1/4] inspector: Fix a copy-paste error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/inspector-fixes: 1/4] inspector: Fix a copy-paste error
- Date: Sat, 6 Apr 2019 18:01:23 +0000 (UTC)
commit 5ff59c12b0593d8a5c821eaffa82a01e00a84e12
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 6 15:36:10 2019 +0000
inspector: Fix a copy-paste error
We were stuffing the layout overlay into the updates_overlay
field, leaving the layout_overlay field unused.
gtk/inspector/visual.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/inspector/visual.c b/gtk/inspector/visual.c
index 5a21d1d316..dcdec7d42f 100644
--- a/gtk/inspector/visual.c
+++ b/gtk/inspector/visual.c
@@ -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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]