[gtk+] inspector: Turn off gsk debugging
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Turn off gsk debugging
- Date: Sun, 14 Jan 2018 22:06:52 +0000 (UTC)
commit f9100719bde0a5044849e464ba22b3828565a0c2
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 14 16:07:12 2018 -0500
inspector: Turn off gsk debugging
We don't want debug spew from the renderer that
is used for the inspector window, so turn it off.
gtk/inspector/window.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index 7c887bf..15b38e9 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -49,10 +49,11 @@
#include "gtkstack.h"
#include "gtktreeviewcolumn.h"
#include "gtkmodulesprivate.h"
-#include "gtkwindow.h"
+#include "gtkwindowprivate.h"
#include "gtkwindowgroup.h"
#include "gtkprivate.h"
#include "gdk-private.h"
+#include "gskrendererprivate.h"
G_DEFINE_TYPE (GtkInspectorWindow, gtk_inspector_window, GTK_TYPE_WINDOW)
@@ -244,12 +245,24 @@ object_details_changed (GtkWidget *combo,
}
static void
+gtk_inspector_window_realize (GtkWidget *widget)
+{
+ GskRenderer *renderer;
+
+ GTK_WIDGET_CLASS (gtk_inspector_window_parent_class)->realize (widget);
+
+ renderer = gtk_window_get_renderer (GTK_WINDOW (widget));
+ gsk_renderer_set_debug_flags (renderer, 0);
+}
+
+static void
gtk_inspector_window_class_init (GtkInspectorWindowClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->constructed = gtk_inspector_window_constructed;
+ widget_class->realize = gtk_inspector_window_realize;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/window.ui");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]