Skip to content

cpdb: Update gtk_print_backend_cpdb_init for latest CPDB version

The latest upstream cpdb-libs (pre-)release 2.0b7 includes commit [1]

commit fb2686ba8f2fc60dc95ae0e2421e386922bf232e
Author: Biswadeep Purkayastha <98874428+metabiswadeep@users.noreply.github.com>
Date:   Mon Jul 8 21:21:01 2024 +0530

    Removed unused parameter instance_name (#41)

    From API functions cpdbGetNewFrontendObj() and cpdbStartListingPrinters().

    Parameter got unused since commit 8f9e054.

that dropped the instance_name parameter from cpdbGetNewFrontendObj.

Update gtk_print_backend_cpdb_init to no longer pass the param, which fixes the build with that cpdb release when building with (the off-by-default) -Dprint-cpdb=enabled, see also Ubuntu Launchpad issue [2].

At the moment, there are no stable CPDB releases or simple ways to check the version at build time (similar to GTK_CHECK_VERSION) and upstream's goal is to get all print dialog implementations to the current pre-release version, so don't bother about compatibility with older development versions.

[1] https://github.com/OpenPrinting/cpdb-libs/commit/fb2686ba8f2fc60dc95ae0e2421e386922bf232e [2] https://bugs.launchpad.net/ubuntu/+source/gtk4/+bug/2100307

Merge request reports

Loading