diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-21 23:51:05 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-21 23:53:07 -0500 |
commit | 6e735f709bd8a4df52b3430fbf6e3ae10eebb9bd (patch) | |
tree | b608c624edc57f936850511f8efd3fd9f8f7bdba /gtk/inspector/misc-info.c | |
parent | 41c0ac1a68a7203df45f49ee5feca41eb05fcf39 (diff) | |
download | gtk+-more-root.tar.gz |
root: Add focus and default widgetsmore-root
These are part of what GtkRoot will manage.
Use the GtkRoot api for them in the inspector.
Diffstat (limited to 'gtk/inspector/misc-info.c')
-rw-r--r-- | gtk/inspector/misc-info.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/inspector/misc-info.c b/gtk/inspector/misc-info.c index 9c3b3ec05f..d0687222b8 100644 --- a/gtk/inspector/misc-info.c +++ b/gtk/inspector/misc-info.c @@ -29,6 +29,7 @@ #include "gtkframe.h" #include "gtkbutton.h" #include "gtkwidgetprivate.h" +#include "gtkrootprivate.h" struct _GtkInspectorMiscInfoPrivate { @@ -190,7 +191,7 @@ update_default_widget (GtkInspectorMiscInfo *sl) { GtkWidget *widget; - widget = gtk_window_get_default_widget (GTK_WINDOW (sl->priv->object)); + widget = gtk_root_get_default (GTK_ROOT (sl->priv->object)); if (widget) { gchar *tmp; @@ -222,7 +223,7 @@ update_focus_widget (GtkInspectorMiscInfo *sl) { GtkWidget *widget; - widget = gtk_window_get_focus (GTK_WINDOW (sl->priv->object)); + widget = gtk_root_get_focus (GTK_ROOT (sl->priv->object)); if (widget) { gchar *tmp; @@ -355,7 +356,7 @@ update_info (gpointer data) gtk_buildable_get_name (GTK_BUILDABLE (sl->priv->object))); } - if (GTK_IS_WINDOW (sl->priv->object)) + if (GTK_IS_ROOT (sl->priv->object)) { update_default_widget (sl); update_focus_widget (sl); |