[TRY4] printer dialog fixes part1 + french

Vijay Kiran Kamuju infyquest at gmail.com
Thu Oct 27 06:47:31 CDT 2005


Try4 of printer dialog patch, with changes suggested by detlef
ChangeLog:
------------------
Vijay Kiran Kamuju <infyquest at gmail.com> Add the messages in rc file and
 h file, finish the implementation of internal functions
Jonathan Ernst <Jonathan at ErnstFamily.ch> Add french message, partial
implementation of internal functions

On 10/27/05, Jonathan Ernst <Jonathan at ernstfamily.ch> wrote:
> Try2:This time, we just tell the user he needs to install a printer (we don't let him install one from Wine as it is not (won't ever?) be implemented).
> Try3:Replace -1 with FALSE, 1 with TRUE.
>
>
>
>
> Changelog
> ---------------
> Vijay Kiran Kamuju <infyquest at gmail.com> Add the messages in rc file and
> h file
> Jonathan Ernst <Jonathan at ErnstFamily.ch> Add french message
>
> --
> Jonathan Ernst <Jonathan at ErnstFamily.ch>
>
>
>
> Can you fix it and resend a patch based on my latest version ? I have a
> feeling that it might get finally accepted then...
>
> Thanks.
>
>
> -------- Message transféré --------
> De: Detlef Riekenberg <wine.dev at web.de>
> À: wine-devel at winehq.org
> Cc: Vijay Kiran Kamuju <infyquest at gmail.com>, Jonathan Ernst
> <Jonathan at ErnstFamily.ch>
> Sujet: Re: [TRY3] printer dialog fixes part1 + french
> Date: Tue, 11 Oct 2005 15:42:51 +0200
>
> Am Dienstag, den 11.10.2005, 10:36 +0200 schrieb Jonathan Ernst:
>
> -- cut --
> +
> +    EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &needed, &num);
> +    if(num == 0)
> +    {
> +
> -- cut --
>
> Sorry that didn't work.
> You receive in "num" the Number of returned PRINTER_INFO_2 Entries in
> "buffer"
> Since "buffer" is NULL, "num" is always 0.
>
> Working Example from my Patch:
> ( http://www.winehq.org/pipermail/wine-patches/2005-October/021268.html )
>
> +    /* Verify, that we have a Printer installed */
> +    /* this will fail in wine, when you deleted your printer */
> +
> +    numentries = 0;
> +    size = 0;
> +    result = pEnumPrintersA(PRINTER_ENUM_LOCAL,
> +                            NULL, 2, NULL, 0, &size, &numentries);
> +
> +    if (size == 0)
> +    {
> +        result = pEnumPrintersA(PRINTER_ENUM_CONNECTIONS,
> +                                NULL, 2, NULL, 0, &size, &numentries);
> +    }
> +
> -- cut --
> size == 0: no Printer installed
> size  > 0: one or more Printers installed
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: printdlg-4.diff
Type: text/x-patch
Size: 4576 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051027/ec8c1d09/printdlg-4.diff


More information about the wine-patches mailing list