[gtk+] inspector: All to turn it on programmatically
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: All to turn it on programmatically
- Date: Tue, 13 May 2014 19:21:04 +0000 (UTC)
commit b8531087bd08fb80df34178177f39b5a9c1a2334
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 13 14:08:15 2014 -0400
inspector: All to turn it on programmatically
Export gtk_window_set_interactive_debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=730008
docs/reference/gtk/gtk3-sections.txt | 1 +
gtk/gtkwindow.c | 10 ++++++++++
gtk/gtkwindow.h | 3 +++
gtk/gtkwindowprivate.h | 2 --
4 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index 88d6fee..563b077 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -5710,6 +5710,7 @@ gtk_window_get_application
gtk_window_set_application
gtk_window_set_has_user_ref_count
gtk_window_set_titlebar
+gtk_window_set_interactive_debugging
<SUBSECTION Standard>
GTK_WINDOW
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 88bee58..105e0e0 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -12432,6 +12432,16 @@ _gtk_window_get_popover_position (GtkWindow *window,
static GtkWidget *inspector_window = NULL;
+/**
+ * gtk_window_set_interactive_debugging:
+ * @enable: %TRUE to enable interactive debugging
+ *
+ * Opens or closes the [interactive debugger][interactive-debugging],
+ * which offers access to the widget hierarchy of the application
+ * and to useful debugging tools.
+ *
+ * Since: 3.14
+ */
void
gtk_window_set_interactive_debugging (gboolean enable)
{
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 6c7a583..440b3d4 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -483,6 +483,9 @@ void gtk_window_set_titlebar (GtkWindow *window,
GDK_AVAILABLE_IN_3_12
gboolean gtk_window_is_maximized (GtkWindow *window);
+GDK_AVAILABLE_IN_3_14
+void gtk_window_set_interactive_debugging (gboolean enable);
+
G_END_DECLS
#endif /* __GTK_WINDOW_H__ */
diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h
index c4f191c..704026d 100644
--- a/gtk/gtkwindowprivate.h
+++ b/gtk/gtkwindowprivate.h
@@ -110,8 +110,6 @@ void _gtk_window_get_popover_position (GtkWindow *window,
GdkPixbuf *gtk_window_get_icon_for_size (GtkWindow *window,
gint size);
-void gtk_window_set_interactive_debugging (gboolean enable);
-
G_END_DECLS
#endif /* __GTK_WINDOW_PRIVATE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]