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/gtkprintoperation-win32.c | |
parent | dd36afc2078dc0072b3dd4d17841b271b4ed770c (diff) | |
download | gtk+-f76fddb8a7d260dff2ce8b87965ab4f41006a592.tar.gz |
Use accessor functions in Win32-only code
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r-- | gtk/gtkprintoperation-win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index 3b04ca49b8..4281f17ff8 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -655,7 +655,7 @@ static HWND get_parent_hwnd (GtkWidget *widget) { gtk_widget_realize (widget); - return gdk_win32_drawable_get_handle (widget->window); + return gdk_win32_drawable_get_handle (gtk_widget_get_window (widget)); } static void @@ -1339,7 +1339,7 @@ plug_grab_notify (GtkWidget *widget, gboolean was_grabbed, GtkPrintOperation *op) { - EnableWindow (GetAncestor (GDK_WINDOW_HWND (widget->window), GA_ROOT), + EnableWindow (GetAncestor (GDK_WINDOW_HWND (gtk_widget_get_window (widget)), GA_ROOT), was_grabbed); } @@ -1366,7 +1366,7 @@ pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam) gtk_container_add (GTK_CONTAINER (plug), op->priv->custom_widget); gtk_widget_show (op->priv->custom_widget); gtk_widget_show (plug); - gdk_window_focus (plug->window, GDK_CURRENT_TIME); + gdk_window_focus (gtk_widget_get_window (plug), GDK_CURRENT_TIME); /* This dialog is modal, so we grab the embed widget */ gtk_grab_add (plug); |