forked from AuroraMiddleware/gtk
gtk/gtkcontainer.c: Use accessor functions to access GtkWindow
This commit is contained in:
parent
1fe89643a5
commit
595b27e22d
@ -1956,15 +1956,16 @@ old_focus_coords (GtkContainer *container,
|
|||||||
{
|
{
|
||||||
GtkWidget *widget = GTK_WIDGET (container);
|
GtkWidget *widget = GTK_WIDGET (container);
|
||||||
GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
|
GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
|
||||||
|
GtkWidget *old_focus;
|
||||||
|
|
||||||
if (GTK_IS_WINDOW (toplevel) && GTK_WINDOW (toplevel)->focus_widget)
|
if (GTK_IS_WINDOW (toplevel))
|
||||||
{
|
{
|
||||||
GtkWidget *old_focus = GTK_WINDOW (toplevel)->focus_widget;
|
old_focus = gtk_window_get_focus (GTK_WINDOW (toplevel));
|
||||||
|
if (old_focus)
|
||||||
return get_allocation_coords (container, old_focus, old_focus_rect);
|
return get_allocation_coords (container, old_focus, old_focus_rect);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct _CompareInfo CompareInfo;
|
typedef struct _CompareInfo CompareInfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user