pidgin/pidgin

Update Meson to newer standards

2021-10-18, Elliott Sales de Andrade
1653402dd94e
Update Meson to newer standards

* Remove checks for old Meson
We require 0.56.0 now.
* Remove deprecated Meson call
* Update calls to `pkgconfig.generate`
The library to wrap should be passed as first positional argument, and we can
pass actual dependencies as the runtime requirements. We can't pass things that
might be subprojects as dependencies, which may be a Meson bug, so pass those
ones as strings.

Testing Done:
Re-configured and looked at the pkgconfig files.

Reviewed at https://reviews.imfreedom.org/r/1064/
/* pidgin
*
* Pidgin is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
# error "only <pidgin.h> may be included directly"
#endif
#ifndef PIDGIN_GDK_PIXBUF_H
#define PIDGIN_GDK_PIXBUF_H
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <purple.h>
/**
* SECTION:pidgingdkpixbuf
* @section_id: pidgin-gdk-pixbuf
* @short_description: <filename>pidgingdkpixbuf.h</filename>
* @title: GDK Pixbuf Helpers
*/
G_BEGIN_DECLS
/**
* pidgin_gdk_pixbuf_new_from_image:
* @image: A #PurpleImage instance.
* @error: (out) (nullable): A return address for a #GError.
*
* Creates a new #GdkPixbuf from the #PurpleImage @image. If provided Sets
* @error on error.
*
* Returns: (transfer full) (nullable): The new #GdkPixbuf or %NULL or error.
*/
GdkPixbuf *pidgin_gdk_pixbuf_new_from_image(PurpleImage *image, GError **error);
/**
* pidgin_gdk_pixbuf_make_round:
* @pixbuf: The buddy icon to transform
*
* Rounds the corners of a GdkPixbuf in place.
*/
void pidgin_gdk_pixbuf_make_round(GdkPixbuf *pixbuf);
/**
* pidgin_gdk_pixbuf_is_opaque:
* @pixbuf: The pixbuf
*
* Returns TRUE if the GdkPixbuf is opaque, as determined by no
* alpha at any of the edge pixels.
*
* Returns: TRUE if the pixbuf is opaque around the edges, FALSE otherwise
*/
gboolean pidgin_gdk_pixbuf_is_opaque(GdkPixbuf *pixbuf);
G_END_DECLS
#endif /* PIDGIN_GDK_PIXBUF_H */