Commit f91e5e2a authored by Javier Jardón's avatar Javier Jardón

gtk/gtknotebook.c: Use accessor functions to access GtkWindow

parent 991eaa75
......@@ -4152,7 +4152,7 @@ gtk_notebook_set_focus_child (GtkContainer *container,
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (container));
if (toplevel && gtk_widget_is_toplevel (toplevel))
page_child = GTK_WINDOW (toplevel)->focus_widget;
page_child = gtk_window_get_focus (GTK_WINDOW (toplevel));
while (page_child)
if (page_child->parent == GTK_WIDGET (container))
......@@ -4164,8 +4164,8 @@ gtk_notebook_set_focus_child (GtkContainer *container,
if (page->last_focus_child)
g_object_remove_weak_pointer (G_OBJECT (page->last_focus_child), (gpointer *)&page->last_focus_child);
page->last_focus_child = GTK_WINDOW (toplevel)->focus_widget;
page->last_focus_child = gtk_window_get_focus (GTK_WINDOW (toplevel));
g_object_add_weak_pointer (G_OBJECT (page->last_focus_child), (gpointer *)&page->last_focus_child);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment