[gtk/inspector-display: 2/14] inspector: Init yourself
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/inspector-display: 2/14] inspector: Init yourself
- Date: Sat, 7 Dec 2019 17:44:35 +0000 (UTC)
commit ef03a8bf70ed283f68e253c60c89d6cfb7135ddf
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 7 10:00:41 2019 -0500
inspector: Init yourself
No need to have GTK call this from the outside.
gtk/gtkwindow.c | 2 --
gtk/inspector/window.c | 3 +++
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 6a58f55a02..6a0771dcd6 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -75,7 +75,6 @@
#include "a11y/gtkwindowaccessibleprivate.h"
#include "a11y/gtkcontaineraccessibleprivate.h"
-#include "inspector/init.h"
#include "inspector/window.h"
#include "gdk/gdktextureprivate.h"
@@ -9039,7 +9038,6 @@ gtk_window_set_debugging (gboolean enable,
if (inspector_window == NULL)
{
- gtk_inspector_init ();
inspector_window = gtk_inspector_window_new ();
gtk_window_set_hide_on_close (GTK_WINDOW (inspector_window), TRUE);
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index 71aeec9f69..3b6afee60f 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
+#include "init.h"
#include "window.h"
#include "prop-list.h"
#include "controllers.h"
@@ -418,6 +419,8 @@ get_inspector_display (void)
GtkWidget *
gtk_inspector_window_new (void)
{
+ gtk_inspector_init ();
+
return GTK_WIDGET (g_object_new (GTK_TYPE_INSPECTOR_WINDOW,
"display", get_inspector_display (),
NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]