Merge branch 'fix-win32-build-gcc14' into 'gtk-3-24'
gtkprintoperation-win32: fix the build on Windows with GCC 14.1.0 See merge request GNOME/gtk!7259
This commit is contained in:
@ -1550,7 +1550,7 @@ create_application_page (GtkPrintOperation *op,
|
|||||||
wcscpy_s (template->typeface, LF_FACESIZE, L"MS Shell Dlg");
|
wcscpy_s (template->typeface, LF_FACESIZE, L"MS Shell Dlg");
|
||||||
|
|
||||||
/* Create an invisible dialog to measure dialog base units */
|
/* Create an invisible dialog to measure dialog base units */
|
||||||
measure_dialog = CreateDialogIndirectW (NULL, template, hwndOwner, measure_dialog_procedure);
|
measure_dialog = CreateDialogIndirectW (NULL, (LPCDLGTEMPLATE) template, hwndOwner, measure_dialog_procedure);
|
||||||
if (!measure_dialog)
|
if (!measure_dialog)
|
||||||
g_warning ("CreateDialogIndirectW failed");
|
g_warning ("CreateDialogIndirectW failed");
|
||||||
else
|
else
|
||||||
@ -1580,7 +1580,7 @@ create_application_page (GtkPrintOperation *op,
|
|||||||
page.dwSize = sizeof (page);
|
page.dwSize = sizeof (page);
|
||||||
page.dwFlags = PSP_DLGINDIRECT | PSP_USETITLE | PSP_PREMATURE;
|
page.dwFlags = PSP_DLGINDIRECT | PSP_USETITLE | PSP_PREMATURE;
|
||||||
page.hInstance = GetModuleHandle (NULL);
|
page.hInstance = GetModuleHandle (NULL);
|
||||||
page.pResource = template;
|
page.pResource = (LPCDLGTEMPLATE) template;
|
||||||
|
|
||||||
tab_label = op->priv->custom_tab_label;
|
tab_label = op->priv->custom_tab_label;
|
||||||
if (tab_label == NULL)
|
if (tab_label == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user