Commit 54b8b51f authored by Javier Jardón's avatar Javier Jardón

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

parent f91e5e2a
......@@ -1802,7 +1802,7 @@ paned_get_focus_widget (GtkPaned *paned)
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (paned));
if (gtk_widget_is_toplevel (toplevel))
return GTK_WINDOW (toplevel)->focus_widget;
return gtk_window_get_focus (GTK_WINDOW (toplevel));
return NULL;
}
......@@ -2320,7 +2320,7 @@ gtk_paned_cycle_handle_focus (GtkPaned *paned,
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (paned));
if (GTK_IS_WINDOW (toplevel))
gtk_paned_set_saved_focus (focus, GTK_WINDOW (toplevel)->focus_widget);
gtk_paned_set_saved_focus (focus, gtk_window_get_focus (GTK_WINDOW (toplevel)));
gtk_paned_set_first_paned (focus, first);
focus->priv->original_position = gtk_paned_get_position (focus);
......
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