]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkprintoperation-win32.c
gdk: Allow display subclasses to override the type used for windows
[~andy/gtk] / gtk / gtkprintoperation-win32.c
index 6630019141c69ae67ee217bb1de00dcdbd5bc23b..aee3b500eebd83639bb6a46885acfacc10c51f6d 100644 (file)
@@ -1411,8 +1411,8 @@ create_application_page (GtkPrintOperation *op)
   const char *tab_label;
 
   /* Make the template the size of the custom widget size request */
-  gtk_size_request_get_size (GTK_SIZE_REQUEST (op->priv->custom_widget),
-                             &requisition, NULL);
+  gtk_widget_get_preferred_size (op->priv->custom_widget,
+                                 &requisition, NULL);
 
   base_units = GetDialogBaseUnits ();
   baseunitX = LOWORD (base_units);