summaryrefslogtreecommitdiff
path: root/gtk/inspector/misc-info.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-02 08:49:00 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-03-16 21:24:44 -0400
commit2bf1561b48ee02f340515e6a3e08bc08d89b5f18 (patch)
treeabf1a100d133a1e7077cc0898dbe778205f6e4f5 /gtk/inspector/misc-info.c
parentbd44831987381a6e790c6703ab68b443e89cb727 (diff)
downloadgtk+-2bf1561b48ee02f340515e6a3e08bc08d89b5f18.tar.gz
Port widgets to the root focus API
Diffstat (limited to 'gtk/inspector/misc-info.c')
-rw-r--r--gtk/inspector/misc-info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/inspector/misc-info.c b/gtk/inspector/misc-info.c
index 9c3b3ec05f..f352894daf 100644
--- a/gtk/inspector/misc-info.c
+++ b/gtk/inspector/misc-info.c
@@ -222,7 +222,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;
@@ -249,7 +249,7 @@ show_focus_widget (GtkWidget *button, 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)
show_object (sl, G_OBJECT (widget), "properties");
}