lib: Fix build with older glib

tingping/wmclass
Alexander Larsson 2015-12-14 22:01:21 +01:00
parent a66da8e53c
commit ca06b3e66f
9 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,7 @@
#include "config.h"
#include "libglnx/libglnx.h"
#include <xdg-app.h>
int

View File

@ -1,5 +1,6 @@
/*** BEGIN file-header ***/
#include "config.h"
#include <xdg-app-utils.h>
#include <xdg-app-ref.h>
#include <xdg-app-enum-types.h>
#include <gio/gio.h>

View File

@ -20,12 +20,12 @@
#include "config.h"
#include "xdg-app-utils.h"
#include "xdg-app-installation.h"
#include "xdg-app-installed-ref-private.h"
#include "xdg-app-remote-private.h"
#include "xdg-app-enum-types.h"
#include "xdg-app-dir.h"
#include "xdg-app-utils.h"
typedef struct _XdgAppInstallationPrivate XdgAppInstallationPrivate;

View File

@ -47,7 +47,7 @@ typedef struct {
#if !GLIB_CHECK_VERSION(2, 43, 4)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppInstallation, g_object_uninstallation)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppInstallation, g_object_unref)
#endif
XDG_APP_EXTERN XdgAppInstallation *xdg_app_installation_new_system (void);

View File

@ -22,9 +22,9 @@
#include <string.h>
#include "xdg-app-utils.h"
#include "xdg-app-installed-ref.h"
#include "xdg-app-enum-types.h"
#include "xdg-app-utils.h"
#include "xdg-app-run.h"
#include "xdg-app-dir.h"

View File

@ -20,6 +20,7 @@
#include "config.h"
#include "xdg-app-utils.h"
#include "xdg-app-ref.h"
#include "xdg-app-enum-types.h"

View File

@ -22,6 +22,7 @@
#include <string.h>
#include "xdg-app-utils.h"
#include "xdg-app-remote-ref-private.h"
#include "xdg-app-remote-ref.h"
#include "xdg-app-enum-types.h"

View File

@ -20,10 +20,10 @@
#include "config.h"
#include "xdg-app-utils.h"
#include "xdg-app-remote-private.h"
#include "xdg-app-remote-ref-private.h"
#include "xdg-app-enum-types.h"
#include "xdg-app-utils.h"
#include <string.h>

View File

@ -45,7 +45,7 @@ typedef struct {
} XdgAppRemoteClass;
#if !GLIB_CHECK_VERSION(2, 43, 4)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppRemote, g_object_unremote)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppRemote, g_object_unref)
#endif
XDG_APP_EXTERN const char * xdg_app_remote_get_name (XdgAppRemote *self);