diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-08-10 22:30:36 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-08-25 16:58:21 -0400 |
commit | a446da7eb64d2c9301a15994f22dd0bf44d9a2cc (patch) | |
tree | 00415eb1994d85fc1206e5a07cfea64ce5ec6aa8 /configure.ac | |
parent | 696b9a5df7fc89bf007a11c7f8b6a6a913229feb (diff) | |
download | gtk+-a446da7eb64d2c9301a15994f22dd0bf44d9a2cc.tar.gz |
gtkplacessidebar: implement libcloudproviders support
Add integration of the libcloudproviders DBus API to the
GtkPlacesSidebar by showing name and sync status of the cloud providers.
The exported menu is rendered as a GtkPopover.
The sidebar will be updated if the list of cloudproviders changes e.g.
by adding or removing an account. If any cloud provider changes detailed
information like sync status only the individual sidebar row gets
updated.
Co-authored-by: Carlos Soriano <csoriano@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=786123
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4eee8712a6..480f487221 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,7 @@ m4_define([wayland_protocols_required_version], [1.9]) m4_define([mirclient_required_version], [0.22.0]) m4_define([mircookie_required_version], [0.17.0]) m4_define([epoxy_required_version], [1.0]) +m4_define([cloudproviders_required_version], [1.0]) GLIB_REQUIRED_VERSION=glib_required_version PANGO_REQUIRED_VERSION=pango_required_version ATK_REQUIRED_VERSION=atk_required_version @@ -346,6 +347,11 @@ AC_ARG_ENABLE(mir-backend, [enable the Mir gdk backend])], [backend_set=yes]) +AC_ARG_ENABLE(cloudproviders, + [AS_HELP_STRING([--enable-cloudproviders], + [enable libcloudproviders integration])], + [cloudproviders_set=yes]) + if test -z "$backend_set"; then if test "$platform_win32" = yes; then enable_win32_backend=yes @@ -1341,11 +1347,26 @@ else LIBS="$gtk_save_LIBS" fi +# Check for libcloudproviders + +CLOUDPROVIDER_PACKAGES="" +if test "x$cloudproviders_set" = "xyes"; then + CLOUDPROVIDER_PACKAGES="cloudproviders >= cloudproviders_required_version" + if $PKG_CONFIG --exists $CLOUDPROVIDER_PACKAGES ; then + AC_DEFINE(HAVE_CLOUDPROVIDERS, [1], + [Define if libcloudproviders is available] + ) + else + AC_MSG_ERROR([ +*** libcloudproviders not found.]) + fi +fi + CFLAGS="$saved_cflags" LDFLAGS="$saved_ldflags" GDK_PACKAGES="$PANGO_PACKAGES gdk-pixbuf-2.0 >= gdk_pixbuf_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version" -GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES $cairo_backends epoxy >= epoxy_required_version" +GDK_PRIVATE_PACKAGES="$GDK_GIO_PACKAGE $X_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES $cairo_backends epoxy >= epoxy_required_version $CLOUDPROVIDER_PACKAGES" PKG_CHECK_MODULES(GDK_DEP, $GDK_PACKAGES $GDK_PRIVATE_PACKAGES) GDK_DEP_LIBS="$GDK_EXTRA_LIBS $GDK_DEP_LIBS $MATH_LIB" |