diff options
author | Tor Lillqvist <tml@iki.fi> | 2010-09-09 11:09:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2010-09-09 11:09:55 +0300 |
commit | f76fddb8a7d260dff2ce8b87965ab4f41006a592 (patch) | |
tree | a28063ec7b2b8d28c5ce1c5da1d3c0726b6f0af9 /gtk/gtkwin32embedwidget.c | |
parent | dd36afc2078dc0072b3dd4d17841b271b4ed770c (diff) | |
download | gtk+-f76fddb8a7d260dff2ce8b87965ab4f41006a592.tar.gz |
Use accessor functions in Win32-only code
Diffstat (limited to 'gtk/gtkwin32embedwidget.c')
-rw-r--r-- | gtk/gtkwin32embedwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c index 2efb763760..a3061c8bd0 100644 --- a/gtk/gtkwin32embedwidget.c +++ b/gtk/gtkwin32embedwidget.c @@ -349,11 +349,11 @@ gtk_win32_embed_widget_focus (GtkWidget *widget, if (window->focus_widget) { /* Wrapped off the end, clear the focus setting for the toplevel */ - parent = window->focus_widget->parent; + parent = gtk_widget_get_parent (window->focus_widget); while (parent) { gtk_container_set_focus_child (GTK_CONTAINER (parent), NULL); - parent = GTK_WIDGET (parent)->parent; + parent = gtk_widget_get_parent (GTK_WIDGET (parent)); } gtk_window_set_focus (GTK_WINDOW (container), NULL); |