[gtk/matthiasc/for-master: 13/19] inspector: Disable recursive inspection
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 13/19] inspector: Disable recursive inspection
- Date: Thu, 14 May 2020 00:36:42 +0000 (UTC)
commit 4c8688b8468201a3922384feb11eb1658410b997
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 13 18:56:25 2020 -0400
inspector: Disable recursive inspection
We can't inspect the inspector, it doesn't work.
Therefore, disable the keybindings in the
inspector window.
gtk/inspector/window.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index c588554a52..7742ecb8d9 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -383,18 +383,29 @@ gtk_inspector_window_get_property (GObject *object,
}
}
+static gboolean
+gtk_inspector_window_enable_debugging (GtkWindow *window,
+ gboolean toggle)
+{
+ return FALSE;
+}
+
static void
gtk_inspector_window_class_init (GtkInspectorWindowClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+ GtkWindowClass *window_class = GTK_WINDOW_CLASS (klass);
object_class->constructed = gtk_inspector_window_constructed;
object_class->dispose = gtk_inspector_window_dispose;
object_class->set_property = gtk_inspector_window_set_property;
object_class->get_property = gtk_inspector_window_get_property;
+
widget_class->realize = gtk_inspector_window_realize;
+ window_class->enable_debugging = gtk_inspector_window_enable_debugging;
+
properties[PROP_INSPECTED_DISPLAY] =
g_param_spec_object ("inspected-display", "Inspected display", "Inspected display",
GDK_TYPE_DISPLAY,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]